Code Monkey home page Code Monkey logo

Comments (6)

RuffianZhong avatar RuffianZhong commented on June 9, 2024 1

@Missyouag
解决:addView之前重新测量一下父布局控件宽高
private void initTabItem() { if (mTabTitles != null && mTabTitles.size() > 0) { //省略代码... for (String title : mTabTitles) { measure(0, 0);//重新测量宽高 addView(createTextView(title)); } //省略代码... } }
2.同时在第二个构造函数中添加内容水平居中代码
public RVPIndicator(Context context, AttributeSet attrs) { super(context, attrs); setGravity(Gravity.CENTER_VERTICAL); //省略代码... }

from rvpindicator.

RuffianZhong avatar RuffianZhong commented on June 9, 2024 1

@rainbeanFan 已经修复,更新版本至1.0.4

from rvpindicator.

rainbeanFan avatar rainbeanFan commented on June 9, 2024

Vivo X9s Plus 初次进入界面时最后一个标题占位不显示,滑动一下才能显示

from rvpindicator.

RuffianZhong avatar RuffianZhong commented on June 9, 2024

@rainbeanFan 我这边就找到一个Vivo X9 版本7.1.1 的手机,测试了,没有看到你说的BUG,很尴尬,但是确实还有人说有这个BUG,能麻烦你提供多一点信息嘛?或者你看看会是哪里引起的?

from rvpindicator.

rainbeanFan avatar rainbeanFan commented on June 9, 2024

同7.1.1版本,真机被拿走了。今天在模拟器上也出现了这个问题,模拟器信息Android 8.0 X86

from rvpindicator.

RuffianZhong avatar RuffianZhong commented on June 9, 2024

@rainbeanFan 我安装了模拟器 Android 8.0 X86 还是没有复现,但我觉得应该是有问题的,你加我QQ:632835821(我无法添加你好友)

from rvpindicator.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.