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.
我正在使用水平方向的线性布局将图像并排放置。但是,如果由于屏幕尺寸不合适,图像是否可以自动转到下一行?
我只是不希望小屏幕(或小密度)截断我的图像谢谢
使用 RelativeLayout 并根据图像大小和空间通过代码重新排列图像。
或者
扩展 GridLayout 并自己实现它。
这在 LinearLayout 中是不可能的。