私のアプリでは、n個のデータをリストするスクロールビューがあります。2 つのボタンがあり、1 つはスクロール ビューの上に配置された UP、もう 1 つはスクロール ビューの下に配置された DOWN です。を使用してUP and DOWN buttons the list of views can be scrolled.
scroll bar is in top the Up button will be invisible
との場合、メソッドscroll bar reaches the bottom the DOWN button will become invisible
を使用してこれのロジックを記述しました。getScrollX()
今私の問題は、例 3 のようにデータが非常に少ない場合ですthe scroll bar will not be visible and the layout cannot be scrolled, in such a case both the UP and DOWN buttons need to be in invisible
。これを行う方法、方法を教えてください。