Sheets: Improve layout

This commit is contained in:
Rahul Patel
2024-09-04 02:42:35 +05:30
committed by Aayush Gupta
parent 4f46817a54
commit 6618dc7108
7 changed files with 123 additions and 140 deletions

View File

@@ -23,20 +23,20 @@
android:layout_height="wrap_content"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
<androidx.constraintlayout.widget.ConstraintLayout
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
android:paddingBottom="@dimen/padding_normal">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/img"
android:layout_width="@dimen/icon_size_avatar"
android:layout_height="@dimen/icon_size_avatar"
android:layout_width="@dimen/icon_size_large"
android:layout_height="@dimen/icon_size_large"
android:layout_marginTop="@dimen/margin_xlarge"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_network"
app:tint="?android:attr/colorControlNormal" />
app:tint="?colorAccent" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_warning"
@@ -44,18 +44,13 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/title_no_network"
android:textAlignment="center"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/img" />
android:textAlignment="center" />
<com.google.android.material.button.MaterialButton
android:id="@+id/btn_action"
style="@style/Widget.Material3.Button.TonalButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/check_connectivity"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/txt_warning" />
</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>
android:text="@string/check_connectivity" />
</LinearLayout>
</FrameLayout>