Skip to content

Commit

Permalink
Fix max height for QK Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
moezbhatti committed Feb 6, 2020
1 parent 88accdb commit bf808a8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions presentation/src/main/res/layout/qk_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/windowBackground"
android:orientation="vertical">
android:background="?android:attr/windowBackground">

<com.moez.QKSMS.common.widget.QkTextView
android:id="@+id/title"
Expand All @@ -35,6 +34,7 @@
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"
Expand All @@ -49,6 +49,7 @@
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"
Expand All @@ -62,8 +63,10 @@
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="2"
tools:itemCount="20"
tools:listitem="@layout/phone_number_list_item"
tools:visibility="visible" />

Expand All @@ -78,6 +81,7 @@
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"
Expand All @@ -95,6 +99,7 @@
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"
Expand Down

0 comments on commit bf808a8

Please sign in to comment.