我有一个LinearLayout,我比屏幕大。我想横向滚动。我有下一个代码,但它不起作用。有谁能够帮助我?如何水平滚动LinearLayout?
<HorizontalScrollView
android:id="@+id/horizontalScrollView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<LinearLayout
android:id="@+id/gm_movimientos"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:orientation="horizontal" >
</LinearLayout>
</HorizontalScrollView>
所有okey最新问题? – MAC
当线性布局大于屏幕时,我尝试水平滚动但没有任何事情发生。 – kudo44
确保您检查布局上的包装。 –