【问题标题】:ImageView alignment in androidandroid中的ImageView对齐
【发布时间】:2018-02-04 04:54:35
【问题描述】:

我想在我的活动中将两张图像放在水平行中,一张在屏幕右侧,另一张在屏幕左侧。 我想相对地做到这一点,而不是通过给出一些指定的数值作为边距或某事。 (使应用程序兼容所有尺寸的屏幕) 有什么想法吗?

【问题讨论】:

  • 你可以放截图之类的东西来展示你想要的东西。

标签: java android xml imageview alignment


【解决方案1】:

将两个 ImageView 放入 RelativeLayout 并为第一个 ImageView 写 android:layout_alignParentLeft="true" 为第二个 ImageView 写 android:layout_alignParentRight="true"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-11
    • 1970-01-01
    相关资源
    最近更新 更多