Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在xml中包含大量图片和按钮时遇到问题,我尝试过ScrollView但无法按照我的意愿制作图片和按钮。
如何在一个 xml 中使用 ScrollView 和 AbsoluteLayout,以便在 xml 中包含更多图片和按钮?
永远不要使用 AbsoluteLayout!而是尝试使用RelativeLayoutor重新创建布局LinearLayout。
RelativeLayout
LinearLayout
记住 aScrollView只能有一个 Child 布局,所以在ViewGroup这里使用 a。
ScrollView
ViewGroup