Browse Source

For #8346: Update add-on-permissions fragment to be scrollable (#8352)

master
Simon Chae 2 years ago
committed by GitHub
parent
commit
0dac2fd0f4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 39
      app/src/main/res/layout/fragment_add_on_permissions.xml

39
app/src/main/res/layout/fragment_add_on_permissions.xml

@ -3,26 +3,31 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/add_ons_permissions"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content" >
<TextView
android:id="@+id/learn_more_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/add_ons_permissions"
android:background="?attr/selectableItemBackground"
android:padding="16dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/mozac_feature_addons_learn_more"
app:drawableEndCompat="@drawable/mozac_ic_link"
app:drawableTint="?android:attr/textColorPrimary" />
</RelativeLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/add_ons_permissions"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/learn_more_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/add_ons_permissions"
android:background="?attr/selectableItemBackground"
android:padding="16dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/mozac_feature_addons_learn_more"
app:drawableEndCompat="@drawable/mozac_ic_link"
app:drawableTint="?android:attr/textColorPrimary" />
</RelativeLayout>
</ScrollView>

Loading…
Cancel
Save