Tuesday, December 18, 2012

[android-developers] Re: layout overlays



On Sunday, December 16, 2012 3:28:08 PM UTC-8, dashman wrote:
i'd like to display an layout that overlays my app.

this layout will display a hint - e.g. tap this to get started etc.

i would like this layout to be on top of the action bar also - so
that users can't click on it or menus until the overlay layout
is tapped on (and dismissed).

possible?

maybe I don't understand what you want but what I would do is make my main layout ( e.g. main.xml ) a FrameLayout, then within it define two relative layouts, one is your app layout and the other is your overlay. Set the background colour of your overlay layout to #00000000 to make it transparent and your setZOrder to bring it to the front so that it gets the click events. To 'dismiss' it, setVisibility( View.GONE ); 

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate