mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
These resources changes will be used in a follow up CL that implement the nudge view. Note that most of the values and layout are temporarily placeholder and subject to change in follow up CL as the mock is being finalized. Bug: 398033012 Test: Manual Flag: com.android.launcher3.enable_growth_nudge Change-Id: I1d88da404637200b44bd2a3a5719f52d68011fbf
87 lines
3.6 KiB
XML
87 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2025 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.
|
|
-->
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
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">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/content_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/image_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
android:contentDescription="@string/nudge_a11y_image"/>
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
style="@style/TextAppearance.Nudge.Title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/nudge_content_elements_spacing"
|
|
app:layout_constraintStart_toEndOf="@+id/image_view"
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
<TextView
|
|
android:id="@+id/body"
|
|
style="@style/TextAppearance.Nudge.Subtext"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/nudge_content_elements_spacing"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/image_view"
|
|
app:layout_constraintTop_toBottomOf="@+id/title"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/button_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/nudge_buttons_margin_top"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/content_container">
|
|
|
|
<Button
|
|
android:id="@+id/secondary_button"
|
|
style="@style/Nudge.Button.Secondary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingVertical="@dimen/nudge_button_vertical_padding"
|
|
android:paddingHorizontal="@dimen/nudge_button_horizontal_padding"
|
|
android:layout_marginEnd="@dimen/nudge_buttons_spacing" />
|
|
|
|
<Button
|
|
android:id="@+id/primary_button"
|
|
style="@style/Nudge.Button.Primary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingVertical="@dimen/nudge_button_vertical_padding"
|
|
android:paddingHorizontal="@dimen/nudge_button_horizontal_padding" />
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|