• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Transparent background FAB not allowing interaction/blocking interaction

Hey all I am trying to figure out why I am unable to interact with the background even though my app has a transparent background? The code below was modified from the official Google Android demos here.

Here is the code I am using:
Java:
class FabTransformationActivity : AppCompatActivity()  {

    private val viewModel: FabTransformationViewModel by viewModels()
private lateinit var fab: FloatingActionButton
private var mWindowManager:/*@@psggbk@@*/WindowManager? = null

private class ItemHolder(val parent: LinearLayout, listener: View.OnClickListener) {
val image: ImageView = parent.findViewById(R.id.image)
val name: TextView = parent.findViewById(R.id.name)

        init {
parent.setOnClickListener(listener)
        }
    }

private val menuOnClick = View.OnClickListener { v ->
val name = v.getTag(R.id.tag_name) as String

        fab.isExpanded = false
    }

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
var params: WindowManager.LayoutParams
 
setContentView(R.layout.fab_transformation_activity)

val root: CoordinatorLayout = findViewById(R.id.root)
val sheet: CircularRevealCardView = findViewById(R.id.sheet)
val menuHolders: List<ItemHolder> = listOf(
ItemHolder(findViewById(R.id.menu_1), menuOnClick),
ItemHolder(findViewById(R.id.menu_2), menuOnClick),
ItemHolder(findViewById(R.id.menu_3), menuOnClick),
ItemHolder(findViewById(R.id.menu_4), menuOnClick)
        )

fab = findViewById(R.id.fab)

WindowCompat.setDecorFitsSystemWindows(window, false)

        val fabMargin = 16

ViewCompat.setOnApplyWindowInsetsListener(root) { _, insets ->
val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())

fab.updateLayoutParams<CoordinatorLayout.LayoutParams> {
                leftMargin = fabMargin + systemBars.left
                rightMargin = fabMargin + systemBars.right
                bottomMargin = fabMargin + systemBars.bottom
            }

sheet.updateLayoutParams<CoordinatorLayout.LayoutParams> {
                leftMargin = fabMargin + systemBars.left
                rightMargin = fabMargin + systemBars.right
                bottomMargin = fabMargin + systemBars.bottom
            }

            insets
        }
    
viewModel.items.observe(this) { items ->
            menuHolders.forEachIndexed { i, holder ->
if (items.size > i) {
                    val _item = items[i]

                    holder.parent.isVisible = true
holder.parent.setTag(R.id.tag_name, _item.name)
                    holder.name.text = _item.name

Glide.with(holder.image)
.load(_item.image)
.transform(CircleCrop())
.into(holder.image)
                } else {
                    holder.parent.isVisible = false
                }
            }
        }

        fab.setOnClickListener {
            fab.isExpanded = true
        }
    }

    override fun onBackPressed() {
if (fab.isExpanded) {
            fab.isExpanded = false
        } else {
            super.onBackPressed()
        }
    }
}

The layout:
XML:
<androidx.coordinatorlayout.widget.CoordinatorLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/root"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal">

    <!-- A FAB that expands into a sheet. -->
    <com.google.android.material.floatingactionbutton.FloatingActionButton
        android:id="@+id/fab"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="end|bottom"
        android:layout_margin="16dp"
        app:elevation="8dp"
        android:contentDescription=""
        app:srcCompat="@drawable/ic_add" />

    <!--
        A sheet that the FAB expands into.
        Use CircularRevealCardView to apply circular reveal effect.
    -->
    <com.google.android.material.circularreveal.cardview.CircularRevealCardView
        android:id="@+id/sheet"
        android:layout_width="256dp"
        android:layout_height="wrap_content"
        android:layout_gravity="end|bottom"
        android:layout_margin="16dp"
        android:background="?attr/colorSurface"
        android:visibility="invisible"
        app:elevation="8dp"
        app:layout_behavior="@string/fab_transformation_sheet_behavior"
        tools:visibility="visible">

        <LinearLayout
            android:id="@+id/sheet_content"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:paddingTop="8dp"
            android:paddingBottom="8dp">

            <include
                android:id="@+id/menu_1"
                layout="@layout/menuitems" />

            <include
                android:id="@+id/menu_2"
                layout="@layout/menuitems" />

            <include
                android:id="@+id/menu_3"
                layout="@layout/menuitems" />

            <include
                android:id="@+id/menu_4"
                layout="@layout/menuitems" />

        </LinearLayout>

    </com.google.android.material.circularreveal.cardview.CircularRevealCardView>

</androidx.coordinatorlayout.widget.CoordinatorLayout>

I can interact with the FAB but when I try moving the background (which is just the standard Android home screen, I never moves.

App not running (can movie the home screen around): enter image description here

Now with the transparent fab: enter image description here

What can I change (or add) in order to get this to work? The goal is to have this FAB button floating regardless of what app is opened.

Pirate's Boom Boom (Arcade+RPG Shooter) coming Sept 1st, 2023

Hello AndroidForums community,
My name is Slavik and I am one of the main developers of our first indie game Pirate's Boom Boom. PBB is a mobile Arcade shooter with RPG elements to add depth, strategy and story to your day. It was designed by gamers for gamers and can be downloaded for free on your mobile device.
Gameplay video link -

We are a small creative duo that has created this visually striking game on a shoe-string budget and our goal is to improve, improve, improve, all based on your feedback. Like, love or hate, we want to hear from you! On top of that we want to add Story and PvP modes to reach as many players as possible. Our main characters Pirate & Crow have a super fun story that we weren’t able to put in the game…due to our limited budget, but that won’t stop us! We are working on the story mode right now!

Picture yourself as a fearsome Pirate, resting at your humble cabin on an island, when suddenly Boom!BoOM!!BOOM!!! - warring clans start battling each other, with you in the middle of it all. They destroy your ship, your cabin, everything you’ve built and collected… and don’t even apologize. What do you do? Well, if you are like our Pirate, you go on a revenge mission. You build a small boat, get a cannon and take out each clan one by one. John Wick got nothing on this revenge story!

Pirate’s Boom Boom is free to play with no banners or any other visual distractions. We do feature ads, but we did our best to keep them down to a minimum for a smooth experience. Available on Android Sept 1st.

PlayStore Download Link - Pirate Boom Boom - Apps on Google Play

FEATURES

1) Unique Black&White design with hand-drawn FX!
2) Level 1-99 of crazy Arcade fun!
3) Tutorials to get you started & Bonus levels to keep you engaged!
4) Talents are unlocked with unique game Achievements!
5) Choose from 6 Special Items that fancy your playstyle and unlock 3 Artifacts to become a one-man-army!
6) Original EDM Soundtrack!
7) Story Mode coming soon, with consistent releases to keep you entertained.​

Thank you! -Pirate’s Boom Boom team.

strange notification for a voice message

hi everybody! could you help me? from several days and everydays I'm receiving this strange message attached here. the message is always the same.
do you know what is mean? I thought that is a encrypted message 🤣🤣
How can I open this unusual voice message?
My smartphone is galaxy Note 8, android version 9.

Thank you!

Attachments

  • WhatsApp Image 2023-08-29 at 18.06.57.jpeg
    WhatsApp Image 2023-08-29 at 18.06.57.jpeg
    49 KB · Views: 251

Samsung Fold4-AUGUST update + One UI 5.1.1

Samsung's 11th Android 13 update has started to roll out for the Fold4 international devices, F936B. bringing with it the August Security patch and One UI 5.1.1.

Build number = F936BXXU4DWH5

Build date = 10 August 2023

Android Security patch = 01 August 2023

Download size = 2,760.02 MB

Camera version = 13.1.01.78



It is a FOTA, (Firmware Over The Air), update and you can check... Settings > Software update... to see if it is available for you. Alternatively, you can connect to the Samsung PC suite, Smart Switch and check via that.


System information
UPDATE DWH5 FOLD 4 Screenshot_20230829_152255_Settings.jpg


See, also... Wipe Cache Partition, Repair apps & Galaxy App Booster

Android version upgrade database



-- This chart does cover a pretty wide range of different manufacturers and models but it's primarily focused on just Android version upgrades, so monthly security updates are not a part of their dataset.

Manufactured locked prisoned device, which device should i buy? Anyone?

Hi all

I am in the market for a reasonable priced tablet/pad purchased the Lenovo M10 for what looked to be a steal, but HDMI dongle would not allow wired screen sharing, Amazon purchase so sent it back.



Then purchased the Honor pad x9 which is the best tablet I have ever used “amazing”, screen, sound and once the google-parasite apps, process and background data theft was disable ultra fast, this one also would not work to mirror the screen, but amazon so decided to keep it, then i had to install a firewall as the Wifi connection was still getting abused, that killed the apps that just don't need Internet access, the only internet access is my browser use period.



But when i plugged in my Ethernet (don’t want or like wifi) internet connection all hell was let loose, the firewall failed, everything google parasite disable all background app disabled, it helped itself, downloading update I didn’t want or need.



I need to install iptables firewall but I am told the Honor pad x9 can not be boot unlocked "its impossible" even if i pay for a code, so will have to send an amazing device back, honestly if anyone can fix the Ethernet problem on this device its a monster for just £159.



So here I am asking you guys what do I buy? Would like a 120 refresh screen, boot unlockable, would like a micro sd slot, ear phone socket and it to mirror share screen via wired hdmi cable and be under £200 at a Push £220, don’t need more that 64gb of internal storage as I store my data on SD so it can be removed when online. Watching movies, listening to music word documents and OS maps.



Any help would be great



Thanks

Android Auto for Subaru

I drive a 2021 Subaru Outback with a full center panel flat screen and a Galaxy S21 phone. Originally both Car Play and Android used only about half of the car's screen but this been corrected by an update to Car Play. My understanding is that Google has also been working on an update for Android as well. Does anyone have information on this?
Thanks

Apps Upgrade app

It appears Sqlite is no longer allowed.

To upgrade my app, need to read Sqlite to write to another more modern method.
Also, unable to upgrade my app. It has too many conflicts. Layouts are handled differently, etc.
Plan to write it from scratch. But, would like to have a way to convert my users' data onto another platform.

Appreciate any suggestions.

Filter

Back
Top Bottom