【发布时间】:2017-05-25 02:23:08
【问题描述】:
我在我的 android 应用程序中使用微调器进行下拉。但是,问题是当用户向下滚动时,微调器向上移动并变得不可见。我想修复页面顶部的微调器,以便用户可以轻松选择页面。
这里有滚动条:
向下滚动时它会消失:
编辑1:布局文件:
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/backgroundColor"
xmlns:android="http://schemas.android.com/apk/res/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:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:scrollbars="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="com.example.shiza.dailyquranverses.Quran">
<Spinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/selectChapter">
</Spinner>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/verse"
android:maxLines = "2000"
android:textSize="@dimen/verse_font_chapter"
android:text="Hello from Quran"
android:scrollbars="vertical"
/>
</LinearLayout>
</ScrollView>
【问题讨论】:
-
你能发布你的布局xml吗?
-
我正在编辑我的问题,请稍等..
标签: android android-layout spinner