Android 手機衛士--導航介面1的布局編寫,android衛士

來源:互聯網
上載者:User

Android 手機衛士--導航介面1的布局編寫,android衛士

本文地址: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>

最後還剩下右下角的布局還沒有實現,將在下篇文章中單獨講解

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.