Comments (6)
@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.
@rainbeanFan 已经修复,更新版本至1.0.4
from rvpindicator.
Vivo X9s Plus 初次进入界面时最后一个标题占位不显示,滑动一下才能显示
from rvpindicator.
@rainbeanFan 我这边就找到一个Vivo X9 版本7.1.1 的手机,测试了,没有看到你说的BUG,很尴尬,但是确实还有人说有这个BUG,能麻烦你提供多一点信息嘛?或者你看看会是哪里引起的?
from rvpindicator.
同7.1.1版本,真机被拿走了。今天在模拟器上也出现了这个问题,模拟器信息Android 8.0 X86
from rvpindicator.
@rainbeanFan 我安装了模拟器 Android 8.0 X86 还是没有复现,但我觉得应该是有问题的,你加我QQ:632835821(我无法添加你好友)
from rvpindicator.
Related Issues (5)
- 线的高度不能自定义? HOT 3
- 在华为手机上最后一个标题显示不出来 HOT 2
- 倒过来的三角形指示器怎么画? HOT 6
- 三角指示器数量小于3个时三角形会拉伸变形 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rvpindicator.