Update: 2026-05-15 13:49:20

This commit is contained in:
Hamza-Ayed
2026-05-15 13:49:21 +03:00
parent fefe913ab7
commit c59d888b74
2443 changed files with 320028 additions and 23 deletions

View File

@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2020 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<com.google.android.material.button.MaterialButtonToggleGroup xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/material_clock_period_toggle"
tools:ignore="MissingDefaultResource"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:visibility="gone"
app:checkedButton="@id/material_clock_period_am_button"
app:selectionRequired="true"
app:singleSelection="true">
<Button
android:id="@+id/material_clock_period_am_button"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="0dp"
android:layout_weight="1"
android:insetTop="4dp"
android:insetBottom="4dp"
android:text="@string/material_timepicker_am" />
<Button
android:id="@+id/material_clock_period_pm_button"
style="?attr/materialButtonOutlinedStyle"
android:layout_width="0dp"
android:layout_weight="1"
android:insetTop="4dp"
android:insetBottom="4dp"
android:text="@string/material_timepicker_pm" />
</com.google.android.material.button.MaterialButtonToggleGroup>

View File

@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2020 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/material_timepicker_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
<androidx.constraintlayout.helper.widget.Flow
android:id="@+id/material_clock_display_and_toggle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:orientation="vertical"
app:constraint_referenced_ids="material_clock_display,material_clock_period_toggle"
app:flow_verticalGap="@dimen/material_clock_period_toggle_vertical_gap"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<include
android:id="@+id/material_clock_display"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
layout="@layout/material_clock_display" />
<include
android:id="@+id/material_clock_period_toggle"
android:layout_width="0dp"
android:layout_height="wrap_content"
layout="@layout/material_clock_period_toggle_land" />
<com.google.android.material.timepicker.ClockFaceView
android:id="@+id/material_clock_face"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/clock_face_margin_start"
app:layout_constraintStart_toEndOf="@+id/material_clock_display_and_toggle"
app:layout_constraintTop_toTopOf="parent" />
</merge>

View File

@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/mtrl_picker_header"
style="?attr/materialCalendarHeaderLayout"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start|center_horizontal"
android:paddingBottom="@dimen/mtrl_calendar_header_content_padding"
android:paddingStart="@dimen/mtrl_calendar_header_content_padding"
android:paddingEnd="@dimen/mtrl_calendar_header_content_padding"
android:paddingLeft="@dimen/mtrl_calendar_header_content_padding"
android:paddingRight="@dimen/mtrl_calendar_header_content_padding"
android:orientation="vertical">
<FrameLayout
android:id="@+id/mtrl_picker_header_title_and_selection"
android:layout_width="@dimen/mtrl_calendar_landscape_header_width"
android:layout_height="0dp"
android:layout_weight="1"
android:paddingStart="@dimen/mtrl_calendar_header_text_padding"
android:paddingLeft="@dimen/mtrl_calendar_header_text_padding"
android:focusable="true"
android:focusableInTouchMode="true">
<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
style="?attr/materialCalendarHeaderDivider"
android:layout_width="@dimen/mtrl_calendar_header_divider_thickness"
android:layout_height="match_parent"
android:layout_gravity="end"/>
</merge>