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>

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

  • 相关阅读:
    如何理解volatile关键字
    Spring 4+JMS+ActiveMQ Example with Annotations
    Spring MVC如何获得客户端IP地址
    PDFBox –如何读取PDF的内容
    Spring MVC 使用Ehcache作为缓存的例子
    自定义了一个data table控件
    Linux基本配置
    位操作学习
    QT——QPainter类详解
    QT——设计文件的和控制类的关联问题
  • 原文地址:https://www.cnblogs.com/wuyudong/p/5943005.html
Copyright © 2011-2022 走看看