将图像放置在线性布局中的绝对位置 [英] put image in an absolute position in a linear layout
本文介绍了将图像放置在线性布局中的绝对位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个使用菜单创建的android应用程序,该菜单带有一组按顺序排列的按钮.
I have an android application I created with a menu with a set of buttons that are ordered one after the other.
我有一个徽标图标,我想将其固定在页面的右下角并添加一个边距.我该怎么办?
I have a logo Icon that I want to pin to the bottom right corner of the page and to add it a margin. how can I do that ?
页面本身位于LinearLayout中.但我希望可以添加一个具有绝对位置的元素! :)
the page itself is in a LinearLayout. but I hope it is possible to add one element with an absoute position! :)
我使用的是android 2.2 sdk
I use android 2.2 sdk
谢谢
推荐答案
使用嵌套布局..
<RelativeLayout>
<LinearLayout>
Place your elements and menu here.
</LinearLayout>
<ImageView
android:layout_alignParentBottom="true" />
</RelativeLayout>
这篇关于将图像放置在线性布局中的绝对位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文