| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| SPDX-FileCopyrightText: 2023 The LineageOS Project |
| SPDX-License-Identifier: Apache-2.0 |
| --> |
| |
| <androidx.constraintlayout.widget.ConstraintLayout |
| 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:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="?appWidgetConfigBackground" |
| android:paddingStart="16dp" |
| android:paddingEnd="16dp" |
| tools:theme="@style/Theme.DeskClock.DigitalWidgetConfigurationTheme"> |
| |
| <TextView |
| android:id="@+id/title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="24dp" |
| android:layout_marginBottom="48dp" |
| android:text="@string/widget_choice_title" |
| android:textColor="?appWidgetConfigTitle" |
| android:textSize="22sp" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toTopOf="parent" /> |
| |
| <androidx.constraintlayout.widget.ConstraintLayout |
| android:id="@+id/center_layout" |
| android:layout_width="0dp" |
| android:layout_height="0dp" |
| android:layout_marginTop="64dp" |
| android:layout_marginBottom="64dp" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintHorizontal_weight="1" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintVertical_weight="1" |
| app:layout_constraintWidth_max="480dp"> |
| |
| <TextView |
| android:id="@+id/title_transparent" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="24dp" |
| android:fontFamily="sans-serif-medium" |
| android:text="@string/widget_name_transparent" |
| android:textAlignment="center" |
| android:textColor="?appWidgetConfigSubtitle" |
| android:textSize="16sp" |
| app:layout_constraintBottom_toTopOf="@id/widget_bg" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintVertical_bias="1.0" /> |
| |
| <androidx.constraintlayout.widget.ConstraintLayout |
| android:id="@+id/widget_bg" |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:background="@drawable/widget_configuration_background" |
| android:backgroundTint="?appWidgetConfigBorder" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintHeight_max="480dp" |
| app:layout_constraintTop_toTopOf="parent"> |
| |
| <LinearLayout |
| android:id="@+id/container_transparent" |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:gravity="center" |
| android:orientation="vertical" |
| android:paddingStart="48dp" |
| android:paddingEnd="48dp" |
| app:layout_constraintBottom_toTopOf="@+id/container_solid" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintHeight_max="230dp" |
| app:layout_constraintHeight_min="150dp" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toTopOf="parent"> |
| |
| <include |
| android:id="@+id/preview_transparent" |
| layout="@layout/digital_widget_configuration_preview_transparent_root" |
| android:layout_width="203dp" |
| android:layout_height="wrap_content" /> |
| |
| </LinearLayout> |
| |
| <LinearLayout |
| android:id="@+id/container_solid" |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:gravity="center" |
| android:orientation="vertical" |
| android:paddingStart="48dp" |
| android:paddingEnd="48dp" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintHeight_max="250dp" |
| app:layout_constraintHeight_min="130dp" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintTop_toBottomOf="@id/container_transparent"> |
| |
| <include |
| android:id="@+id/preview_solid" |
| layout="@layout/digital_widget_configuration_preview_solid_root" |
| android:layout_width="203dp" |
| android:layout_height="wrap_content" /> |
| |
| </LinearLayout> |
| |
| </androidx.constraintlayout.widget.ConstraintLayout> |
| |
| <TextView |
| android:id="@+id/title_solid" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="24dp" |
| android:fontFamily="sans-serif-medium" |
| android:text="@string/widget_name_solid" |
| android:textAlignment="center" |
| android:textColor="?appWidgetConfigSubtitle" |
| android:textSize="16sp" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintTop_toBottomOf="@+id/widget_bg" |
| app:layout_constraintVertical_bias="0.0" /> |
| </androidx.constraintlayout.widget.ConstraintLayout> |
| |
| </androidx.constraintlayout.widget.ConstraintLayout> |