如果当前视图上方或当前视图下方有更多文本,是否可以显示向上或向下箭头?在我的 Android 应用程序中,当前视图下方有更多文本并不是很明显,但我希望用户知道当前视图下方有更多文本。如何使箭头出现这个?
代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/backgnd" >
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<Button
android:id="@+id/awesome_constant1"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:onClick="doSomething"
android:tag ="1"
android:text="@string/awesome_constant1" />
<Button
android:id="@+id/awesome_constant2"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:onClick="doSomething"
android:tag ="2"
android:text="@string/awesome_constant2" />
<Button
android:id="@+id/awesome_constant3"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:onClick="doSomething"
android:tag ="19"
android:text="@string/awesome_constant3" />
<Button
android:id="@+id/awesome_constant4"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:onClick="doSomething"
android:tag ="3"
android:text="@string/awesome_constant4" />
<Button
android:id="@+id/awesome_constant5"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:onClick="doSomething"
android:tag ="10"
android:text="@string/awesome_constant5" />
<Button
android:id="@+id/awesome_constant6"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:onClick="doSomething"
android:tag ="7"
android:text="@string/awesome_constant6" />
<Button
android:id="@+id/awesome_constant7"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:onClick="doSomething"
android:tag ="15"
android:text="@string/awesome_constant7" />
<Button
android:id="@+id/awesome_constant8"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:onClick="doSomething"
android:tag ="13"
android:text="@string/awesome_constant8" />
<Button
android:id="@+id/awesome_constant9"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:onClick="doSomething"
android:tag ="16"
android:text="@string/awesome_constant9" />
</LinearLayout>
</ScrollView>
</LinearLayout>