Java代码:
import android.app.Activity;
import android.os.Bundle;
/**
* 线型布局
* @author 够潮
*
*/
public class Layout1 extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.layout2);
}
}
布局配置文件:layout2.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="A"
></Button>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="B"
></Button>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="S"
></Button>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="D"
></Button>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="A"
></Button>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="B"
></Button>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="S"
></Button>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="D"
></Button>
</LinearLayout>
</LinearLayout>
效果:
<!--EndFragment-->
<!--EndFragment-->
<!--EndFragment-->
- 大小: 23.8 KB
分享到:
相关推荐
线型回归,又名普通最小二乘法。LinearRegression 实现了基于普通最小二乘法的线性回归,以最小化数据集中观察到的目标与通过线性近似预测的目标之间的残差平方和,来拟合具有系数 w = (w1, ..., wp) 的线性模型。
1:1万符号线型
1:1万线型符号
2、使用自定义布局 //线型布局 android:layout_width="match_parent" android:layout_height="200dip" android:background="@color/backColor"> //相对布局 android:layout_width="match_parent" ...
你是否经常在CAD文件中看到一些让你赞叹不已的线型?本程序帮助你将cad线型输出为线型文件,以备你自己使用。
CAD图层和线型专题培训课件.ppt
Matlab学习资料: 画图中线型及颜色设置.doc
如果打开CAD图纸时提示缺少字体文件或字体显示为?号,请将“CAD字体”文件夹内的所有字体文件(*.shx),拷贝在CAD安装路径下的字体目录内(如:D:\Program Files\AutoCAD 2002\Fonts)。
线型更改
采矿cad线型,cad2007用
ArGIS符号库-1:1万地形图线型符号库,解压后图层选择样式时使用,标准制图必备!更多符号库可看账号下资源。
CAD线型文件,里面是一个火车道的线型定义!
清理cad顽固线型,两个手段基本上可以清除大部分cad顽固线型
CAD复杂线型定义.txtCAD复杂线型定义.txtCAD复杂线型定义.txtCAD复杂线型定义.txt
这是一个示例,显示了 MATLAB:registered: 图中可用的标准线型。 阅读 MATLAB 文档中的“绘图”函数。 有关更多示例,请转到 MATLAB 绘图库 - http://www.mathworks.com/discovery/gallery.html
用C++交互式实现线型 用C++交互式实现线型 用C++交互式实现线型
光谱中常用的线型函数拟合,Guass函数 Lorentz函数 Voigt函数
自定义CAD线型