您的位置:首页 > 产品设计 > UI/UE

TextView with SingleLine as true and Gravity as Center not passing the events to the ViewPager if it has a Click Event

2014-10-24 10:17 656 查看
android:singleLine="true" forces android:scrollHorizontally to be set to true, and according to my tests only if you change android:gravity (i.e. default gravity seems not to give this problem).

I solved this issue in a TextView by simply replacing android:singleLine="true" withandroid:maxLines="1"

After this change, I had no more problems with the ViewPager. Now it is scrolling as expected while touching elements with android:gravity="right".

via: http://stackoverflow.com/

Issue: TextView with SingleLine as true and Gravity as Center not passing the events to the ViewPager if it has a Click Event.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐