I want to create a transparent view of my activities. Activity is displayed by clicking a tab. What I want is when I click on any image in my activity, then the transparent view overlays the activity, but my tabs remain clickable. Also, when a transparent view is created, background activity elements should not be clickable. Is it possible? And how will this be achieved in android?
//test.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/ic_launcher" android:orientation="vertical" > <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@android:color/transparent" android:orientation="vertical" > </LinearLayout> </LinearLayout>
This allows the overlay image to go through clicks on any buttons below it:
<ImageView ... android:clickable="false" ... />
(And when its value is true , ImageView accepts all clicks)
true
Source: https://habr.com/ru/post/1401575/More articles:Script to upload a file in selenium IDE - testingSymfony 2: How to create image paths in javascript file? - symfonyDo I need to free the counter returned by GetEnumerator? - collectionsFinding the nth match in a string in vim - vimApp confirmation for spam and store placement - androidCreate a menu like in Firebug - firefox-addonHow to wrap a set of svg elements with tag? - javascript"const variables" defined by the constructor to express the boundaries of a C ++ array? - c ++Programmatically modifying a user account image in OSX - objective-cphp curl script to get aspx page content - phpAll Articles