Android make part of activity transparent -
i have next layout:
<relativelayout> <textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello_world" /> <linearlayout android:layout_width="fill_parent" android:layout_height="200dip" android:layout_alignparentbottom="true" > </linearlayout> </relativelayout>
i want create linear layout transparent, meaning, content previous activity on activity stack should visible in linear layout region.
i have tried using setalpha(0) linear layout; create transparent, shows activity background color in linear layout region.
i have tried setting android:theme activity @android:style/theme.translucent.notitlebar, create whole activity show content of previous activity.
can suggest way?
thanks.
just clear, activities not visible objects. views see on screen -- in particular see view attached activity. in case view relativelayout , contents.
when create linearlayout transparent, shows background color of relativelayout. if want see behind relative layout create background color transparent, too.
<relativelayout android:backgrond="#00000000"> ... <linearlayout android::background="#00000000"> ... </linearlayout> </relativelayout>
of course of study want utilize named color resource rather "#00000000"
android android-activity transparency
No comments:
Post a Comment