社区
Android
帖子详情
android:layout_marginBottom使用方法
ghostgoodbye
2012-03-19 04:42:58
我想让一个button永远在界面的最下方,不随着上方内容的缩短而移动,请问这个应该怎么用,查了很多,这个都起不了作用
没分了 不好意思,
...全文
4012
2
打赏
收藏
android:layout_marginBottom使用方法
我想让一个button永远在界面的最下方,不随着上方内容的缩短而移动,请问这个应该怎么用,查了很多,这个都起不了作用 没分了 不好意思,
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
A一剑飞鸿
2012-09-28
打赏
举报
回复
android:layout_marginBottom="4dp"
a107494639
2012-03-19
打赏
举报
回复
使用相对布局
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<Button
android:id="@+id/edit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:text="edit" />
</RelativeLayout>
android
:
layout
_
margin
bott
om
,
layout
_
margin
Bott
om
不能用的解决
方法
最近在写一个布局的时候,突然发现我的
layout
_
margin
Bott
om
不可以用代码如下:
android
:
layout
_width="fill_parent"
android
:
layout
_height="wrap_content" >
android
:id="@+id/task_list_black"
android
:
layout
_width="fill_parent"
android
:layo...
margin
Bott
om
不起作用了?安卓很好玩的事情,不知道也挺愁人的
Layout
android
:
layout
_width="match_parent"
android
:
layout
_height="wrap_content"
android
:
layout
_alignParent
Bott
om
="true">
om.jinsu.aiqiyue.Ci
android
Relative
Layout
控件或view实现叠加效果
在开发
android
程序的时候,我们经常会遇到让控件或是view实现叠加的效果,一般这种情况,很多人会
使用
Frame
layout
来处理,可是有一个问题Frame
layout
布局在布局上会有很多限制,不如Relative
Layout
布局那么随意,那么Relative
Layout
有没有什么属性可以让我们来处理叠加的效果呢,答案是肯定的。 在控制的属中会有四个属性 androi...
android
gridview底部,
android
– 将空格添加到GridView的顶部和底部
而不是
使用
paddings(在视图中添加空格),
使用
边距(添加您的View的空间):加
android
:
layout
_
margin
Top="40dp"
android
:
layout
_
margin
Bott
om
="40dp"到你的GridView(或一些不同的值)[编辑]根据OP的澄清:“空格”必须是固定的,所有的GridView都可以滚动.因此,我正在设计它(通过设置一对锚定的TextViews作为固定...
Android
中 ScrollView滚动不到最底端的解决
方法
在用ScrollView包裹TextView时发现。滚动条有时候滚动不到最底端,原因是在TextView中设置了
Android
:
layout
_
margin
Top="20dp",导致
margin
Top之后,scrollView初始显示的位置向下移动了20dp,你如果想要让他正常显示,必须在代码里面设置一下scrollView的初始显示位置就可以了。mScrollView.smoothScrollTo
Android
80,490
社区成员
91,374
社区内容
发帖
与我相关
我的任务
Android
移动平台 Android
复制链接
扫一扫
分享
社区描述
移动平台 Android
android
android-studio
androidx
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章