Chinaunix首页 | 论坛 | 博客
  • 博客访问: 327337
  • 博文数量: 96
  • 博客积分: 2041
  • 博客等级: 大尉
  • 技术积分: 1080
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-20 14:08
文章分类

全部博文(96)

文章存档

2015年(2)

2013年(1)

2012年(93)

分类: 系统运维

2012-02-09 21:35:05

 

 


定义一个布局管理器
    xmlns:android="
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >      整体风格垂直

    定义组件
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="西安理工大学" />
内嵌线性布局管理器
    xmlns:android="
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal" > 组件水平摆放
      图片
        android:src="@drawable/xxx1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/> 宽度不能是全屏,否则其他的无法显示了
            android:src="@drawable/xxx2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
   
            xmlns:android="
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal" >
   
            android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text = "请输入检索关键字"/>
      

阅读(1811) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~