简体   繁体   English

水平滚动视图按钮焦点

[英]Horizontal scrollview button focus

I am working on an android application where i am implementing horizontal scroll view. 我正在开发一个Android应用程序,我正在实现水平滚动视图。 I have come across two issues and cant really figure out how to fix them. 我遇到过两个问题,并且无法弄清楚如何修复它们。 They are: 他们是:

  1. when the horizontal scroll view reaches its left most or right most end, the left/right image button should become inactive. 当水平滚动视图到达其最左端或最右端时,左/右图像按钮应变为非活动状态。
  2. When i click on a button(which appears half) in horizontal scroll view, the button should appear at the center with full visibility. 当我在水平滚动视图中单击按钮(显示为一半)时,该按钮应出现在中心,并具有完全可见性。

The below is the screen shot: 以下是截图:

屏幕截图

我认为这个链接可能有用,高级别我发现同样的问题链接你也看到那个线程水平滚动图像左右箭头

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何获取水平滚动视图焦点中元素的索引 - how to get index of the element in focus for a horizontal scrollview 在水平ScrollView中滚动会失去焦点元素的焦点, - Scrolling in Horizontal ScrollView loses focus of focused element, 使用ViewTreeObserver向右滚动水平ScrollView完整滚动焦点 - Horizontal ScrollView full Scroll focus right with ViewTreeObserver 水平滚动视图的问题会自动在Edittext焦点上滚动 - Issue of horizontal scrollview automatically scrolls on Edittext focus 水平滚动视图滚动更改选项卡焦点 - Horizontal scrollview scroll changes tab focus LinearLayout中按钮上方的水平ScrollView - Horizontal ScrollView above a Button from LinearLayout 如何在水平滚动视图中添加箭头按钮 - How to add an arow button in horizontal scrollview 以编程方式滚动 ScrollView 以专注于按钮或视图 - Android - Programmatically scroll a ScrollView to focus on a Button or a view - Android ScrollView中的Horizo​​ntal RecyclerView:垂直滚动时如何获得焦点? - Horizontal RecyclerView inside ScrollView: how to get focus when vertical scrolling? 在按钮上显示和隐藏水平ScrollView在同一屏幕上单击按钮的位置 - Showing and Hiding Horizontal ScrollView on Button Click in Place of Button on Same Screen
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM