How to put Custom View above built in views in Android?
Posted
by Lord.F
on Stack Overflow
See other posts from Stack Overflow
or by Lord.F
Published on 2010-03-11T15:54:50Z
Indexed on
2010/03/11
17:24 UTC
Read the original article
Hit count: 195
android
Hi All,
I am developing a small app for Android. I am creating my own view.
I am planning to design the layout to be:
<LinearLayout>
<MyView>
<Button><Button>
</LinearLayout>
But when I run my program, my custom view will cover the whole screen. Is there anyway to avoid this?
I have already tried to add android:layout_width
, layout_height
to be wrap_content
, fill_partent
, but no luck.
© Stack Overflow or respective owner