mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-07 01:28:52 -06:00
improve yes/no dialog design
This commit is contained in:
@@ -4,15 +4,92 @@
|
||||
android:gravity="center"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="30dp">
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingEnd="10dp">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etNotes"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textCapSentences|textMultiLine"
|
||||
style="@style/TextAppearance.AppCompat.Body1"
|
||||
android:scrollbars="vertical"
|
||||
android:hint="@string/example_notes"/>
|
||||
android:orientation="horizontal"
|
||||
android:padding="8dp"
|
||||
android:baselineAligned="false">
|
||||
|
||||
<FrameLayout
|
||||
style="@style/FormOuterBox"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1">
|
||||
<LinearLayout style="@style/DialogFormInnerBox">
|
||||
|
||||
<TextView
|
||||
style="@style/DialogFormLabel"
|
||||
android:text="@string/value" />
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="8dp">
|
||||
|
||||
<Button
|
||||
android:id="@+id/yesBtn"
|
||||
android:text="@string/fa_check"
|
||||
style="@style/CheckmarkDialogBtn"/>
|
||||
<Button
|
||||
android:id="@+id/skippedBtn"
|
||||
android:text="@string/fa_skipped"
|
||||
android:visibility="gone"
|
||||
style="@style/CheckmarkDialogBtn"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/noBtn"
|
||||
android:text="@string/fa_times"
|
||||
style="@style/CheckmarkDialogBtn"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/questionBtn"
|
||||
android:text="@string/fa_question"
|
||||
android:visibility="gone"
|
||||
style="@style/CheckmarkDialogBtn"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="5dp"
|
||||
android:baselineAligned="false">
|
||||
|
||||
<FrameLayout
|
||||
style="@style/FormOuterBox"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<LinearLayout style="@style/DialogFormInnerBox">
|
||||
|
||||
<TextView
|
||||
style="@style/DialogFormLabel"
|
||||
android:text="@string/notes" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etNotes"
|
||||
android:inputType="textCapSentences|textMultiLine"
|
||||
style="@style/FormInput"
|
||||
android:scrollbars="vertical"
|
||||
android:hint="@string/example_notes"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user