mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-01-06 19:50:01 +01:00
All button instances in XML layouts now use layout_height="wrap_parent" and minHeight="0dp" instead of a fixed 35sp size. It should be safer.
45 lines
1.3 KiB
XML
45 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
>
|
|
<ImageView
|
|
android:id="@+id/shopitem_image"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingRight="1dp"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_centerVertical="true"
|
|
/>
|
|
<Button
|
|
android:id="@+id/shopitem_shopbutton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="0dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:text="@string/shop_buy"
|
|
android:textSize="@dimen/smalltext"
|
|
/>
|
|
|
|
<Button
|
|
android:id="@+id/shopitem_infobutton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="0dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toLeftOf="@id/shopitem_shopbutton"
|
|
android:text="@string/shop_infoitem"
|
|
android:textSize="@dimen/smalltext" />
|
|
|
|
<TextView
|
|
android:id="@+id/shopitem_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toRightOf="@id/shopitem_image"
|
|
android:layout_toLeftOf="@id/shopitem_infobutton"
|
|
android:layout_centerVertical="true"
|
|
/>
|
|
</RelativeLayout>
|