I have two Image Views that are two football helmets facin开发者_运维技巧g each other. I'm wanting to center them and then offset them left/right a little to provide a little space between them. Here is one of the image view's xml at the moment.
<ImageView
android:id="@+id/hometeam"
android:scaleType="centerInside"
android:layout_width="fill_parent"
android:layout_height="70px"
android:layout_y="90px"
android:layout_marginLeft="25px">
I was trying to offset it using [android:layout_marginLeft="25px"] however I'm guessing that's not working for me because of the [android:scaleType="centerInside"]. Anyone know a solution? Thanks!
set the android:gravity="center"
for the Layout.
精彩评论