I want to create a layout containing only a button, i want the layout to be transparent more even more, i want it 'not to be there', in other words, i want my layout to be only a not full size 'window' but only the button size, so i will be able to continue using any app open behind my app.
i tried :
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:windowBackground="@android:color/transparent"
android:windowIsTranslucent="true" >
<ToggleButton android:id="@+id/lockButton"
style="@style/lockToggle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true">
</ToggleButton>
The background is really transparent but still a layer and the app in the back is not usable.