我们可以在android中添加面板吗?如果是的话怎么样? [英] can we add panel in android? if yes then how?
本文介绍了我们可以在android中添加面板吗?如果是的话怎么样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想制作一个活动,因为布局的一半部分必须具有可滚动性,因为我需要可滚动面板。这在Android中是否可行。
那么,我们可以在android中添加面板吗?如果是,那么如何?
I want to make an activity in that one half part of layout must have scrollable for that reason I want scrollable panel. Is this possible in android.
So, Can we add panel in android? if yes then how?
推荐答案
请参阅: http://developer.android.com/reference/android/widget/ScrollView.html 。
-SA
除了谢尔盖的解决方案1之外,你应该考虑为每个面板或UI模块实现片段,这些片段可以动态响应Android设备的无数屏幕尺寸和方向。了解:
1. 使用碎片构建动态UI ^ ]
2. Android片段 [ ^ ]
In addition to Solution 1 by Sergey, you should consider implementing Fragments for each "panels" or "UI modules" which can response dynamically to myriad screen sizes and orientations of Android devices. Find out:
1. Building a Dynamic UI with Fragments[^]
2. Android Fragments[^]
这篇关于我们可以在android中添加面板吗?如果是的话怎么样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文