ADD week 5
This commit is contained in:
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.button.MaterialButtonToggleGroup xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/material_clock_period_toggle"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:checkedButton="@+id/material_clock_period_am_button"
|
||||
app:selectionRequired="true"
|
||||
app:singleSelection="true">
|
||||
<Button
|
||||
android:id="@+id/material_clock_period_am_button"
|
||||
android:layout_width="0dp"
|
||||
android:text="@string/material_timepicker_am"
|
||||
android:layout_weight="1"
|
||||
android:insetTop="4dp"
|
||||
android:insetBottom="4dp"
|
||||
style="?attr/materialButtonOutlinedStyle"/>
|
||||
<Button
|
||||
android:id="@+id/material_clock_period_pm_button"
|
||||
android:layout_width="0dp"
|
||||
android:text="@string/material_timepicker_pm"
|
||||
android:layout_weight="1"
|
||||
android:insetTop="4dp"
|
||||
android:insetBottom="4dp"
|
||||
style="?attr/materialButtonOutlinedStyle"/>
|
||||
</com.google.android.material.button.MaterialButtonToggleGroup>
|
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/material_timepicker_container"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<androidx.constraintlayout.helper.widget.Flow
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/material_clock_display_and_toggle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
app:constraint_referenced_ids="material_clock_display,material_clock_period_toggle"
|
||||
app:flow_verticalGap="@dimen/material_clock_period_toggle_vertical_gap"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
<include
|
||||
android:id="@+id/material_clock_display"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/material_clock_display"/>
|
||||
<include
|
||||
android:id="@+id/material_clock_period_toggle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/material_clock_period_toggle_land"/>
|
||||
<com.google.android.material.timepicker.ClockFaceView
|
||||
android:id="@+id/material_clock_face"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/clock_face_margin_start"
|
||||
app:layout_constraintStart_toEndOf="@+id/material_clock_display_and_toggle"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
</merge>
|
@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
<LinearLayout
|
||||
android:layout_gravity="start"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/mtrl_picker_header"
|
||||
android:paddingLeft="@dimen/mtrl_calendar_header_content_padding"
|
||||
android:paddingRight="@dimen/mtrl_calendar_header_content_padding"
|
||||
android:paddingBottom="@dimen/mtrl_calendar_header_content_padding"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingStart="@dimen/mtrl_calendar_header_content_padding"
|
||||
android:paddingEnd="@dimen/mtrl_calendar_header_content_padding"
|
||||
style="?attr/materialCalendarHeaderLayout">
|
||||
<FrameLayout
|
||||
android:id="@+id/mtrl_picker_header_title_and_selection"
|
||||
android:paddingLeft="@dimen/mtrl_calendar_header_text_padding"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
android:layout_width="@dimen/mtrl_calendar_landscape_header_width"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:paddingStart="@dimen/mtrl_calendar_header_text_padding">
|
||||
<include layout="@layout/mtrl_picker_header_title_text"/>
|
||||
<include layout="@layout/mtrl_picker_header_selection_text"/>
|
||||
</FrameLayout>
|
||||
<include layout="@layout/mtrl_picker_header_toggle"/>
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_gravity="end"
|
||||
android:layout_width="@dimen/mtrl_calendar_header_divider_thickness"
|
||||
android:layout_height="match_parent"
|
||||
style="?attr/materialCalendarHeaderDivider"/>
|
||||
</merge>
|
Reference in New Issue
Block a user