它 在 xml 布局里 是可以 用 android:layout_height="180dp"
来制定大小的现在,我想在 在 代码里改变大小是什么方法呢?
我查了下API,还是没查到
来制定大小的现在,我想在 在 代码里改变大小是什么方法呢?
我查了下API,还是没查到
解决方案 »
- 新手问题. 在Android中, 有人能JDBC直接连接到SQL SERVER取数据吗?
- android中如何获得Imageview中图像的像素
- android 平台下 OpenGL 纹理贴图在真机上为什么无法显示,模拟器可以显示
- android从数据库提取时,换行符直接输出
- android overlay
- 为啥这个按钮无法显示
- listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
- 真机测试程序时无法安装。。。
- 备份与恢复问题
- Android ndk开发
- 碰倒一个神奇的问题,linux权限让你到处碰钉子
- android 地图加载overlay,为什么不能一个个显示
Set the layout parameters associated with this view. These supply parameters to the parent of this view specifying how it should be arranged. There are many subclasses of ViewGroup.LayoutParams, and these correspond to the different subclasses of ViewGroup that are responsible for arranging their children.
Parametersparams The layout parameters for this view, cannot be null
http://developer.android.com/reference/android/view/View.html#setLayoutParams(android.view.ViewGroup.LayoutParams)
RelativeLayout.LayoutParams rlp = new RelativeLayout.LayoutParams(300,400);
rlayout.setLayoutParams(rlp);
1.如果我想重新制定 这个 RelativeLayout 位于另外一个 RelativeLayout之下,有什么方法吗?
原因是我在重新制定大小之后,显示的布局 覆盖了上面的RelativeLayout了
.如果我想重新制定 这个 RelativeLayout 位于另外一个 RelativeLayout之下,有什么方法吗?
原因是我在重新制定大小之后,显示的布局 覆盖了上面的RelativeLayout了