mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-21 13:25:03 +00:00
63 lines
No EOL
2.4 KiB
XML
63 lines
No EOL
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/widget_background"
|
|
android:theme="@style/MyWidgetTheme"
|
|
android:id="@+id/widget"
|
|
android:clipChildren="true"
|
|
android:clipToPadding="true">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:baselineAligned="false">
|
|
<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:textSize="24sp"
|
|
/>
|
|
</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" />
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:textSize="24sp"
|
|
/>
|
|
</FrameLayout>
|
|
</LinearLayout>
|
|
<TextView
|
|
android:id="@+id/habit_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_marginBottom="12dp"
|
|
android:textColor="@color/text_primary"
|
|
android:textSize="12sp"
|
|
tools:text="Habit Text"/>
|
|
</LinearLayout> |