简体   繁体   English

Android布局中的重叠视图

[英]Overlap Views in layout of Android

I want to create layout having logo (small logo than screen) on the centre of the screen (horizontally & vertically) and on the top of the centred logo, I want to have a full screen (fill_parent) LinearLayout having ListView in it. 我想创建一个在屏幕中央(水平和垂直)以及在中心徽标顶部具有徽标(比屏幕小的徽标)的布局,我想在其中具有ListView的全屏(fill_parent)LinearLayout。

Want to keep ListView little transparent to keep my logo visible, looks like a watermark. 想要让ListView保持一点透明以使我的徽标可见,就像一个水印。

Can any one please tell me that what could be the XML for that? 谁能告诉我那是什么XML?

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. 要使徽标位于中心,请使用android:gravity="center"并设置opacity="translucent"并在框架布局中使用它,还应使用叠加概念。

You can also check this other post . 您也可以检查此其他帖子

Use Framelayout, 使用框架布局,
http://developer.android.com/guide/topics/ui/layout-objects.html http://developer.android.com/guide/topics/ui/layout-objects.html

You can even use relative layout to overlap views. 您甚至可以使用相对布局来重叠视图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM