Transparent / Transparent Activity in Android Wear Lollipop
I had translucent work backgrounds running on Android Wear 4.4W without specifying a theme and setting the background in the action layout to # BB000000.
Now I have Android Wear 5.0.1, the background is not transparent, and strange effects occur with the foreground elements appearing in random places in the background, and bouncing - completely messed up.
I tried to use a custom theme like this:
<style name="Theme.Transparent" parent="android:Theme.DeviceDefault">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
</style>
I have also tried using
android:theme="@android:style/Theme.Translucent"
Both with no luck - the same weird opaque effects.
My activity layout looks like this:
<android.support.wearable.view.BoxInsetLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="#BB000000"
android:layout_height="match_parent"
android:layout_width="match_parent">
<FrameLayout
android:id="@+id/frame_layout"
android:layout_height="match_parent"
android:layout_width="match_parent"
app:layout_box="left|bottom|right">
<android.support.wearable.view.WearableListView
android:id="@+id/wearable_list"
android:layout_height="match_parent"
android:layout_width="match_parent">
</android.support.wearable.view.WearableListView>
</FrameLayout>
</android.support.wearable.view.BoxInsetLayout>
Anyone ideas?
+3
source to share