How to set a footer with transparency in Android

All I want to do is to set a footer on my app. What I have now is something like this:

What I have now

Its just a XML with a ImageView under a List View.

And what I want is that:

What I want

My image already have transparency... The problem should be that I dont know a way to "Get a view under a view"

Answers


Use a FrameLayout parent to contain both views. Make the ListView fill the parent. Make the ImageView anchor to the bottom of the parent with layout_gravity="bottom" and fill parent horizontally.

Make sure the ImageView is defined after the ListView so it will appear on top.


If i get you right, you have an imageView with transparent background but the canvas that the image is painted on has a white background.

So basically you just need to make sure that in the image view you give add the image with "src:" property.

and for transparent background use:

android:background="@android:color/transparent"

Need Your Help

Pass current item to ValueConverter

c# wpf

I have a ListBox where I display all order positions. I need to display a price. I created a ValueConverter which takes a OrderPosition object and returns my price as double.

Discourse plug-in - Ember.Component not firing actions

ember.js components discourse

I am learning how to build a plug-in for Discourse. My plug-in is going ok from a rendering standpoint but the button created by the buffer doesn't appear to be resolving the action on the button ...