Overlap Views in layout of Android?

For logo to be at centre use android:gravity="center" and also set opacity="translucent" and use it in a frame layout. And also use overlay concept. Or you visit stackoverflow.com/questions/3790511/how-....

Use Framelayout, developer.android.com/guide/topics/ui/la... You can even use relative layout to overlap views.

Android handles transparency across views and drawables (including PNG images) natively, so the scenario you describe (a partially transparent ImageView in front of a Gallery) is certainly possible. If you're having problems it may be related to either the layout or your image. I've replicated the layout you describe and successfully achieved the effect you're after.

Here's the exact layout I used. Note that I've changed the parent RelativeLayout to a height and width of fill_parent as is generally what you want for a main Activity. Then I've aligned the top and bottom of the ImageView to the top and bottom of the Gallery to ensure it's centered in front of it.

As for the image drawable itself, if you put the PNG file somewhere for me to look at I can use it in my project and see if it's responsible.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions