首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android / Java开发-水平滚动视图

Android / Java开发-水平滚动视图
EN

Stack Overflow用户
提问于 2013-02-26 02:27:30
回答 1查看 238关注 0票数 0

我想知道如何在一个xml文件中创建多个水平滚动视图。这是对普通滚动视图的简单调整,还是复杂得多?

谢谢

EN

回答 1

Stack Overflow用户

发布于 2013-02-26 02:53:07

是的,您应该能够在xml上放入多个滚动视图。您可以尝试执行以下操作:

代码语言:javascript
复制
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/LinearLayoutRight" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical">
<HorizontalScrollView android:id="@+id/scrollView1" android:background="#000" android:layout_width="match_parent" android:layout_height="300dp"> 
</HorizontalScrollView>
 <HorizontalScrollView android:id="@+id/scrollView1" android:background="#f00" android:layout_width="match_parent" android:layout_height="300dp">
  </HorizontalScrollView>  
</LinearLayout>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15073804

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档