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.
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.
相关文章推荐
- 在viewPager中的textview参数singleLine和gravity为center冲突bug
- 使用cocapods报错 [!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes
- IE title changes to <afterHash> if the page has a url with '#' , and has flash/swf embedded in it
- Units Problem: How to read text size as custom attr from xml and set it to TextView in java code
- UISearchController Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior
- Units Problem: How to read text size as custom attr from xml and set it to TextView in java code
- CocoaPods问题: CocoaPods was not able to update the `master` repo.if it is a unexpected issue and
- The database has local access protection and you are not authorized to access it locally
- Attempting to load the view of a view controller while it is deallocating is not allowed and may res
- It appears as though you do not have permission to view information for any of the hosts you request
- Units Problem: How to read text size as custom attr from xml and set it to TextView in java code
- 在Design界面直接拖放控件的时候,提示AS- This view is not constrained vertically. At runtime it will jump to the left/(0,0) unless you
- 129.A database user SMITH tries to query the V$SESSION view and fails to access it as follows:
- cocoapods was not able to update the 'master' repo.if it is a unexpected issue and persists you can
- nagios报错 It appears as though you do not have permission to view information for any of the hosts yo
- Attempting to load the view of a view controller while it is deallocating is not allowed and may res
- AS- This view is not constrained vertically. At runtime it will jump to the left/(0,0) unless you
- ActivityManager: Warning: Activity not started, its current task has been brought to the front
- ActivityManager: Warning: Activity not started, its current task has been brought to the front