Files
andors-trail/AndorsTrail/res/layout/shopitemview.xml
Zukero ac2c4d7313 Solved button text no showing in shops issue.
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.
2017-01-04 15:38:42 +01:00

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>