Improving the add feed dialog with better components style and margins

This commit is contained in:
Shinokuni 2019-02-03 22:17:51 +00:00
parent 808d442735
commit aaa2e921c3
1 changed files with 13 additions and 24 deletions

View File

@ -1,23 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<android.support.constraint.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"
style="@style/Platform.MaterialComponents.Dialog"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:padding="6dp">
<TextView
android:id="@+id/add_feed_title"
style="@style/RtlOverlay.DialogWindowTitle.AppCompat"
android:layout_width="280dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="10dp"
android:text="@string/add_feed_title"
android:textAlignment="center"
android:textSize="22sp"
android:textColor="#FF3D3A3A"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
@ -26,9 +22,7 @@
android:id="@+id/textInputLayout"
android:layout_width="280dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="10dp"
android:layout_marginTop="6dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/add_feed_title">
@ -43,10 +37,9 @@
<Button
android:id="@+id/add_feed_validate"
style="@style/Widget.AppCompat.Button.Borderless"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:text="@string/add_feed_validate"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textInputLayout" />
@ -55,26 +48,22 @@
android:id="@+id/add_feed_progressbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:layout_marginTop="6dp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/add_feed_validate" />
app:layout_constraintTop_toBottomOf="@+id/add_feed_validate"
tools:visibility="gone" />
<android.support.v7.widget.RecyclerView
android:id="@+id/add_feed_recyclerview"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="10dp"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/add_feed_validate"
android:visibility="visible"/>
tools:visibility="visible" />
</android.support.constraint.ConstraintLayout>