私のScrollViewに問題があります。私は利用可能なスペースの中にそれを取り入れたいが、私はどのように知っているのではない。Androidで利用可能なスペースにスクロールビューを合わせる
今、私は1つのLinearLayout前に私のScrollViewと私のTextViewを持っている:
<ScrollView
android:id="@+id/scrollView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:fillViewport="true"
android:layout_alignParentLeft="true"
android:layout_below="@+id/previousimage"
android:layout_marginTop="@dimen/margin">
<TextView
android:id="@+id/question_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margintop"
android:gravity="center_horizontal"
android:paddingBottom="@dimen/margin_five"
android:scrollbars="vertical"
android:textColor="@color/white"
android:textSize="@dimen/common_textsize" />
</ScrollView>
<LinearLayout
android:id="@+id/bottom_options"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_below="@+id/scrollView"
android:layout_marginTop="@dimen/margin_small"
android:gravity="center|bottom"
android:orientation="vertical">
問題は、私は私のTextViewの内側にそんなにテキストを持っている場合のLinearLayoutがダウンして行くと、それはテキストをスクロールしたいhides.Iということです内部。 LinearLayoutを押し下げることなく。
このスペースをScrollViewですべての画面サイズに自動的に適応させたいと思っています。
ありがとうございます!
私はあなたの線形レイアウトがここに無用だと思います。 –
こんにちは、これをチェックしてください。 http://stackoverflow.com/questions/1748977/making-textview-scrollable-in-android – PSone