ADD week 5
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/RtlOverlay.Widget.AppCompat.ActionBar.TitleItem">
|
||||
<TextView
|
||||
android:ellipsize="end"
|
||||
android:id="@+id/action_bar_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"/>
|
||||
<TextView
|
||||
android:ellipsize="end"
|
||||
android:id="@+id/action_bar_subtitle"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/abc_action_bar_subtitle_top_margin_material"
|
||||
android:singleLine="true"/>
|
||||
</LinearLayout>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:enabled="false"
|
||||
android:gravity="center_vertical"
|
||||
android:background="?attr/actionBarItemBackground"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"/>
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.view.menu.ActionMenuItemView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:textAppearance="?attr/actionMenuTextAppearance"
|
||||
android:textColor="?attr/actionMenuTextColor"
|
||||
android:gravity="center"
|
||||
android:layout_gravity="center"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingTop="4dp"
|
||||
android:paddingRight="8dp"
|
||||
android:paddingBottom="4dp"
|
||||
android:focusable="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/actionButtonStyle"/>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.widget.ActionMenuView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:divider="?attr/actionBarDivider"
|
||||
app:dividerPadding="12dp"/>
|
7
02-Easy5/E5/resources/res/layout/abc_action_mode_bar.xml
Normal file
7
02-Easy5/E5/resources/res/layout/abc_action_mode_bar.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.widget.ActionBarContextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:theme="?attr/actionModeTheme"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/actionModeStyle"/>
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ImageView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/action_mode_close_button"
|
||||
android:paddingLeft="12dp"
|
||||
android:focusable="true"
|
||||
android:clickable="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginRight="16dp"
|
||||
android:contentDescription="?attr/actionModeCloseContentDescription"
|
||||
android:paddingStart="12dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
app:srcCompat="?attr/actionModeCloseDrawable"
|
||||
style="?attr/actionModeCloseButtonStyle"/>
|
@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<view xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_gravity="center"
|
||||
android:id="@+id/activity_chooser_view_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
class="androidx.appcompat.widget.ActivityChooserView$InnerLayout"
|
||||
style="?attr/activityChooserViewStyle">
|
||||
<FrameLayout
|
||||
android:layout_gravity="center"
|
||||
android:id="@+id/expand_activities_button"
|
||||
android:background="?attr/actionBarItemBackground"
|
||||
android:paddingLeft="12dp"
|
||||
android:paddingTop="2dp"
|
||||
android:paddingRight="12dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:focusable="true"
|
||||
android:addStatesFromChildren="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
<ImageView
|
||||
android:layout_gravity="center"
|
||||
android:id="@+id/image"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:scaleType="fitCenter"
|
||||
android:adjustViewBounds="true"/>
|
||||
</FrameLayout>
|
||||
<FrameLayout
|
||||
android:layout_gravity="center"
|
||||
android:id="@+id/default_activity_button"
|
||||
android:background="?attr/actionBarItemBackground"
|
||||
android:paddingLeft="12dp"
|
||||
android:paddingTop="2dp"
|
||||
android:paddingRight="12dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:focusable="true"
|
||||
android:addStatesFromChildren="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
<ImageView
|
||||
android:layout_gravity="center"
|
||||
android:id="@+id/image"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:scaleType="fitCenter"
|
||||
android:adjustViewBounds="true"/>
|
||||
</FrameLayout>
|
||||
</view>
|
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/list_item"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/dropdownListPreferredItemHeight"
|
||||
android:minWidth="196dp">
|
||||
<LinearLayout
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
<ImageView
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/icon"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginRight="8dp"/>
|
||||
<TextView
|
||||
android:textAppearance="?attr/textAppearanceLargePopupMenu"
|
||||
android:ellipsize="marquee"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/title"
|
||||
android:fadingEdge="horizontal"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/buttonPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fillViewport="true"
|
||||
style="?attr/buttonBarStyle">
|
||||
<androidx.appcompat.widget.ButtonBarLayout
|
||||
android:gravity="bottom"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="12dp"
|
||||
android:paddingTop="4dp"
|
||||
android:paddingRight="12dp"
|
||||
android:paddingBottom="4dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layoutDirection="locale">
|
||||
<Button
|
||||
android:id="@android:id/button3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/buttonBarNeutralButtonStyle"/>
|
||||
<android.widget.Space
|
||||
android:id="@+id/spacer"
|
||||
android:visibility="invisible"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"/>
|
||||
<Button
|
||||
android:id="@android:id/button2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/buttonBarNegativeButtonStyle"/>
|
||||
<Button
|
||||
android:id="@android:id/button1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/buttonBarPositiveButtonStyle"/>
|
||||
</androidx.appcompat.widget.ButtonBarLayout>
|
||||
</ScrollView>
|
@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.widget.AlertDialogLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:gravity="start|top"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/parentPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/abc_alert_dialog_title_material"/>
|
||||
<FrameLayout
|
||||
android:id="@+id/contentPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="48dp">
|
||||
<ImageView
|
||||
android:layout_gravity="top"
|
||||
android:id="@+id/scrollIndicatorUp"
|
||||
android:background="#1f000000"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
app:backgroundTint="?android:attr/colorForeground"/>
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:id="@+id/scrollView"
|
||||
android:clipToPadding="false"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<android.widget.Space
|
||||
android:id="@+id/textSpacerNoTitle"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/abc_dialog_padding_top_material"/>
|
||||
<TextView
|
||||
android:id="@android:id/message"
|
||||
android:paddingLeft="?attr/dialogPreferredPadding"
|
||||
android:paddingRight="?attr/dialogPreferredPadding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/TextAppearance.AppCompat.Subhead"/>
|
||||
<android.widget.Space
|
||||
android:id="@+id/textSpacerNoButtons"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/abc_dialog_padding_top_material"/>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
<ImageView
|
||||
android:layout_gravity="bottom"
|
||||
android:id="@+id/scrollIndicatorDown"
|
||||
android:background="#1f000000"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
app:backgroundTint="?android:attr/colorForeground"/>
|
||||
</FrameLayout>
|
||||
<FrameLayout
|
||||
android:id="@+id/customPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="48dp">
|
||||
<FrameLayout
|
||||
android:id="@+id/custom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
</FrameLayout>
|
||||
<include
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/abc_alert_dialog_button_bar_material"/>
|
||||
</androidx.appcompat.widget.AlertDialogLayout>
|
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/topPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
android:gravity="start|center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/title_template"
|
||||
android:paddingLeft="?attr/dialogPreferredPadding"
|
||||
android:paddingTop="@dimen/abc_dialog_padding_top_material"
|
||||
android:paddingRight="?attr/dialogPreferredPadding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<ImageView
|
||||
android:id="@android:id/icon"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:src="@null"
|
||||
android:scaleType="fitCenter"
|
||||
android:layout_marginEnd="8dp"/>
|
||||
<androidx.appcompat.widget.DialogTitle
|
||||
android:ellipsize="end"
|
||||
android:layout_gravity="start"
|
||||
android:id="@+id/alertTitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:textAlignment="viewStart"
|
||||
style="?android:attr/windowTitleStyle"/>
|
||||
</LinearLayout>
|
||||
<android.widget.Space
|
||||
android:id="@+id/titleDividerNoCustom"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/abc_dialog_title_divider_material"/>
|
||||
</LinearLayout>
|
@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.view.menu.ListMenuItemView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minWidth="196dp">
|
||||
<ImageView
|
||||
android:id="@+id/group_divider"
|
||||
android:background="@drawable/abc_list_divider_material"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginBottom="4dp"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/content"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/dropdownListPreferredItemHeight"
|
||||
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem">
|
||||
<TextView
|
||||
android:textAppearance="?attr/textAppearanceLargePopupMenu"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/title"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem.Title"/>
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1"/>
|
||||
<TextView
|
||||
android:textAppearance="?attr/textAppearanceSmallPopupMenu"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/shortcut"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem.Shortcut"/>
|
||||
<ImageView
|
||||
android:layout_gravity="center"
|
||||
android:id="@+id/submenuarrow"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="center"
|
||||
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem.SubmenuArrow"/>
|
||||
</LinearLayout>
|
||||
</androidx.appcompat.view.menu.ListMenuItemView>
|
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.widget.FitWindowsLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:fitsSystemWindows="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<TextView
|
||||
android:ellipsize="end"
|
||||
android:layout_gravity="start"
|
||||
android:id="@+id/title"
|
||||
android:paddingLeft="?attr/dialogPreferredPadding"
|
||||
android:paddingTop="@dimen/abc_dialog_padding_top_material"
|
||||
android:paddingRight="?attr/dialogPreferredPadding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:textAlignment="viewStart"
|
||||
style="?android:attr/windowTitleStyle"/>
|
||||
<include
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
layout="@layout/abc_screen_content_include"/>
|
||||
</androidx.appcompat.widget.FitWindowsLinearLayout>
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.view.menu.ExpandedMenuView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/expanded_menu"
|
||||
android:layout_width="?attr/panelMenuListWidth"
|
||||
android:layout_height="wrap_content"/>
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<CheckBox xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/checkbox"
|
||||
android:focusable="false"
|
||||
android:clickable="false"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
14
02-Easy5/E5/resources/res/layout/abc_list_menu_item_icon.xml
Normal file
14
02-Easy5/E5/resources/res/layout/abc_list_menu_item_icon.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/icon"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginRight="-8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:scaleType="centerInside"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="-8dp"/>
|
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.view.menu.ListMenuItemView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/listPreferredItemHeightSmall">
|
||||
<RelativeLayout
|
||||
android:layout_gravity="center_vertical"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="?attr/listPreferredItemPaddingLeft"
|
||||
android:layout_marginRight="?attr/listPreferredItemPaddingRight"
|
||||
android:layout_weight="1">
|
||||
<TextView
|
||||
android:textAppearance="?attr/textAppearanceListItemSmall"
|
||||
android:ellipsize="marquee"
|
||||
android:id="@+id/title"
|
||||
android:fadingEdge="horizontal"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true"/>
|
||||
<TextView
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:id="@+id/shortcut"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:layout_below="@+id/title"
|
||||
android:layout_alignParentLeft="true"/>
|
||||
</RelativeLayout>
|
||||
</androidx.appcompat.view.menu.ListMenuItemView>
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RadioButton xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/radio"
|
||||
android:focusable="false"
|
||||
android:clickable="false"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/dropdownListPreferredItemHeight"
|
||||
android:minWidth="196dp">
|
||||
<TextView
|
||||
android:textAppearance="?attr/textAppearancePopupMenuHeader"
|
||||
android:ellipsize="marquee"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@android:id/title"
|
||||
android:fadingEdge="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:textAlignment="viewStart"/>
|
||||
</FrameLayout>
|
@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.view.menu.ListMenuItemView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minWidth="196dp">
|
||||
<ImageView
|
||||
android:id="@+id/group_divider"
|
||||
android:background="@drawable/abc_list_divider_material"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginBottom="4dp"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/content"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/dropdownListPreferredItemHeight"
|
||||
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem">
|
||||
<RelativeLayout
|
||||
android:layout_gravity="center_vertical"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem.InternalGroup">
|
||||
<TextView
|
||||
android:textAppearance="?attr/textAppearanceLargePopupMenu"
|
||||
android:ellipsize="marquee"
|
||||
android:id="@+id/title"
|
||||
android:fadingEdge="horizontal"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:layout_alignParentTop="true"
|
||||
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem.Text"/>
|
||||
<TextView
|
||||
android:textAppearance="?attr/textAppearanceSmallPopupMenu"
|
||||
android:id="@+id/shortcut"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:layout_below="@+id/title"
|
||||
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem.Text"/>
|
||||
</RelativeLayout>
|
||||
<ImageView
|
||||
android:layout_gravity="center"
|
||||
android:id="@+id/submenuarrow"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="center"
|
||||
style="@style/RtlOverlay.Widget.AppCompat.PopupMenuItem.SubmenuArrow"/>
|
||||
</LinearLayout>
|
||||
</androidx.appcompat.view.menu.ListMenuItemView>
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<androidx.appcompat.widget.ContentFrameLayout
|
||||
android:id="@+id/action_bar_activity_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:foreground="?android:attr/windowContentOverlay"
|
||||
android:foregroundGravity="top|fill_horizontal"/>
|
||||
</merge>
|
15
02-Easy5/E5/resources/res/layout/abc_screen_simple.xml
Normal file
15
02-Easy5/E5/resources/res/layout/abc_screen_simple.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.widget.FitWindowsLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/action_bar_root"
|
||||
android:fitsSystemWindows="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<androidx.appcompat.widget.ViewStubCompat
|
||||
android:id="@+id/action_mode_bar_stub"
|
||||
android:layout="@layout/abc_action_mode_bar"
|
||||
android:inflatedId="@+id/action_mode_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
<include layout="@layout/abc_screen_content_include"/>
|
||||
</androidx.appcompat.widget.FitWindowsLinearLayout>
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.widget.FitWindowsFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/action_bar_root"
|
||||
android:fitsSystemWindows="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<include layout="@layout/abc_screen_content_include"/>
|
||||
<androidx.appcompat.widget.ViewStubCompat
|
||||
android:id="@+id/action_mode_bar_stub"
|
||||
android:layout="@layout/abc_action_mode_bar"
|
||||
android:inflatedId="@+id/action_mode_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
</androidx.appcompat.widget.FitWindowsFrameLayout>
|
30
02-Easy5/E5/resources/res/layout/abc_screen_toolbar.xml
Normal file
30
02-Easy5/E5/resources/res/layout/abc_screen_toolbar.xml
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.widget.ActionBarOverlayLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/decor_content_parent"
|
||||
android:fitsSystemWindows="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<include layout="@layout/abc_screen_content_include"/>
|
||||
<androidx.appcompat.widget.ActionBarContainer
|
||||
android:gravity="top"
|
||||
android:id="@+id/action_bar_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:touchscreenBlocksFocus="true"
|
||||
style="?attr/actionBarStyle">
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
android:id="@+id/action_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:navigationContentDescription="@string/abc_action_bar_up_description"
|
||||
style="?attr/toolbarStyle"/>
|
||||
<androidx.appcompat.widget.ActionBarContextView
|
||||
android:theme="?attr/actionModeTheme"
|
||||
android:id="@+id/action_context_bar"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/actionModeStyle"/>
|
||||
</androidx.appcompat.widget.ActionBarContainer>
|
||||
</androidx.appcompat.widget.ActionBarOverlayLayout>
|
@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="58dp"
|
||||
style="@style/RtlOverlay.Widget.AppCompat.Search.DropDown">
|
||||
<ImageView
|
||||
android:id="@android:id/icon1"
|
||||
android:visibility="invisible"
|
||||
android:layout_width="@dimen/abc_dropdownitem_icon_width"
|
||||
android:layout_height="48dp"
|
||||
android:scaleType="centerInside"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
style="@style/RtlOverlay.Widget.AppCompat.Search.DropDown.Icon1"/>
|
||||
<ImageView
|
||||
android:id="@+id/edit_query"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:visibility="gone"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:scaleType="centerInside"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
style="@style/RtlOverlay.Widget.AppCompat.Search.DropDown.Query"/>
|
||||
<ImageView
|
||||
android:id="@android:id/icon2"
|
||||
android:visibility="gone"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:scaleType="centerInside"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignWithParentIfMissing="true"
|
||||
style="@style/RtlOverlay.Widget.AppCompat.Search.DropDown.Icon2"/>
|
||||
<TextView
|
||||
android:textAppearance="?attr/textAppearanceSearchResultSubtitle"
|
||||
android:gravity="top"
|
||||
android:id="@android:id/text2"
|
||||
android:paddingBottom="4dp"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="29dp"
|
||||
android:singleLine="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignWithParentIfMissing="true"
|
||||
style="?android:attr/dropDownItemStyle"/>
|
||||
<TextView
|
||||
android:textAppearance="?attr/textAppearanceSearchResultTitle"
|
||||
android:id="@android:id/text1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:layout_above="@android:id/text2"
|
||||
android:layout_centerVertical="true"
|
||||
style="?android:attr/dropDownItemStyle"/>
|
||||
</RelativeLayout>
|
107
02-Easy5/E5/resources/res/layout/abc_search_view.xml
Normal file
107
02-Easy5/E5/resources/res/layout/abc_search_view.xml
Normal file
@ -0,0 +1,107 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/search_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<TextView
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+id/search_badge"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:drawablePadding="0dp"/>
|
||||
<ImageView
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/search_button"
|
||||
android:focusable="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:contentDescription="@string/abc_searchview_description_search"
|
||||
style="?attr/actionButtonStyle"/>
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/search_edit_frame"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_weight="1"
|
||||
android:layoutDirection="locale">
|
||||
<ImageView
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/search_mag_icon"
|
||||
android:visibility="gone"
|
||||
android:layout_width="@dimen/abc_dropdownitem_icon_width"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="centerInside"
|
||||
style="@style/RtlOverlay.Widget.AppCompat.SearchView.MagIcon"/>
|
||||
<LinearLayout
|
||||
android:layout_gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/search_plate"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
<view
|
||||
android:ellipsize="end"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/search_src_text"
|
||||
android:background="@null"
|
||||
android:paddingLeft="@dimen/abc_dropdownitem_text_padding_left"
|
||||
android:paddingRight="@dimen/abc_dropdownitem_text_padding_right"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="36dp"
|
||||
android:singleLine="true"
|
||||
android:layout_weight="1"
|
||||
android:inputType="textNoSuggestions"
|
||||
android:dropDownAnchor="@+id/search_edit_frame"
|
||||
android:imeOptions="actionSearch"
|
||||
android:dropDownHeight="wrap_content"
|
||||
android:dropDownHorizontalOffset="0dp"
|
||||
android:dropDownVerticalOffset="0dp"
|
||||
class="androidx.appcompat.widget.SearchView$SearchAutoComplete"/>
|
||||
<ImageView
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/search_close_btn"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
android:focusable="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:contentDescription="@string/abc_searchview_description_clear"/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/submit_area"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
<ImageView
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/search_go_btn"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:focusable="true"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:contentDescription="@string/abc_searchview_description_submit"/>
|
||||
<ImageView
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/search_voice_btn"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:focusable="true"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:contentDescription="@string/abc_searchview_description_voice"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<view xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_gravity="start"
|
||||
android:id="@+id/select_dialog_listview"
|
||||
android:scrollbars="vertical"
|
||||
android:fadingEdge="none"
|
||||
android:clipToPadding="false"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:cacheColorHint="@null"
|
||||
android:divider="?attr/listDividerAlertDialog"
|
||||
android:overScrollMode="ifContentScrolls"
|
||||
android:textAlignment="viewStart"
|
||||
app:paddingBottomNoButtons="@dimen/abc_dialog_list_padding_bottom_no_buttons"
|
||||
app:paddingTopNoTitle="@dimen/abc_dialog_list_padding_top_no_title"
|
||||
class="androidx.appcompat.app.AlertController$RecycleListView"
|
||||
style="@style/Widget.AppCompat.ListView"/>
|
23
02-Easy5/E5/resources/res/layout/abc_tooltip.xml
Normal file
23
02-Easy5/E5/resources/res/layout/abc_tooltip.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Tooltip"
|
||||
android:textColor="?attr/tooltipForegroundColor"
|
||||
android:ellipsize="end"
|
||||
android:id="@+id/message"
|
||||
android:background="?attr/tooltipFrameBackground"
|
||||
android:paddingLeft="@dimen/tooltip_horizontal_padding"
|
||||
android:paddingTop="@dimen/tooltip_vertical_padding"
|
||||
android:paddingRight="@dimen/tooltip_horizontal_padding"
|
||||
android:paddingBottom="@dimen/tooltip_vertical_padding"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/tooltip_margin"
|
||||
android:maxWidth="256dp"
|
||||
android:maxLines="3"
|
||||
android:paddingStart="@dimen/tooltip_horizontal_padding"
|
||||
android:paddingEnd="@dimen/tooltip_horizontal_padding"/>
|
||||
</LinearLayout>
|
61
02-Easy5/E5/resources/res/layout/activity_login.xml
Normal file
61
02-Easy5/E5/resources/res/layout/activity_login.xml
Normal file
@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/container"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<EditText
|
||||
android:id="@+id/username"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="96dp"
|
||||
android:hint="@string/prompt_email"
|
||||
android:selectAllOnFocus="true"
|
||||
android:inputType="textEmailAddress"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
<EditText
|
||||
android:id="@+id/password"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:hint="@string/prompt_password"
|
||||
android:selectAllOnFocus="true"
|
||||
android:inputType="textPassword"
|
||||
android:imeOptions="actionDone"
|
||||
android:imeActionLabel="@string/action_sign_in_short"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/username"/>
|
||||
<Button
|
||||
android:enabled="false"
|
||||
android:layout_gravity="start"
|
||||
android:id="@+id/login"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="64dp"
|
||||
android:text="@string/action_sign_in"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/password"
|
||||
app:layout_constraintVertical_bias="0.2"/>
|
||||
<ProgressBar
|
||||
android:layout_gravity="center"
|
||||
android:id="@+id/loading"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="64dp"
|
||||
android:layout_marginBottom="64dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="@+id/password"
|
||||
app:layout_constraintStart_toStartOf="@+id/password"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.3"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
12
02-Easy5/E5/resources/res/layout/custom_dialog.xml
Normal file
12
02-Easy5/E5/resources/res/layout/custom_dialog.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<Button
|
||||
android:id="@+id/dialog_button"
|
||||
android:layout_width="100px"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:text=" Ok "/>
|
||||
</RelativeLayout>
|
@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<FrameLayout
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:id="@+id/navigation_bar_item_icon_container"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/design_bottom_navigation_margin"
|
||||
android:layout_marginBottom="@dimen/design_bottom_navigation_margin">
|
||||
<View
|
||||
android:layout_gravity="center"
|
||||
android:id="@+id/navigation_bar_item_active_indicator_view"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"/>
|
||||
<ImageView
|
||||
android:layout_gravity="center"
|
||||
android:id="@+id/navigation_bar_item_icon_view"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:contentDescription="@null"/>
|
||||
</FrameLayout>
|
||||
<com.google.android.material.internal.BaselineLayout
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
android:id="@+id/navigation_bar_item_labels_group"
|
||||
android:paddingBottom="@dimen/design_bottom_navigation_label_padding"
|
||||
android:duplicateParentState="true"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
android:textSize="@dimen/design_bottom_navigation_text_size"
|
||||
android:ellipsize="end"
|
||||
android:id="@+id/navigation_bar_item_small_label_view"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="1"/>
|
||||
<TextView
|
||||
android:textSize="@dimen/design_bottom_navigation_active_text_size"
|
||||
android:ellipsize="end"
|
||||
android:id="@+id/navigation_bar_item_large_label_view"
|
||||
android:visibility="invisible"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="1"/>
|
||||
</com.google.android.material.internal.BaselineLayout>
|
||||
</merge>
|
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/container"
|
||||
android:fitsSystemWindows="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||
android:id="@+id/coordinator"
|
||||
android:fitsSystemWindows="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<View
|
||||
android:id="@+id/touch_outside"
|
||||
android:focusable="false"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:soundEffectsEnabled="false"
|
||||
android:importantForAccessibility="no"/>
|
||||
<FrameLayout
|
||||
android:layout_gravity="top|center_horizontal"
|
||||
android:id="@+id/design_bottom_sheet"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_behavior="@string/bottom_sheet_behavior"
|
||||
style="?attr/bottomSheetStyle"/>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
</FrameLayout>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<view xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
class="com.google.android.material.snackbar.Snackbar$SnackbarLayout"
|
||||
style="@style/Widget.Design.Snackbar"/>
|
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<view xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
class="com.google.android.material.snackbar.SnackbarContentLayout">
|
||||
<TextView
|
||||
android:textAppearance="@style/TextAppearance.Design.Snackbar.Message"
|
||||
android:ellipsize="end"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:id="@+id/snackbar_text"
|
||||
android:paddingLeft="@dimen/design_snackbar_padding_horizontal"
|
||||
android:paddingTop="@dimen/design_snackbar_padding_vertical"
|
||||
android:paddingRight="@dimen/design_snackbar_padding_horizontal"
|
||||
android:paddingBottom="@dimen/design_snackbar_padding_vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="@integer/design_snackbar_text_max_lines"
|
||||
android:layout_weight="1"
|
||||
android:textAlignment="viewStart"/>
|
||||
<Button
|
||||
android:textColor="?attr/colorAccent"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:id="@+id/snackbar_action"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/design_snackbar_extra_spacing_horizontal"
|
||||
android:minWidth="48dp"
|
||||
android:layout_marginStart="@dimen/design_snackbar_extra_spacing_horizontal"
|
||||
style="?attr/borderlessButtonStyle"/>
|
||||
</view>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="@dimen/m3_comp_primary_navigation_tab_with_icon_icon_size"
|
||||
android:layout_height="@dimen/m3_comp_primary_navigation_tab_with_icon_icon_size"
|
||||
android:scaleType="centerInside"
|
||||
android:contentDescription="@null"/>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="2"/>
|
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"/>
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.internal.NavigationMenuItemView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:paddingLeft="?attr/listPreferredItemPaddingLeft"
|
||||
android:paddingRight="?attr/listPreferredItemPaddingRight"
|
||||
android:focusable="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:foreground="?attr/selectableItemBackground"
|
||||
android:minHeight="?attr/listPreferredItemHeightSmall"/>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/navigation_header_container"
|
||||
android:paddingBottom="@dimen/design_navigation_separator_vertical_padding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<View
|
||||
android:background="?android:attr/listDivider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"/>
|
||||
</FrameLayout>
|
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
||||
android:textColor="?android:attr/textColorSecondary"
|
||||
android:gravity="start|center_vertical"
|
||||
android:paddingLeft="?attr/listPreferredItemPaddingLeft"
|
||||
android:paddingRight="?attr/listPreferredItemPaddingRight"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/listPreferredItemHeightSmall"
|
||||
android:maxLines="1"/>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.internal.NavigationMenuView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/design_navigation_view"
|
||||
android:paddingBottom="@dimen/design_navigation_padding_bottom"
|
||||
android:scrollbars="vertical"
|
||||
android:clipToPadding="false"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<CheckedTextView
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
||||
android:gravity="start|center_vertical"
|
||||
android:id="@+id/design_menu_item_text"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:maxLines="1"
|
||||
android:drawablePadding="@dimen/design_navigation_icon_padding"
|
||||
android:layout_weight="1"/>
|
||||
<ViewStub
|
||||
android:id="@+id/design_menu_item_action_area_stub"
|
||||
android:layout="@layout/design_menu_item_action_area"
|
||||
android:inflatedId="@+id/design_menu_item_action_area"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"/>
|
||||
</merge>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.internal.CheckableImageButton xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:id="@+id/text_input_end_icon"
|
||||
android:background="?attr/actionBarItemBackground"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:minWidth="@dimen/mtrl_min_touch_target_size"
|
||||
android:minHeight="@dimen/mtrl_min_touch_target_size"
|
||||
android:layout_marginStart="@dimen/mtrl_textinput_end_icon_margin_start"/>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.internal.CheckableImageButton xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:id="@+id/text_input_start_icon"
|
||||
android:background="?attr/actionBarItemBackground"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:minWidth="@dimen/mtrl_min_touch_target_size"
|
||||
android:minHeight="@dimen/mtrl_min_touch_target_size"
|
||||
android:layout_marginEnd="@dimen/mtrl_textinput_start_icon_margin_end"/>
|
75
02-Easy5/E5/resources/res/layout/m3_alert_dialog.xml
Normal file
75
02-Easy5/E5/resources/res/layout/m3_alert_dialog.xml
Normal file
@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.widget.AlertDialogLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:gravity="start|top"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/parentPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/m3_alert_dialog_title"/>
|
||||
<FrameLayout
|
||||
android:id="@+id/contentPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="48dp">
|
||||
<ImageView
|
||||
android:layout_gravity="top"
|
||||
android:id="@+id/scrollIndicatorUp"
|
||||
android:background="#1f000000"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:contentDescription="@null"
|
||||
app:backgroundTint="?android:attr/colorForeground"/>
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:id="@+id/scrollView"
|
||||
android:clipToPadding="false"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<android.widget.Space
|
||||
android:id="@+id/textSpacerNoTitle"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/abc_dialog_padding_top_material"/>
|
||||
<TextView
|
||||
android:id="@android:id/message"
|
||||
android:paddingLeft="?attr/dialogPreferredPadding"
|
||||
android:paddingRight="?attr/dialogPreferredPadding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/materialAlertDialogBodyTextStyle"/>
|
||||
<android.widget.Space
|
||||
android:id="@+id/textSpacerNoButtons"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/abc_dialog_padding_top_material"/>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
<ImageView
|
||||
android:layout_gravity="bottom"
|
||||
android:id="@+id/scrollIndicatorDown"
|
||||
android:background="#1f000000"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:contentDescription="@null"
|
||||
app:backgroundTint="?android:attr/colorForeground"/>
|
||||
</FrameLayout>
|
||||
<FrameLayout
|
||||
android:id="@+id/customPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="48dp">
|
||||
<FrameLayout
|
||||
android:id="@+id/custom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
</FrameLayout>
|
||||
<include
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/m3_alert_dialog_actions"/>
|
||||
</androidx.appcompat.widget.AlertDialogLayout>
|
40
02-Easy5/E5/resources/res/layout/m3_alert_dialog_actions.xml
Normal file
40
02-Easy5/E5/resources/res/layout/m3_alert_dialog_actions.xml
Normal file
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/buttonPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fillViewport="true"
|
||||
style="?attr/buttonBarStyle">
|
||||
<androidx.appcompat.widget.ButtonBarLayout
|
||||
android:gravity="bottom"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="?attr/dialogPreferredPadding"
|
||||
android:paddingTop="@dimen/m3_alert_dialog_action_top_padding"
|
||||
android:paddingRight="?attr/dialogPreferredPadding"
|
||||
android:paddingBottom="@dimen/m3_alert_dialog_action_bottom_padding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layoutDirection="locale">
|
||||
<Button
|
||||
android:id="@android:id/button3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/buttonBarNeutralButtonStyle"/>
|
||||
<android.widget.Space
|
||||
android:id="@+id/spacer"
|
||||
android:visibility="?attr/materialAlertDialogButtonSpacerVisibility"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"/>
|
||||
<Button
|
||||
android:id="@android:id/button2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/buttonBarNegativeButtonStyle"/>
|
||||
<Button
|
||||
android:id="@android:id/button1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/buttonBarPositiveButtonStyle"/>
|
||||
</androidx.appcompat.widget.ButtonBarLayout>
|
||||
</ScrollView>
|
22
02-Easy5/E5/resources/res/layout/m3_alert_dialog_title.xml
Normal file
22
02-Easy5/E5/resources/res/layout/m3_alert_dialog_title.xml
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/topPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
android:id="@+id/title_template"
|
||||
style="?attr/materialAlertDialogTitlePanelStyle">
|
||||
<ImageView
|
||||
android:id="@android:id/icon"
|
||||
style="?attr/materialAlertDialogTitleIconStyle"/>
|
||||
<androidx.appcompat.widget.DialogTitle
|
||||
android:id="@+id/alertTitle"
|
||||
style="?attr/materialAlertDialogTitleTextStyle"/>
|
||||
</LinearLayout>
|
||||
<android.widget.Space
|
||||
android:id="@+id/titleDividerNoCustom"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/m3_alert_dialog_title_bottom_margin"/>
|
||||
</LinearLayout>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:textAppearance="?attr/textAppearanceBodyLarge"
|
||||
android:ellipsize="end"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingTop="13dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="13dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="1"/>
|
26
02-Easy5/E5/resources/res/layout/m3_side_sheet_dialog.xml
Normal file
26
02-Easy5/E5/resources/res/layout/m3_side_sheet_dialog.xml
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/container"
|
||||
android:fitsSystemWindows="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||
android:id="@+id/coordinator"
|
||||
android:fitsSystemWindows="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<View
|
||||
android:id="@+id/touch_outside"
|
||||
android:focusable="false"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:soundEffectsEnabled="false"
|
||||
android:importantForAccessibility="no"/>
|
||||
<FrameLayout
|
||||
android:id="@+id/m3_side_sheet"
|
||||
android:layout_width="@dimen/m3_side_sheet_width"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_behavior="@string/side_sheet_behavior"
|
||||
style="?attr/sideSheetModalStyle"/>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
</FrameLayout>
|
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.timepicker.ChipTextInputComboView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
16
02-Easy5/E5/resources/res/layout/material_clock_display.xml
Normal file
16
02-Easy5/E5/resources/res/layout/material_clock_display.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/material_clock_display"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:baselineAligned="false"
|
||||
android:layoutDirection="ltr">
|
||||
<include
|
||||
android:id="@+id/material_hour_tv"
|
||||
layout="@layout/material_time_chip"/>
|
||||
<include layout="@layout/material_clock_display_divider"/>
|
||||
<include
|
||||
android:id="@+id/material_minute_tv"
|
||||
layout="@layout/material_time_chip"/>
|
||||
</LinearLayout>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:gravity="center"
|
||||
android:layout_width="@dimen/material_clock_display_padding"
|
||||
android:layout_height="@dimen/material_clock_display_height"
|
||||
android:importantForAccessibility="no"
|
||||
style="?attr/materialDisplayDividerStyle"/>
|
@ -0,0 +1,24 @@
|
||||
<?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="vertical"
|
||||
android:id="@+id/material_clock_period_toggle"
|
||||
android:visibility="gone"
|
||||
android:layout_width="@dimen/material_clock_period_toggle_width"
|
||||
android:layout_height="@dimen/material_clock_period_toggle_height"
|
||||
android:contentDescription="@string/material_clock_toggle_content_description"
|
||||
app:checkedButton="@+id/material_clock_period_am_button"
|
||||
app:selectionRequired="true"
|
||||
app:singleSelection="true">
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/material_clock_period_am_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/material_timepicker_am"
|
||||
android:insetTop="8dp"
|
||||
style="?attr/materialButtonOutlinedStyle"/>
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/material_clock_period_pm_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/material_timepicker_pm"
|
||||
android:insetBottom="8dp"
|
||||
style="?attr/materialButtonOutlinedStyle"/>
|
||||
</com.google.android.material.button.MaterialButtonToggleGroup>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:textSize="@dimen/material_clock_number_text_size"
|
||||
android:textColor="?attr/colorOnSurface"
|
||||
android:gravity="center"
|
||||
android:visibility="gone"
|
||||
android:layout_width="@dimen/mtrl_min_touch_target_size"
|
||||
android:layout_height="@dimen/mtrl_min_touch_target_size"/>
|
17
02-Easy5/E5/resources/res/layout/material_clockface_view.xml
Normal file
17
02-Easy5/E5/resources/res/layout/material_clockface_view.xml
Normal file
@ -0,0 +1,17 @@
|
||||
<?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:layout_gravity="center"
|
||||
android:id="@+id/material_clock_face"
|
||||
android:layout_width="256dp"
|
||||
android:layout_height="256dp">
|
||||
<com.google.android.material.timepicker.ClockHandView
|
||||
android:id="@+id/material_clock_hand"
|
||||
android:tag="skip"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:selectorSize="24dp"/>
|
||||
</merge>
|
@ -0,0 +1,11 @@
|
||||
<?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">
|
||||
<View
|
||||
android:id="@+id/circle_center"
|
||||
android:layout_width="1px"
|
||||
android:layout_height="1px"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
</merge>
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:baselineAligned="false">
|
||||
<include layout="@layout/material_timepicker_textinput_display"/>
|
||||
<include
|
||||
android:id="@+id/material_clock_period_toggle"
|
||||
android:layout_width="@dimen/material_clock_period_toggle_width"
|
||||
android:layout_height="@dimen/material_clock_period_toggle_height"
|
||||
android:layout_marginStart="@dimen/material_clock_period_toggle_horizontal_gap"
|
||||
layout="@layout/material_clock_period_toggle"/>
|
||||
</LinearLayout>
|
5
02-Easy5/E5/resources/res/layout/material_time_chip.xml
Normal file
5
02-Easy5/E5/resources/res/layout/material_time_chip.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.chip.Chip xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="@dimen/material_clock_display_width"
|
||||
android:layout_height="@dimen/material_clock_display_height"
|
||||
style="?attr/chipStyle"/>
|
16
02-Easy5/E5/resources/res/layout/material_time_input.xml
Normal file
16
02-Easy5/E5/resources/res/layout/material_time_input.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.textfield.TextInputLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:errorIconDrawable="@null"
|
||||
app:hintEnabled="false">
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:layout_width="@dimen/material_clock_display_width"
|
||||
android:layout_height="@dimen/material_clock_display_height"
|
||||
android:textCursorDrawable="@drawable/material_cursor_drawable"/>
|
||||
<TextView
|
||||
android:id="@+id/material_label"
|
||||
android:focusable="false"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
31
02-Easy5/E5/resources/res/layout/material_timepicker.xml
Normal file
31
02-Easy5/E5/resources/res/layout/material_timepicker.xml
Normal file
@ -0,0 +1,31 @@
|
||||
<?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="horizontal"
|
||||
android:id="@+id/material_clock_display_and_toggle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/material_clock_period_toggle_height"
|
||||
app:constraint_referenced_ids="material_clock_display,material_clock_period_toggle"
|
||||
app:flow_horizontalGap="@dimen/material_clock_period_toggle_horizontal_gap"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
<include
|
||||
android:id="@+id/material_clock_display"
|
||||
layout="@layout/material_clock_display"/>
|
||||
<include
|
||||
android:id="@+id/material_clock_period_toggle"
|
||||
layout="@layout/material_clock_period_toggle"/>
|
||||
<com.google.android.material.timepicker.ClockFaceView
|
||||
android:layout_gravity="center"
|
||||
android:id="@+id/material_clock_face"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="28dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/material_clock_display_and_toggle"/>
|
||||
</merge>
|
@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:paddingBottom="2dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
android:id="@+id/header_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="@string/material_timepicker_select_time"
|
||||
android:importantForAccessibility="no"
|
||||
android:layout_marginStart="24dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
style="?attr/materialTimePickerTitleStyle"/>
|
||||
<com.google.android.material.timepicker.TimePickerView
|
||||
android:id="@+id/material_timepicker_view"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_marginTop="@dimen/material_clock_face_margin_top"
|
||||
android:layout_marginRight="24dp"
|
||||
android:layout_marginBottom="@dimen/material_clock_face_margin_bottom"
|
||||
app:layout_constraintBottom_toTopOf="@+id/material_timepicker_mode_button"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
<ViewStub
|
||||
android:id="@+id/material_textinput_timepicker"
|
||||
android:layout="@layout/material_textinput_timepicker"
|
||||
android:inflatedId="@+id/material_textinput_timepicker"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_marginTop="44dp"
|
||||
android:layout_marginRight="24dp"
|
||||
android:layout_marginBottom="@dimen/material_clock_face_margin_bottom"
|
||||
app:layout_constraintBottom_toTopOf="@+id/material_timepicker_mode_button"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/material_timepicker_mode_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
style="?attr/imageButtonStyle"/>
|
||||
<Button
|
||||
android:id="@+id/material_timepicker_cancel_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:minWidth="72dp"
|
||||
android:text="@string/mtrl_timepicker_cancel"
|
||||
android:layout_marginEnd="8dp"
|
||||
app:layout_constraintEnd_toStartOf="@+id/material_timepicker_ok_button"
|
||||
app:layout_constraintTop_toTopOf="@+id/material_timepicker_mode_button"
|
||||
style="?attr/borderlessButtonStyle"/>
|
||||
<Button
|
||||
android:id="@+id/material_timepicker_ok_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:minWidth="64dp"
|
||||
android:text="@string/mtrl_timepicker_confirm"
|
||||
android:layout_marginEnd="8dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/material_timepicker_mode_button"
|
||||
style="?attr/borderlessButtonStyle"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:paddingTop="8dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layoutDirection="ltr">
|
||||
<include
|
||||
android:id="@+id/material_hour_text_input"
|
||||
layout="@layout/material_chip_input_combo"/>
|
||||
<include layout="@layout/material_clock_display_divider"/>
|
||||
<include
|
||||
android:id="@+id/material_minute_text_input"
|
||||
layout="@layout/material_chip_input_combo"/>
|
||||
</LinearLayout>
|
71
02-Easy5/E5/resources/res/layout/mtrl_alert_dialog.xml
Normal file
71
02-Easy5/E5/resources/res/layout/mtrl_alert_dialog.xml
Normal file
@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.appcompat.widget.AlertDialogLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:gravity="start|top"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/parentPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include layout="@layout/mtrl_alert_dialog_title"/>
|
||||
<FrameLayout
|
||||
android:id="@+id/contentPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="48dp">
|
||||
<View
|
||||
android:layout_gravity="top"
|
||||
android:id="@+id/scrollIndicatorUp"
|
||||
android:background="?attr/colorControlHighlight"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"/>
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:id="@+id/scrollView"
|
||||
android:clipToPadding="false"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<android.widget.Space
|
||||
android:id="@+id/textSpacerNoTitle"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/abc_dialog_padding_top_material"/>
|
||||
<TextView
|
||||
android:id="@android:id/message"
|
||||
android:paddingLeft="?attr/dialogPreferredPadding"
|
||||
android:paddingRight="?attr/dialogPreferredPadding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/materialAlertDialogBodyTextStyle"/>
|
||||
<android.widget.Space
|
||||
android:id="@+id/textSpacerNoButtons"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/abc_dialog_padding_top_material"/>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
<View
|
||||
android:layout_gravity="bottom"
|
||||
android:id="@+id/scrollIndicatorDown"
|
||||
android:background="?attr/colorControlHighlight"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"/>
|
||||
</FrameLayout>
|
||||
<FrameLayout
|
||||
android:id="@+id/customPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="48dp">
|
||||
<FrameLayout
|
||||
android:id="@+id/custom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
</FrameLayout>
|
||||
<include
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
layout="@layout/mtrl_alert_dialog_actions"/>
|
||||
</androidx.appcompat.widget.AlertDialogLayout>
|
@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/buttonPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fillViewport="true"
|
||||
style="?attr/buttonBarStyle">
|
||||
<androidx.appcompat.widget.ButtonBarLayout
|
||||
android:gravity="bottom"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingTop="2dp"
|
||||
android:paddingRight="8dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layoutDirection="locale"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp">
|
||||
<Button
|
||||
android:id="@android:id/button3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/buttonBarNeutralButtonStyle"/>
|
||||
<android.widget.Space
|
||||
android:id="@+id/spacer"
|
||||
android:visibility="?attr/materialAlertDialogButtonSpacerVisibility"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"/>
|
||||
<Button
|
||||
android:id="@android:id/button2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/buttonBarNegativeButtonStyle"/>
|
||||
<Button
|
||||
android:id="@android:id/button1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/buttonBarPositiveButtonStyle"/>
|
||||
</androidx.appcompat.widget.ButtonBarLayout>
|
||||
</ScrollView>
|
22
02-Easy5/E5/resources/res/layout/mtrl_alert_dialog_title.xml
Normal file
22
02-Easy5/E5/resources/res/layout/mtrl_alert_dialog_title.xml
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/topPanel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
android:id="@+id/title_template"
|
||||
style="?attr/materialAlertDialogTitlePanelStyle">
|
||||
<ImageView
|
||||
android:id="@android:id/icon"
|
||||
style="?attr/materialAlertDialogTitleIconStyle"/>
|
||||
<androidx.appcompat.widget.DialogTitle
|
||||
android:id="@+id/alertTitle"
|
||||
style="?attr/materialAlertDialogTitleTextStyle"/>
|
||||
</LinearLayout>
|
||||
<android.widget.Space
|
||||
android:id="@+id/titleDividerNoCustom"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/abc_dialog_title_divider_material"/>
|
||||
</LinearLayout>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:ellipsize="marquee"
|
||||
android:gravity="center_vertical"
|
||||
android:id="@android:id/text1"
|
||||
android:paddingLeft="?attr/listPreferredItemPaddingLeft"
|
||||
android:paddingRight="?attr/listPreferredItemPaddingRight"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="?attr/listPreferredItemHeightSmall"
|
||||
style="?attr/materialAlertDialogBodyTextStyle"/>
|
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:ellipsize="marquee"
|
||||
android:gravity="center"
|
||||
android:id="@android:id/text1"
|
||||
android:paddingLeft="@dimen/abc_select_dialog_padding_start_material"
|
||||
android:paddingRight="?attr/dialogPreferredPadding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="?attr/listPreferredItemHeightSmall"
|
||||
android:drawablePadding="20dp"
|
||||
android:textAlignment="viewStart"
|
||||
android:paddingStart="@dimen/abc_select_dialog_padding_start_material"
|
||||
android:paddingEnd="?attr/dialogPreferredPadding"
|
||||
app:drawableLeftCompat="?android:attr/listChoiceIndicatorMultiple"
|
||||
app:drawableStartCompat="?android:attr/listChoiceIndicatorMultiple"/>
|
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:ellipsize="marquee"
|
||||
android:gravity="center"
|
||||
android:id="@android:id/text1"
|
||||
android:paddingLeft="@dimen/abc_select_dialog_padding_start_material"
|
||||
android:paddingRight="?attr/dialogPreferredPadding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="?attr/listPreferredItemHeightSmall"
|
||||
android:drawablePadding="20dp"
|
||||
android:textAlignment="viewStart"
|
||||
android:paddingStart="@dimen/abc_select_dialog_padding_start_material"
|
||||
android:paddingEnd="?attr/dialogPreferredPadding"
|
||||
app:drawableLeftCompat="?android:attr/listChoiceIndicatorSingle"
|
||||
app:drawableStartCompat="?android:attr/listChoiceIndicatorSingle"/>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:textAppearance="?attr/textAppearanceSubtitle1"
|
||||
android:ellipsize="end"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingTop="13dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingBottom="13dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="1"/>
|
5
02-Easy5/E5/resources/res/layout/mtrl_calendar_day.xml
Normal file
5
02-Easy5/E5/resources/res/layout/mtrl_calendar_day.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="@dimen/mtrl_calendar_day_width"
|
||||
android:layout_height="@dimen/mtrl_calendar_day_height"
|
||||
style="?attr/materialCalendarDay"/>
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="@dimen/mtrl_calendar_day_width"
|
||||
android:layout_height="@dimen/mtrl_calendar_days_of_week_height"
|
||||
style="?attr/materialCalendarDayOfWeekLabel"/>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:gravity="center_horizontal"
|
||||
android:id="@+id/mtrl_calendar_days_of_week"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/mtrl_calendar_days_of_week_height"
|
||||
android:horizontalSpacing="@dimen/mtrl_calendar_month_horizontal_padding"/>
|
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<include layout="@layout/mtrl_calendar_month_navigation"/>
|
||||
<FrameLayout
|
||||
android:id="@+id/mtrl_calendar_selection_frame"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:id="@+id/mtrl_calendar_year_selector_frame"
|
||||
android:scrollbars="none"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"/>
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/mtrl_calendar_day_selector_frame"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
<include layout="@layout/mtrl_calendar_days_of_week"/>
|
||||
<include layout="@layout/mtrl_calendar_months"/>
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
11
02-Easy5/E5/resources/res/layout/mtrl_calendar_month.xml
Normal file
11
02-Easy5/E5/resources/res/layout/mtrl_calendar_month.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.datepicker.MaterialCalendarGridView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:gravity="center"
|
||||
android:id="@+id/month_grid"
|
||||
android:addStatesFromChildren="false"
|
||||
android:descendantFocusability="afterDescendants"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:listSelector="@android:color/transparent"
|
||||
android:horizontalSpacing="@dimen/mtrl_calendar_month_horizontal_padding"
|
||||
android:verticalSpacing="@dimen/mtrl_calendar_month_vertical_padding"/>
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
android:gravity="start|center_vertical"
|
||||
android:id="@+id/month_title"
|
||||
android:focusable="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/mtrl_calendar_day_height"
|
||||
style="?attr/materialCalendarMonth"/>
|
||||
<include layout="@layout/mtrl_calendar_month"/>
|
||||
</LinearLayout>
|
@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/month_navigation_bar"
|
||||
android:paddingTop="@dimen/mtrl_calendar_navigation_top_padding"
|
||||
android:paddingBottom="@dimen/mtrl_calendar_navigation_bottom_padding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<FrameLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1">
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:gravity="start|center_vertical"
|
||||
android:layout_gravity="start"
|
||||
android:id="@+id/month_navigation_fragment_toggle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/mtrl_calendar_navigation_height"
|
||||
android:insetTop="0dp"
|
||||
android:insetBottom="0dp"
|
||||
app:icon="@drawable/material_ic_menu_arrow_down_black_24dp"
|
||||
app:iconGravity="textEnd"
|
||||
app:iconPadding="4dp"
|
||||
style="?attr/materialCalendarYearNavigationButton"/>
|
||||
</FrameLayout>
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:gravity="center"
|
||||
android:id="@+id/month_navigation_previous"
|
||||
android:layout_width="@dimen/mtrl_min_touch_target_size"
|
||||
android:layout_height="@dimen/mtrl_calendar_navigation_height"
|
||||
android:insetTop="0dp"
|
||||
android:insetBottom="0dp"
|
||||
android:contentDescription="@string/mtrl_picker_a11y_prev_month"
|
||||
app:icon="@drawable/material_ic_keyboard_arrow_previous_black_24dp"
|
||||
style="?attr/materialCalendarMonthNavigationButton"/>
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:gravity="center"
|
||||
android:id="@+id/month_navigation_next"
|
||||
android:layout_width="@dimen/mtrl_min_touch_target_size"
|
||||
android:layout_height="@dimen/mtrl_calendar_navigation_height"
|
||||
android:insetTop="0dp"
|
||||
android:insetBottom="0dp"
|
||||
android:contentDescription="@string/mtrl_picker_a11y_next_month"
|
||||
app:icon="@drawable/material_ic_keyboard_arrow_next_black_24dp"
|
||||
style="?attr/materialCalendarMonthNavigationButton"/>
|
||||
</LinearLayout>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/mtrl_calendar_months"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:listSelector="@android:color/transparent"/>
|
13
02-Easy5/E5/resources/res/layout/mtrl_calendar_vertical.xml
Normal file
13
02-Easy5/E5/resources/res/layout/mtrl_calendar_vertical.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<include layout="@layout/mtrl_calendar_days_of_week"/>
|
||||
<View
|
||||
android:background="?attr/colorOnSurface"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"/>
|
||||
<include layout="@layout/mtrl_calendar_months"/>
|
||||
</LinearLayout>
|
5
02-Easy5/E5/resources/res/layout/mtrl_calendar_year.xml
Normal file
5
02-Easy5/E5/resources/res/layout/mtrl_calendar_year.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="@dimen/mtrl_calendar_year_width"
|
||||
android:layout_height="@dimen/mtrl_calendar_year_height"
|
||||
style="?attr/materialCalendarDay"/>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<view xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
class="com.google.android.material.snackbar.Snackbar$SnackbarLayout"
|
||||
style="?attr/snackbarStyle"/>
|
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<view xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
class="com.google.android.material.snackbar.SnackbarContentLayout">
|
||||
<TextView
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:id="@+id/snackbar_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
style="?attr/snackbarTextViewStyle"/>
|
||||
<Button
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:id="@+id/snackbar_action"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:minWidth="48dp"
|
||||
style="?attr/snackbarButtonStyle"/>
|
||||
</view>
|
@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<FrameLayout
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:id="@+id/navigation_bar_item_icon_container"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/mtrl_navigation_rail_margin"
|
||||
android:layout_marginBottom="@dimen/mtrl_navigation_rail_text_bottom_margin">
|
||||
<View
|
||||
android:layout_gravity="center"
|
||||
android:id="@+id/navigation_bar_item_active_indicator_view"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"/>
|
||||
<ImageView
|
||||
android:layout_gravity="center"
|
||||
android:id="@+id/navigation_bar_item_icon_view"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="@dimen/mtrl_navigation_rail_icon_size"
|
||||
android:layout_height="@dimen/mtrl_navigation_rail_icon_size"
|
||||
android:contentDescription="@null"/>
|
||||
</FrameLayout>
|
||||
<com.google.android.material.internal.BaselineLayout
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
android:id="@+id/navigation_bar_item_labels_group"
|
||||
android:paddingBottom="@dimen/mtrl_navigation_rail_text_bottom_margin"
|
||||
android:duplicateParentState="true"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
android:textSize="@dimen/mtrl_navigation_rail_text_size"
|
||||
android:ellipsize="end"
|
||||
android:id="@+id/navigation_bar_item_small_label_view"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="1"/>
|
||||
<TextView
|
||||
android:textSize="@dimen/mtrl_navigation_rail_active_text_size"
|
||||
android:ellipsize="end"
|
||||
android:id="@+id/navigation_bar_item_large_label_view"
|
||||
android:visibility="invisible"
|
||||
android:duplicateParentState="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="1"/>
|
||||
</com.google.android.material.internal.BaselineLayout>
|
||||
</merge>
|
25
02-Easy5/E5/resources/res/layout/mtrl_picker_actions.xml
Normal file
25
02-Easy5/E5/resources/res/layout/mtrl_picker_actions.xml
Normal file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:gravity="end"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/date_picker_actions"
|
||||
android:paddingRight="@dimen/mtrl_calendar_action_padding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/mtrl_calendar_action_height"
|
||||
android:paddingEnd="@dimen/mtrl_calendar_action_padding">
|
||||
<Button
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/cancel_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/mtrl_picker_cancel"
|
||||
style="?attr/buttonBarNegativeButtonStyle"/>
|
||||
<Button
|
||||
android:layout_gravity="center_vertical"
|
||||
android:id="@+id/confirm_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:minWidth="@dimen/mtrl_calendar_action_confirm_button_min_width"
|
||||
android:text="@string/mtrl_picker_confirm"
|
||||
style="?attr/buttonBarPositiveButtonStyle"/>
|
||||
</LinearLayout>
|
27
02-Easy5/E5/resources/res/layout/mtrl_picker_dialog.xml
Normal file
27
02-Easy5/E5/resources/res/layout/mtrl_picker_dialog.xml
Normal file
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="@integer/mtrl_calendar_header_orientation"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
<include layout="@layout/mtrl_picker_header_dialog"/>
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/mtrl_calendar_main_pane"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
<androidx.fragment.app.FragmentContainerView
|
||||
android:id="@+id/mtrl_calendar_frame"
|
||||
android:paddingLeft="@dimen/mtrl_calendar_content_padding"
|
||||
android:paddingRight="@dimen/mtrl_calendar_content_padding"
|
||||
android:paddingBottom="@dimen/mtrl_calendar_bottom_padding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:paddingStart="@dimen/mtrl_calendar_content_padding"
|
||||
android:paddingEnd="@dimen/mtrl_calendar_content_padding"/>
|
||||
<include
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/mtrl_calendar_action_height"
|
||||
layout="@layout/mtrl_picker_actions"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
17
02-Easy5/E5/resources/res/layout/mtrl_picker_fullscreen.xml
Normal file
17
02-Easy5/E5/resources/res/layout/mtrl_picker_fullscreen.xml
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/mtrl_picker_fullscreen"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<include layout="@layout/mtrl_picker_header_fullscreen"/>
|
||||
<androidx.fragment.app.FragmentContainerView
|
||||
android:id="@+id/mtrl_calendar_frame"
|
||||
android:paddingLeft="@dimen/mtrl_calendar_content_padding"
|
||||
android:paddingRight="@dimen/mtrl_calendar_content_padding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/mtrl_calendar_content_padding"
|
||||
android:paddingEnd="@dimen/mtrl_calendar_content_padding"/>
|
||||
</LinearLayout>
|
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
android:layout_gravity="top"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/mtrl_picker_header"
|
||||
android:paddingLeft="@dimen/mtrl_calendar_header_content_padding"
|
||||
android:paddingRight="@dimen/mtrl_calendar_header_content_padding"
|
||||
android:baselineAligned="false"
|
||||
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="0dp"
|
||||
android:layout_height="match_parent"
|
||||
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="bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/mtrl_calendar_header_divider_thickness"
|
||||
style="?attr/materialCalendarHeaderDivider"/>
|
||||
</merge>
|
@ -0,0 +1,77 @@
|
||||
<?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:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
android:layout_gravity="top|center_horizontal"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/fullscreen_header"
|
||||
android:paddingLeft="@dimen/mtrl_calendar_header_content_padding_fullscreen"
|
||||
android:paddingTop="@dimen/mtrl_calendar_header_content_padding_fullscreen"
|
||||
android:paddingRight="@dimen/mtrl_calendar_header_content_padding_fullscreen"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/mtrl_calendar_header_height_fullscreen"
|
||||
android:paddingStart="@dimen/mtrl_calendar_header_content_padding_fullscreen"
|
||||
android:paddingEnd="@dimen/mtrl_calendar_header_content_padding_fullscreen"
|
||||
style="?attr/materialCalendarHeaderLayout">
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:gravity="center"
|
||||
android:layout_gravity="top"
|
||||
android:id="@+id/cancel_button"
|
||||
android:padding="12dp"
|
||||
android:layout_width="@dimen/mtrl_min_touch_target_size"
|
||||
android:layout_height="@dimen/mtrl_min_touch_target_size"
|
||||
android:insetTop="0dp"
|
||||
android:insetBottom="0dp"
|
||||
android:contentDescription="@string/mtrl_picker_cancel"
|
||||
app:icon="@drawable/material_ic_clear_black_24dp"
|
||||
style="?attr/materialCalendarHeaderCancelButton"/>
|
||||
<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="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:paddingStart="@dimen/mtrl_calendar_header_text_padding">
|
||||
<TextView
|
||||
android:gravity="start|bottom"
|
||||
android:layout_gravity="start|top"
|
||||
android:id="@+id/mtrl_picker_title_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:firstBaselineToTopHeight="@dimen/mtrl_calendar_title_baseline_to_top_fullscreen"
|
||||
style="?attr/materialCalendarHeaderTitle"/>
|
||||
<TextView
|
||||
android:gravity="start|bottom"
|
||||
android:layout_gravity="start|top"
|
||||
android:id="@+id/mtrl_picker_header_selection_text"
|
||||
android:paddingBottom="@dimen/mtrl_calendar_pre_l_text_clip_padding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:firstBaselineToTopHeight="@dimen/mtrl_calendar_selection_baseline_to_top_fullscreen"
|
||||
app:lineHeight="@dimen/mtrl_calendar_header_selection_line_height"
|
||||
style="?attr/materialCalendarHeaderSelection"/>
|
||||
</FrameLayout>
|
||||
<LinearLayout
|
||||
android:orientation="@integer/mtrl_calendar_header_orientation"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:layout_gravity="end|top"
|
||||
android:id="@+id/confirm_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/mtrl_min_touch_target_size"
|
||||
android:text="@string/mtrl_picker_save"
|
||||
android:contentDescription="@string/mtrl_picker_save"
|
||||
style="?attr/materialCalendarHeaderConfirmButton"/>
|
||||
<include layout="@layout/mtrl_picker_header_toggle"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/mtrl_calendar_header_divider_thickness"
|
||||
style="?attr/materialCalendarHeaderDivider"/>
|
||||
</merge>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:gravity="start|bottom"
|
||||
android:id="@+id/mtrl_picker_header_selection_text"
|
||||
android:paddingBottom="@dimen/mtrl_calendar_pre_l_text_clip_padding"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:autoSizeTextType="uniform"
|
||||
app:firstBaselineToTopHeight="@dimen/mtrl_calendar_selection_text_baseline_to_top"
|
||||
app:lineHeight="@dimen/mtrl_calendar_header_selection_line_height"
|
||||
style="?attr/materialCalendarHeaderSelection"/>
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:gravity="start|top"
|
||||
android:layout_gravity="start|top"
|
||||
android:id="@+id/mtrl_picker_title_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:firstBaselineToTopHeight="@dimen/mtrl_calendar_title_baseline_to_top"
|
||||
style="?attr/materialCalendarHeaderTitle"/>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.internal.CheckableImageButton xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/mtrl_picker_header_toggle"
|
||||
android:layout_width="@dimen/mtrl_min_touch_target_size"
|
||||
android:layout_height="@dimen/mtrl_min_touch_target_size"
|
||||
android:layout_marginTop="@dimen/mtrl_calendar_header_toggle_margin_top"
|
||||
android:layout_marginBottom="@dimen/mtrl_calendar_header_toggle_margin_bottom"
|
||||
style="?attr/materialCalendarHeaderToggleButton"/>
|
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/mtrl_calendar_text_input_frame"
|
||||
android:paddingLeft="@dimen/mtrl_calendar_content_padding"
|
||||
android:paddingTop="@dimen/mtrl_calendar_text_input_padding_top"
|
||||
android:paddingRight="@dimen/mtrl_calendar_content_padding"
|
||||
android:paddingBottom="16dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/mtrl_picker_text_input_date"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/mtrl_picker_text_input_date_hint"
|
||||
android:inputType="date"
|
||||
android:imeOptions="flagNoExtractUi"/>
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
</FrameLayout>
|
@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="@dimen/mtrl_calendar_content_padding"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingRight="@dimen/mtrl_calendar_content_padding"
|
||||
android:paddingBottom="16dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/mtrl_picker_text_input_range_start"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1">
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/mtrl_picker_text_input_date_range_start_hint"
|
||||
android:inputType="date"
|
||||
android:imeOptions="flagNoExtractUi"/>
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<Space
|
||||
android:layout_width="8dp"
|
||||
android:layout_height="0dp"/>
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/mtrl_picker_text_input_range_end"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1">
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/mtrl_picker_text_input_date_range_end_hint"
|
||||
android:inputType="date"
|
||||
android:imeOptions="flagNoExtractUi"/>
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
8
02-Easy5/E5/resources/res/layout/mtrl_search_bar.xml
Normal file
8
02-Easy5/E5/resources/res/layout/mtrl_search_bar.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:ellipsize="end"
|
||||
android:id="@+id/open_search_bar_text_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxLines="1"
|
||||
android:importantForAccessibility="no"/>
|
93
02-Easy5/E5/resources/res/layout/mtrl_search_view.xml
Normal file
93
02-Easy5/E5/resources/res/layout/mtrl_search_view.xml
Normal file
@ -0,0 +1,93 @@
|
||||
<?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">
|
||||
<View
|
||||
android:id="@+id/open_search_view_scrim"
|
||||
android:background="?attr/scrimBackground"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:alpha="0"/>
|
||||
<com.google.android.material.internal.ClippableRoundedCornerLayout
|
||||
android:id="@+id/open_search_view_root"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/open_search_view_background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<View
|
||||
android:id="@+id/open_search_view_status_bar_spacer"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
<FrameLayout
|
||||
android:id="@+id/open_search_view_header_container"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
<FrameLayout
|
||||
android:id="@+id/open_search_view_toolbar_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<com.google.android.material.appbar.MaterialToolbar
|
||||
android:layout_gravity="end"
|
||||
android:id="@+id/open_search_view_dummy_toolbar"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:navigationIcon="@null"
|
||||
style="?attr/materialSearchViewToolbarStyle"/>
|
||||
<com.google.android.material.appbar.MaterialToolbar
|
||||
android:id="@+id/open_search_view_toolbar"
|
||||
android:clipChildren="false"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:navigationContentDescription="@string/searchview_navigation_content_description"
|
||||
style="?attr/materialSearchViewToolbarStyle">
|
||||
<LinearLayout
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/materialSearchViewToolbarHeight">
|
||||
<TextView
|
||||
android:id="@+id/open_search_view_search_prefix"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="?attr/materialSearchViewPrefixStyle"/>
|
||||
<EditText
|
||||
android:id="@+id/open_search_view_edit_text"
|
||||
android:background="@null"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:inputType="textNoSuggestions"
|
||||
android:imeOptions="flagNoExtractUi|actionSearch"
|
||||
android:textDirection="firstStrong"/>
|
||||
<ImageButton
|
||||
android:id="@+id/open_search_view_clear_button"
|
||||
android:background="?attr/actionBarItemBackground"
|
||||
android:padding="16dp"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="@string/searchview_clear_text_content_description"
|
||||
app:srcCompat="@drawable/ic_clear_black_24"/>
|
||||
</LinearLayout>
|
||||
</com.google.android.material.appbar.MaterialToolbar>
|
||||
</FrameLayout>
|
||||
<View
|
||||
android:id="@+id/open_search_view_divider"
|
||||
android:background="?attr/colorOutline"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/m3_searchview_divider_size"/>
|
||||
<com.google.android.material.internal.TouchObserverFrameLayout
|
||||
android:id="@+id/open_search_view_content_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
</LinearLayout>
|
||||
</com.google.android.material.internal.ClippableRoundedCornerLayout>
|
||||
</merge>
|
26
02-Easy5/E5/resources/res/layout/notification_action.xml
Normal file
26
02-Easy5/E5/resources/res/layout/notification_action.xml
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/action_container"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_weight="1"
|
||||
android:paddingStart="4dp"
|
||||
style="@style/Widget.Compat.NotificationActionContainer">
|
||||
<ImageView
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:id="@+id/action_image"
|
||||
android:layout_width="@dimen/notification_action_icon_size"
|
||||
android:layout_height="@dimen/notification_action_icon_size"
|
||||
android:scaleType="centerInside"/>
|
||||
<TextView
|
||||
android:ellipsize="end"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:id="@+id/action_text"
|
||||
android:clickable="false"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:paddingStart="4dp"
|
||||
style="@style/Widget.Compat.NotificationActionText"/>
|
||||
</LinearLayout>
|
@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:enabled="false"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/action_container"
|
||||
android:background="@null"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_weight="1"
|
||||
android:paddingStart="4dp"
|
||||
style="@style/Widget.Compat.NotificationActionContainer">
|
||||
<ImageView
|
||||
android:enabled="false"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:id="@+id/action_image"
|
||||
android:layout_width="@dimen/notification_action_icon_size"
|
||||
android:layout_height="@dimen/notification_action_icon_size"
|
||||
android:scaleType="centerInside"
|
||||
android:alpha="0.5"/>
|
||||
<TextView
|
||||
android:enabled="false"
|
||||
android:ellipsize="end"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:id="@+id/action_text"
|
||||
android:clickable="false"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:alpha="0.5"
|
||||
android:paddingStart="4dp"
|
||||
style="@style/Widget.Compat.NotificationActionText"/>
|
||||
</LinearLayout>
|
@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/notification_background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<include
|
||||
android:layout_width="@dimen/notification_large_icon_width"
|
||||
android:layout_height="@dimen/notification_large_icon_height"
|
||||
layout="@layout/notification_template_icon_group"/>
|
||||
<LinearLayout
|
||||
android:layout_gravity="top"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/notification_large_icon_width">
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/notification_main_column_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="@dimen/notification_large_icon_height">
|
||||
<FrameLayout
|
||||
android:id="@+id/notification_main_column"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginEnd="8dp"/>
|
||||
<FrameLayout
|
||||
android:id="@+id/right_side"
|
||||
android:paddingTop="@dimen/notification_right_side_padding_top"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="8dp">
|
||||
<ViewStub
|
||||
android:layout_gravity="end|top"
|
||||
android:id="@+id/time"
|
||||
android:visibility="gone"
|
||||
android:layout="@layout/notification_template_part_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
<ViewStub
|
||||
android:layout_gravity="end|top"
|
||||
android:id="@+id/chronometer"
|
||||
android:visibility="gone"
|
||||
android:layout="@layout/notification_template_part_chronometer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
<TextView
|
||||
android:textAppearance="@style/TextAppearance.Compat.Notification.Info"
|
||||
android:layout_gravity="end|bottom"
|
||||
android:id="@+id/info"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:singleLine="true"/>
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
<ImageView
|
||||
android:id="@+id/action_divider"
|
||||
android:background="#29000000"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"/>
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/actions"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="-8dp"/>
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/icon_group"
|
||||
android:layout_width="@dimen/notification_large_icon_width"
|
||||
android:layout_height="@dimen/notification_large_icon_height">
|
||||
<ImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="@dimen/notification_big_circle_margin"
|
||||
android:layout_marginBottom="@dimen/notification_big_circle_margin"
|
||||
android:scaleType="centerInside"
|
||||
android:layout_marginStart="@dimen/notification_big_circle_margin"
|
||||
android:layout_marginEnd="@dimen/notification_big_circle_margin"/>
|
||||
<ImageView
|
||||
android:layout_gravity="end|bottom"
|
||||
android:id="@+id/right_icon"
|
||||
android:visibility="gone"
|
||||
android:layout_width="@dimen/notification_right_icon_size"
|
||||
android:layout_height="@dimen/notification_right_icon_size"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:scaleType="centerInside"
|
||||
android:layout_marginEnd="8dp"/>
|
||||
</FrameLayout>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Chronometer xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:textAppearance="@style/TextAppearance.Compat.Notification.Time"
|
||||
android:id="@+id/chronometer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"/>
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user