Merge pull request #1600 from Andries-Smit/style/material-date-input

style event date time to material input
This commit is contained in:
Milos Kozak 2022-04-10 22:12:05 +02:00 committed by GitHub
commit aa29030328
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="2dp"
android:orientation="horizontal">
<TextView
@ -21,6 +22,10 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
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:text="2017/05/05" />
@ -29,6 +34,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/background_input_border"
android:foreground="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:padding="10dp"
android:text="08:20pm" />