1
0
Fork 0

For #8259: Add scrollview within the nested relative layout

master
Simon Chae 2020-02-10 11:34:31 -05:00 committed by Christian Sadilek
parent f0af6d6f6e
commit cb19c6e868
1 changed files with 67 additions and 62 deletions

View File

@ -9,74 +9,79 @@
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:layout_marginBottom="6dp"> android:layout_marginBottom="6dp">
<RelativeLayout <ScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:orientation="vertical"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
<Switch <RelativeLayout
android:id="@+id/enable_switch"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical|end" android:orientation="vertical"
android:background="?android:attr/selectableItemBackground" android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:checked="true" android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
android:clickable="true"
android:focusable="true"
android:padding="16dp"
android:text="@string/mozac_feature_addons_settings_on"
android:textSize="18sp" />
<TextView <Switch
android:id="@+id/settings" android:id="@+id/enable_switch"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/enable_switch" android:layout_gravity="center_vertical|end"
android:background="?android:attr/selectableItemBackground" android:background="?android:attr/selectableItemBackground"
android:drawablePadding="10dp" android:checked="true"
android:padding="16dp" android:clickable="true"
android:text="@string/mozac_feature_addons_settings" android:focusable="true"
android:textColor="@drawable/addon_textview_selector" android:padding="16dp"
android:textSize="18sp" android:text="@string/mozac_feature_addons_settings_on"
app:drawableStartCompat="@drawable/mozac_ic_preferences" android:textSize="18sp" />
app:drawableTint="?android:attr/textColorPrimary" />
<TextView <TextView
android:id="@+id/details" android:id="@+id/settings"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/settings" android:layout_below="@+id/enable_switch"
android:background="?android:attr/selectableItemBackground" android:background="?android:attr/selectableItemBackground"
android:drawablePadding="6dp" android:drawablePadding="10dp"
android:padding="16dp" android:padding="16dp"
android:text="@string/mozac_feature_addons_details" android:text="@string/mozac_feature_addons_settings"
android:textColor="@drawable/addon_textview_selector" android:textColor="@drawable/addon_textview_selector"
android:textSize="18sp" android:textSize="18sp"
app:drawableStartCompat="@drawable/mozac_ic_information" app:drawableStartCompat="@drawable/mozac_ic_preferences"
app:drawableTint="?android:attr/textColorPrimary" /> app:drawableTint="?android:attr/textColorPrimary" />
<TextView <TextView
android:id="@+id/permissions" android:id="@+id/details"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/details" android:layout_below="@+id/settings"
android:background="?android:attr/selectableItemBackground" android:background="?android:attr/selectableItemBackground"
android:drawablePadding="6dp" android:drawablePadding="6dp"
android:padding="16dp" android:padding="16dp"
android:text="@string/mozac_feature_addons_permissions" android:text="@string/mozac_feature_addons_details"
android:textColor="@drawable/addon_textview_selector" android:textColor="@drawable/addon_textview_selector"
android:textSize="18sp" android:textSize="18sp"
app:drawableStartCompat="@drawable/mozac_ic_permissions" /> app:drawableStartCompat="@drawable/mozac_ic_information"
app:drawableTint="?android:attr/textColorPrimary" />
<Button <TextView
android:id="@+id/remove_add_on" android:id="@+id/permissions"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/permissions" android:layout_below="@+id/details"
android:layout_marginTop="16dp" android:background="?android:attr/selectableItemBackground"
android:text="@string/mozac_feature_addons_remove" android:drawablePadding="6dp"
android:textColor="@color/photonRed50" /> android:padding="16dp"
</RelativeLayout> android:text="@string/mozac_feature_addons_permissions"
android:textColor="@drawable/addon_textview_selector"
android:textSize="18sp"
app:drawableStartCompat="@drawable/mozac_ic_permissions" />
<Button
android:id="@+id/remove_add_on"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/permissions"
android:layout_marginTop="16dp"
android:text="@string/mozac_feature_addons_remove"
android:textColor="@color/photonRed50" />
</RelativeLayout>
</ScrollView>
</FrameLayout> </FrameLayout>