Update microG Fragment layout

-- TODO: This fragment has to go to Huawei variant once Aayush complete compose rewrite
This commit is contained in:
Rahul Patel
2025-07-05 17:04:16 +05:30
parent 7e82dceb78
commit 7f76071205
2 changed files with 13 additions and 10 deletions

View File

@@ -22,7 +22,8 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical"
android:paddingBottom="@dimen/height_navbar">
<androidx.appcompat.widget.Toolbar <androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
@@ -73,16 +74,17 @@
android:layout_height="24dp" android:layout_height="24dp"
android:visibility="invisible" /> android:visibility="invisible" />
<androidx.constraintlayout.widget.ConstraintLayout <LinearLayout
android:id="@+id/layout_bottom" android:id="@+id/layout_bottom"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
android:orientation="vertical">
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/btn_microG" android:id="@+id/btn_microG"
style="@style/Widget.Material3.Button.TextButton" style="@style/Widget.Material3.Button"
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="56dp" android:layout_height="wrap_content"
android:layout_margin="@dimen/margin_xsmall" android:layout_margin="@dimen/margin_xsmall"
android:enabled="false" android:enabled="false"
android:text="@string/action_install_microG" android:text="@string/action_install_microG"
@@ -93,16 +95,16 @@
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/btn_skip" android:id="@+id/btn_skip"
style="@style/Widget.Material3.Button.TextButton" style="@style/Widget.Material3.Button.OutlinedButton"
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="56dp" android:layout_height="wrap_content"
android:layout_margin="@dimen/margin_xsmall" android:layout_margin="@dimen/margin_xsmall"
android:text="@string/action_ignore" android:text="@string/action_ignore"
app:layout_constraintEnd_toStartOf="@id/btn_microG" app:layout_constraintEnd_toStartOf="@id/btn_microG"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="parent" app:layout_constraintTop_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>

View File

@@ -61,6 +61,7 @@
<dimen name="width_button">200dp</dimen> <dimen name="width_button">200dp</dimen>
<dimen name="height_bottomsheet_button">52dp</dimen> <dimen name="height_bottomsheet_button">52dp</dimen>
<dimen name="height_peek">64dp</dimen> <dimen name="height_peek">64dp</dimen>
<dimen name="height_navbar">48dp</dimen>
<dimen name="height_nav_header">148dp</dimen> <dimen name="height_nav_header">148dp</dimen>
<dimen name="height_microg_action">96dp</dimen> <dimen name="height_microg_action">96dp</dimen>