Android UI - Android horizontal scroll view

早过忘川 提交于 2019-12-17 20:35:06

问题


Are there any samples similar to this? Android horizontal scroll view... Or how can I go about this?


回答1:


Try to have a look at these:

  • Sample
  • Sample2



回答2:


Pseudo:

<LinearLayout android:orientation="vertical">
    <HorizontalScrollView>
        <LinearLayout android:orientation="horizontal">
            <Image1 />
            <Image2 />
            <Image3 />
            <Image4 />
            <Image5 />
        </LinearLayout>
    </HorizontalScrollView>
    <LinearLayout android:orientation="horizontal">
        <Button1 android:layout_weight="1" />
        <Button2 android:layout_weight="1" />
        <Button3 android:layout_weight="1" />
        <Button4 android:layout_weight="1" />
    </LinearLayout >
</LinearLayout>

Have fun!



来源:https://stackoverflow.com/questions/5565949/android-ui-android-horizontal-scroll-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!