我想將我的imageview放在中心上方一點。我已經使用了centerHorizontal =「true」和paddingBottom,但它被放置在絕對中心。 「填充」不在做這項工作。我該怎麼辦?如何從中心放置一個android組件偏移量?
<ImageView
android:id="@+id/imageview"
style="@style/myImageView"
android:layout_width="200dp"
android:layout_height="100dp"
android:layout_centerHorizontal="true"
android:paddingBottom="300dp"
android:src="@drawable/ic_launcher" />
雅我使用相對佈局。 – Sourav301