habitica-android/Habitica/res/layout/widget_habit_button.xml

55 lines
2.2 KiB
XML
Raw Normal View History

2016-09-22 14:02:01 +00:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/brand_100"
android:clipChildren="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<FrameLayout
android:id="@+id/btnPlusWrapper"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<ImageView
android:id="@+id/btnPlus"
android:src="@drawable/plus"
android:scaleType="center"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/selection_highlight"
/>
</FrameLayout>
<FrameLayout
android:id="@+id/btnMinusWrapper"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<ImageView
android:id="@+id/btnMinus"
android:src="@drawable/minus"
android:scaleType="center"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/selection_highlight" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/selection_highlight"
/>
</FrameLayout>
</LinearLayout>
<TextView
android:id="@+id/habit_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:layout_marginTop="6dp"
android:layout_marginBottom="6dp" />
</LinearLayout>