Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
fenix
Commits
cb19c6e8
Commit
cb19c6e8
authored
Feb 10, 2020
by
Simon Chae
Committed by
Christian Sadilek
Feb 10, 2020
Browse files
For #8259: Add scrollview within the nested relative layout
parent
f0af6d6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/res/layout/fragment_installed_add_on_details.xml
View file @
cb19c6e8
...
...
@@ -9,74 +9,79 @@
android:layout_marginTop=
"16dp"
android:layout_marginBottom=
"6dp"
>
<
RelativeLayout
<
ScrollView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:paddingStart=
"?android:attr/listPreferredItemPaddingStart"
android:paddingEnd=
"?android:attr/listPreferredItemPaddingEnd"
>
android:layout_height=
"wrap_content"
>
<Switch
android:id=
"@+id/enable_switch"
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical|end"
android:background=
"?android:attr/selectableItemBackground"
android:checked=
"true"
android:clickable=
"true"
android:focusable=
"true"
android:padding=
"16dp"
android:text=
"@string/mozac_feature_addons_settings_on"
android:textSize=
"18sp"
/>
android:orientation=
"vertical"
android:paddingStart=
"?android:attr/listPreferredItemPaddingStart"
android:paddingEnd=
"?android:attr/listPreferredItemPaddingEnd"
>
<TextView
android:id=
"@+id/settings"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/enable_switch"
android:background=
"?android:attr/selectableItemBackground"
android:drawablePadding=
"10dp"
android:padding=
"16dp"
android:text=
"@string/mozac_feature_addons_settings"
android:textColor=
"@drawable/addon_textview_selector"
android:textSize=
"18sp"
app:drawableStartCompat=
"@drawable/mozac_ic_preferences"
app:drawableTint=
"?android:attr/textColorPrimary"
/>
<Switch
android:id=
"@+id/enable_switch"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical|end"
android:background=
"?android:attr/selectableItemBackground"
android:checked=
"true"
android:clickable=
"true"
android:focusable=
"true"
android:padding=
"16dp"
android:text=
"@string/mozac_feature_addons_settings_on"
android:textSize=
"18sp"
/>
<TextView
android:id=
"@+id/
d
et
ail
s"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/
settings
"
android:background=
"?android:attr/selectableItemBackground"
android:drawablePadding=
"
6
dp"
android:padding=
"16dp"
android:text=
"@string/mozac_feature_addons_
d
et
ail
s"
android:textColor=
"@drawable/addon_textview_selector"
android:textSize=
"18sp"
app:drawableStartCompat=
"@drawable/mozac_ic_
information
"
app:drawableTint=
"?android:attr/textColorPrimary"
/>
<TextView
android:id=
"@+id/
s
et
ting
s"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/
enable_switch
"
android:background=
"?android:attr/selectableItemBackground"
android:drawablePadding=
"
10
dp"
android:padding=
"16dp"
android:text=
"@string/mozac_feature_addons_
s
et
ting
s"
android:textColor=
"@drawable/addon_textview_selector"
android:textSize=
"18sp"
app:drawableStartCompat=
"@drawable/mozac_ic_
preferences
"
app:drawableTint=
"?android:attr/textColorPrimary"
/>
<TextView
android:id=
"@+id/permissions"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/details"
android:background=
"?android:attr/selectableItemBackground"
android:drawablePadding=
"6dp"
android:padding=
"16dp"
android:text=
"@string/mozac_feature_addons_permissions"
android:textColor=
"@drawable/addon_textview_selector"
android:textSize=
"18sp"
app:drawableStartCompat=
"@drawable/mozac_ic_permissions"
/>
<TextView
android:id=
"@+id/details"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/settings"
android:background=
"?android:attr/selectableItemBackground"
android:drawablePadding=
"6dp"
android:padding=
"16dp"
android:text=
"@string/mozac_feature_addons_details"
android:textColor=
"@drawable/addon_textview_selector"
android:textSize=
"18sp"
app:drawableStartCompat=
"@drawable/mozac_ic_information"
app:drawableTint=
"?android:attr/textColorPrimary"
/>
<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>
<TextView
android:id=
"@+id/permissions"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/details"
android:background=
"?android:attr/selectableItemBackground"
android:drawablePadding=
"6dp"
android:padding=
"16dp"
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>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment