Skip to content

Commit

Permalink
Define the floating button at the end of the RelativeLayout,
Browse files Browse the repository at this point in the history
to put it over all the others widgets. Thanks to @0MazaHacka0 for reporting
it.
  • Loading branch information
tux-mind committed Dec 25, 2015
1 parent d02e832 commit 77020cc
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions cSploit/res/layout/plugin_inspector.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,6 @@
android:paddingTop="16sp"
android:id="@+id/whatever">

<android.support.design.widget.FloatingActionButton
android:id="@+id/inspectToggleButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="20dp"
android:src="@drawable/ic_play_arrow_24dp"
android:checked="false"
android:translationZ="8dp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_margin="20dp"
android:focusableInTouchMode="true" />

<ProgressBar
android:id="@+id/inspectActivity"
android:layout_width="wrap_content"
Expand Down Expand Up @@ -156,4 +143,21 @@
android:gravity="center_vertical"
/>
</ScrollView>

<!--
Later children in a RelativeLayout tend to float over earlier children in a RelativeLayout.
https://www.stackoverflow.com/a/28651543
-->
<android.support.design.widget.FloatingActionButton
android:id="@+id/inspectToggleButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="20dp"
android:src="@drawable/ic_play_arrow_24dp"
android:checked="false"
android:translationZ="8dp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_margin="20dp"
android:focusableInTouchMode="true" />
</RelativeLayout>

0 comments on commit 77020cc

Please sign in to comment.