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.
有谁知道如何将两个 android 图像定位在 android 中远离侧面的某个点。我有三个图像。其中之一位于中心。另外两个意味着位于图像两侧完全相同的距离。问题在于,在较小的屏幕尺寸上,这两个图像与中心图像的距离略有不同。我相信这可能归结为 android 布局的自然规模。很难将图像移动一小段距离来解决问题。有没有人有什么建议?
在 LinearLayout 中并排创建 3 个具有 layout_weight="1" 和宽度为 "0dp" 的 imageView 以使它们具有相同的宽度
使用您想要的填充/边距,它们会适合。