zoukankan      html  css  js  c++  java
  • Android 手机卫士--导航界面1的布局编写

    本文地址:http://www.cnblogs.com/wuyudong/p/5943005.html,转载请注明出处。

    本文实现导航界面1的布局的实现,效果如下图所示:

    首先分析所使用的布局样式:

    对应的activity_setup1.xml布局文件内容如下:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <TextView
            style="@style/TitleStyle"
            android:text="1.欢迎使用手机防盗"
            />
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="#000"
            android:textSize="18sp"
            android:layout_margin="5dp"
            android:text="您的手机防盗卫士"
            />
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:drawableLeft="@android:drawable/star_big_on"
            android:gravity="center_vertical"
            android:textColor="#000"
            android:textSize="18sp"
            android:text="sim卡变更报警"
            />
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:drawableLeft="@android:drawable/star_big_on"
            android:gravity="center_vertical"
            android:textColor="#000"
            android:textSize="18sp"
            android:text="GPS追踪"
            />
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:drawableLeft="@android:drawable/star_big_on"
            android:gravity="center_vertical"
            android:textColor="#000"
            android:textSize="18sp"
            android:text="远程数据销毁"
            />
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:drawableLeft="@android:drawable/star_big_on"
            android:gravity="center_vertical"
            android:textColor="#000"
            android:textSize="18sp"
            android:text="远程锁屏"
            />
        <!-- 让内部点的空间水平居中 -->
        <LinearLayout
            android:gravity="center_horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">
            <ImageView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@android:drawable/presence_online"
                />
            <ImageView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@android:drawable/presence_invisible"
                />
            <ImageView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@android:drawable/presence_invisible"
                />
            <ImageView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@android:drawable/presence_invisible"
                />
        </LinearLayout>
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            <ImageView
                android:background="@drawable/setup1"
                android:layout_centerInParent="true"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
            <!-- 图片选择器,在选中和未选中的过程中,切换展示图片 -->
            <Button
                android:text="下一页"
      
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" />
    
        </RelativeLayout>
    
    </LinearLayout>

    最后还剩下右下角的布局还没有实现,将在下篇文章中单独讲解

  • 相关阅读:
    C#小型资源管理器
    C#换肤LrisSkin
    面向对象的24种设计模式
    七大设计原则
    非泛型集合和泛型集合
    C#经理评价系统
    深入C#.NET框架
    C#窗口航空总结
    java基础数据结构和语法
    HTML
  • 原文地址:https://www.cnblogs.com/wuyudong/p/5943005.html
Copyright © 2011-2022 走看看