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。一个在左边,一个在右边,一个在中间。我想将中间视图的顶部边缘与其他的水平中心对齐,以查看如何在 android 中实现这一点。请告诉我上述问题的解决方案。
尝试使用android:layout_alignBaseline = <left or right imageview's id>中间 ImageView 的属性。
android:layout_alignBaseline = <left or right imageview's id>