style: event date time to material input

This commit is contained in:
Andries Smit 2022-04-10 20:41:41 +02:00
parent 31075172fb
commit f3ac27e837
3 changed files with 18 additions and 9 deletions

View file

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#505050"/>
<stroke android:width="1dp" android:color="@color/colorLightGray"/>
<corners android:radius="4dp" />
</shape>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke
android:width="1dp"
android:color="@color/mtrl_textinput_default_box_stroke_color" />
<corners android:radius="4dp" />
</shape>

View file

@ -2,6 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="2dp"
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
@ -21,6 +22,10 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginEnd="20dp"
android:background="@drawable/background_input_border"
android:foreground="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:padding="10dp" android:padding="10dp"
android:text="2017/05/05" /> android:text="2017/05/05" />
@ -29,6 +34,9 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:background="@drawable/background_input_border"
android:foreground="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:padding="10dp" android:padding="10dp"
android:text="08:20pm" /> android:text="08:20pm" />