mirror of https://github.com/iSoron/uhabits.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
135 lines
4.8 KiB
135 lines
4.8 KiB
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
tools:context="org.isoron.uhabits.dialogs.EditHabitFragment"
|
|
tools:ignore="MergeRootFrame" >
|
|
|
|
<LinearLayout
|
|
android:id="@+id/formPanel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:orientation="vertical"
|
|
android:padding="8dp" >
|
|
|
|
<LinearLayout
|
|
android:id="@+id/namePanel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:baselineAligned="false"
|
|
android:orientation="horizontal" >
|
|
|
|
<EditText
|
|
android:id="@+id/input_name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="10"
|
|
android:background="@drawable/apptheme_edit_text_holo_light"
|
|
android:ems="10"
|
|
android:hint="Name"
|
|
android:textColor="#cc2222" >
|
|
|
|
<requestFocus />
|
|
</EditText>
|
|
|
|
<ImageButton
|
|
android:id="@+id/button_pick_color"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:src="@drawable/ic_action_pick_color" />
|
|
</LinearLayout>
|
|
|
|
<EditText
|
|
android:id="@+id/input_description"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ems="10"
|
|
android:hint="Description"
|
|
android:inputType="textMultiLine" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:id="@+id/textView1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Repeat " />
|
|
|
|
<EditText
|
|
android:id="@+id/input_freq_num"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="7"
|
|
android:maxLength="2"
|
|
android:inputType="number"
|
|
android:gravity="center"
|
|
android:ems="2" />
|
|
|
|
<TextView
|
|
android:id="@+id/textView3"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text=" times every " />
|
|
|
|
<EditText
|
|
android:id="@+id/input_freq_den"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="7"
|
|
android:maxLength="2"
|
|
android:inputType="number"
|
|
android:gravity="center"
|
|
android:ems="2" />
|
|
|
|
<TextView
|
|
android:id="@+id/textView5"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text=" days" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/buttonPanel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:divider="?android:attr/dividerHorizontal"
|
|
android:dividerPadding="0dip"
|
|
android:orientation="vertical"
|
|
android:showDividers="beginning" >
|
|
|
|
<LinearLayout
|
|
style="?android:attr/buttonBarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:onClick="onClick"
|
|
android:orientation="horizontal" >
|
|
|
|
<Button
|
|
android:id="@+id/button_discard"
|
|
style="?android:attr/buttonBarButtonStyle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:text="Discard" />
|
|
|
|
<Button
|
|
android:id="@+id/button_save"
|
|
style="?android:attr/buttonBarButtonStyle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:text="Save" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |