Android 手機衛士--導航介面2

來源:互聯網
上載者:User

標籤:

本文地址:http://www.cnblogs.com/wuyudong/p/5947504.html,轉載請註明出處。

在之前的文章中,實現了導航介面1布局編寫與相關的邏輯代碼,如所示:

點擊“下一頁”

public class Setup1Activity extends Activity{    @Override    protected void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        setContentView(R.layout.activity_setup1);    }    public void nextPage(View view) {        Intent intent = new Intent(getApplicationContext(), Setup2Activity.class);        startActivity(intent);        finish();    }}

進入新的activity:

可以看到,布局和之前的類似,代碼如下:

<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:orientation="vertical">    <TextView        style="@style/TitleStyle"        android:text="2.手機卡綁定" />    <TextView        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:textColor="#000"        android:textSize="18sp"        android:layout_margin="5dp"        android:text="通過綁定SIM卡:\n下次重啟手機如果發現SIM卡發生變化\n就會發送警示簡訊" />    <com.wuyudong.mobilesafe.view.SettingItemView        xmlns:mobilesafe="http://schemas.android.com/apk/res/com.wuyudong.mobilesafe"        android:id="@+id/siv_sim_bound"        android:layout_width="match_parent"        android:layout_height="wrap_content"        mobilesafe:destitle="點擊綁定sim卡"        mobilesafe:desoff="sim卡未綁定"        mobilesafe:deson="sim卡已綁定" >    </com.wuyudong.mobilesafe.view.SettingItemView>    <!-- 讓內部點的空間水平置中 -->    <LinearLayout        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:gravity="center_horizontal">        <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_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" />    </LinearLayout>    <RelativeLayout        android:layout_width="match_parent"        android:layout_height="match_parent">        <ImageView            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:layout_centerInParent="true"            android:background="@mipmap/bind" />        <!-- 圖片選取器,在選中和未選中的過程中,切換展示圖片 -->        <Button style="@style/preBtn" />        <Button style="@style/nextBtn" />    </RelativeLayout></LinearLayout>

效果如下:

Android 手機衛士--導航介面2

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.