为什么我设置的scrollview没有生效?
下面这段代码是放在一个RelativeLayout里面。
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/dispatch_transact_info_text3"
android:layout_alignLeft="@id/dispatch_transact_info_text3"
>
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollbars="vertical"
>
<TextView
android:id="@+id/dispatch_transact_info_text4"
android:layout_width="292px"
android:layout_height="312px"
android:background="@drawable/edit_content6"
android:paddingTop="15px"
android:paddingLeft="5px"
android:paddingRight="5px"
android:paddingBottom="5px"
style="@style/tvT3"
/>
</ScrollView>
</LinearLayout>
在系统自带的图形设计页面里,也可以看到有scrollBar,但是在显示内容的时候没有。
到底怎么回事?