I’ve developed a login page and have created a custom xml layout for a loading screen. Everything in the layout for the loading screen is contained within a RelativeLayout. When the user hits the sign in button, the loading screen gets placed over the top of the current layout indicating that it is loading.
Problem
The problem is, when the loading screen is over the top of the login layout, you can still click through the loading screen on the buttons behind it, thus creating multiple actions that I don’t want. Is there a simple way to make the whole RelativeLayout not clickable?
I’ve tried things such as:
android:clickable="false"
android:focusable="false"
with no success.
you can make the background of the loading screen clickable=”true” and assign it no action so that it prevents clicks from passing through it