Files
quik/presentation/src/main/res/layout/qk_dialog.xml
T
2023-11-14 13:48:22 -07:00

110 lines
4.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2019 Moez Bhatti <moez.bhatti@gmail.com>
~
~ This file is part of QKSMS.
~
~ QKSMS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ QKSMS is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
-->
<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="wrap_content"
android:background="?android:attr/windowBackground">
<dev.octoshrimpy.quik.common.widget.QkTextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="24dp"
android:layout_marginTop="16dp"
android:layout_marginRight="24dp"
android:textColor="?android:attr/textColorPrimary"
android:textStyle="bold"
android:visibility="gone"
app:layout_constraintBottom_toTopOf="@id/subtitle"
app:layout_constraintTop_toTopOf="parent"
app:textSize="dialog"
tools:text="Choose a phone number"
tools:visibility="visible" />
<dev.octoshrimpy.quik.common.widget.QkTextView
android:id="@+id/subtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="24dp"
android:layout_marginTop="2dp"
android:layout_marginRight="24dp"
android:textColor="?android:attr/textColorPrimary"
android:visibility="gone"
app:layout_constraintBottom_toTopOf="@id/list"
app:layout_constraintTop_toBottomOf="@id/title"
app:textSize="primary"
tools:text="Moez Bhatti"
tools:visibility="visible" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:visibility="gone"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constrainedHeight="true"
app:layout_constraintBottom_toTopOf="@id/positiveButton"
app:layout_constraintTop_toBottomOf="@id/subtitle"
tools:itemCount="20"
tools:listitem="@layout/phone_number_list_item"
tools:visibility="visible" />
<dev.octoshrimpy.quik.common.widget.QkTextView
android:id="@+id/positiveButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:background="?attr/selectableItemBackground"
android:padding="16dp"
android:textColor="?android:attr/textColorSecondary"
android:textStyle="bold"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/list"
app:layout_goneMarginRight="8dp"
app:textSize="secondary"
tools:text="Always"
tools:visibility="visible" />
<dev.octoshrimpy.quik.common.widget.QkTextView
android:id="@+id/negativeButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:background="?attr/selectableItemBackground"
android:padding="16dp"
android:textColor="?android:attr/textColorSecondary"
android:textStyle="bold"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/positiveButton"
app:layout_constraintTop_toBottomOf="@id/list"
app:textSize="secondary"
tools:text="Just once"
tools:visibility="visible" />
</androidx.constraintlayout.widget.ConstraintLayout>