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.
我有两个带有两个不同大小图像的 imageView。有人知道如何从基线对齐两个图像吗?
如果将这些图像放在 a RelativeLayout、一个 has @+id/first、另一个@+id/second中,则在第二个图像中指定:android:alignBottom="@id/first"
RelativeLayout
@+id/first
@+id/second
android:alignBottom="@id/first"
将它们包装在具有相同权重的线性布局中。