Skip to content

Commit a1f1d20

Browse files
committed
Define the floating button at the end of the RelativeLayout, to put it over all the others widgets. Thanks to @0MazaHacka0 for reporting it.
Closes #432
1 parent d394853 commit a1f1d20

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

cSploit/src/main/res/layout/plugin_inspector.xml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@
66
android:paddingTop="16sp"
77
android:id="@+id/whatever">
88

9-
<android.support.design.widget.FloatingActionButton
10-
android:id="@+id/inspectToggleButton"
11-
android:layout_width="wrap_content"
12-
android:layout_height="wrap_content"
13-
android:padding="20dp"
14-
android:src="@drawable/ic_play_arrow_24dp"
15-
android:checked="false"
16-
android:translationZ="8dp"
17-
android:layout_alignParentBottom="true"
18-
android:layout_alignParentRight="true"
19-
android:layout_margin="20dp"
20-
android:focusableInTouchMode="true" />
21-
229
<ProgressBar
2310
android:id="@+id/inspectActivity"
2411
android:layout_width="wrap_content"
@@ -156,4 +143,21 @@
156143
android:gravity="center_vertical"
157144
/>
158145
</ScrollView>
146+
147+
<!--
148+
Later children in a RelativeLayout tend to float over earlier children in a RelativeLayout.
149+
https://www.stackoverflow.com/a/28651543
150+
-->
151+
<android.support.design.widget.FloatingActionButton
152+
android:id="@+id/inspectToggleButton"
153+
android:layout_width="wrap_content"
154+
android:layout_height="wrap_content"
155+
android:padding="20dp"
156+
android:src="@drawable/ic_play_arrow_24dp"
157+
android:checked="false"
158+
android:translationZ="8dp"
159+
android:layout_alignParentBottom="true"
160+
android:layout_alignParentRight="true"
161+
android:layout_margin="20dp"
162+
android:focusableInTouchMode="true" />
159163
</RelativeLayout>

0 commit comments

Comments
 (0)