最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Android手機衛(wèi)士之設(shè)置密碼對話框

 更新時間:2016年10月09日 10:00:54   作者:wuyudong  
這篇文章主要為大家詳細介紹了Android手機衛(wèi)士之設(shè)置密碼對話框,具有一定的參考價值,感興趣的小伙伴們可以參考一下

本文實現(xiàn)初次設(shè)置密碼驗證過程,首先實現(xiàn)如下效果

布局如下:

<?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:background="#f00"
 android:text="設(shè)置密碼"
 />

 <EditText
 android:id="@+id/et_set_psd"
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:hint="設(shè)置密碼"
 />

 <EditText
 android:id="@+id/et_confirm_psd"
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:hint="確認密碼"
 />

 <LinearLayout
 android:layout_width="match_parent"
 android:layout_height="wrap_content">

 <Button
  android:id="@+id/bt_submit"
  android:layout_width="0dp"
  android:layout_height="wrap_content"
  android:layout_weight="1"
  android:text="確認" />

 <Button
  android:id="@+id/bt_cancel"
  android:layout_width="0dp"
  android:layout_height="wrap_content"
  android:layout_weight="1"
  android:text="取消" />
 </LinearLayout>

</LinearLayout>

其中TitleStyle的代碼如下:

<resources>
 <!--
 Base application theme, dependent on API level. This theme is replaced
 by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
 -->
 <style name="AppBaseTheme" parent="android:Theme.Light">
 <!--
  Theme customizations available in newer API levels can go in
  res/values-vXX/styles.xml, while customizations related to
  backward-compatibility can go here.
 -->
 </style>

 <!-- Application theme. -->
 <style name="AppTheme" parent="AppBaseTheme">

 <!-- 在去頭的同時還保持高版本的樣式主題 -->
 <!-- All customizations that are NOT specific to a particular API-level can go here. -->
 <item name="android:windowNoTitle">true</item>
 </style>

 <style name="TitleStyle">
 <item name="android:gravity">center</item>
 <item name="android:textSize">20sp</item>
 <item name="android:textColor">#000</item>
 <item name="android:padding">10dp</item>
 <item name="android:background">#0f0</item>
 <item name="android:layout_width">match_parent</item>
 <item name="android:layout_height">wrap_content</item>
 </style>

</resources>

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

  • 詳解基于Android的Appium+Python自動化腳本編寫

    詳解基于Android的Appium+Python自動化腳本編寫

    這篇文章主要介紹了詳解基于Android的Appium+Python自動化腳本編寫,文中通過示例代碼介紹的非常詳細,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2020-08-08
  • Android GridView仿微信添加多圖效果

    Android GridView仿微信添加多圖效果

    這篇文章主要為大家詳細介紹了Android GridView仿微信添加多圖效果,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2018-05-05
  • 詳解Android中visibility屬性VISIBLE、INVISIBLE、GONE的區(qū)別

    詳解Android中visibility屬性VISIBLE、INVISIBLE、GONE的區(qū)別

    在Android開發(fā)中,大部分控件都有visibility這個屬性,其屬性有3個分別為“visible ”、“invisible”、“gone”。主要用來設(shè)置控制控件的顯示和隱藏。本文就詳細的講解一下。
    2016-12-12
  • Android編程之基于Log演示一個activity生命周期實例詳解

    Android編程之基于Log演示一個activity生命周期實例詳解

    這篇文章主要介紹了Android編程之基于Log演示一個activity生命周期,結(jié)合完整實例形式較為詳細的分析總結(jié)了Log演示activity生命周期的具體用法及Log的具體使用方法,需要的朋友可以參考下
    2015-12-12
  • Android、iOS和Windows Phone中的推送技術(shù)詳解

    Android、iOS和Windows Phone中的推送技術(shù)詳解

    這篇文章主要介紹了Android、iOS和Windows Phone中的推送技術(shù)詳解,推送技術(shù)的實現(xiàn)通常會使用服務(wù)端向客戶端推送消息的方式,也就是說客戶端通過用戶名、Key等ID注冊到服務(wù)端后,在服務(wù)端就可以將消息向所有活動的客戶端發(fā)送,需要的朋友可以參考下
    2015-01-01
  • Android編程實現(xiàn)攝像頭臨摹效果的方法

    Android編程實現(xiàn)攝像頭臨摹效果的方法

    這篇文章主要介紹了Android編程實現(xiàn)攝像頭臨摹效果的方法,涉及Android權(quán)限控制、布局及攝像頭功能調(diào)用等相關(guān)操作技巧,需要的朋友可以參考下
    2017-09-09
  • 淺析AndroidStudio3.0最新 Android Profiler分析器(cpu memory network 分析器)

    淺析AndroidStudio3.0最新 Android Profiler分析器(cpu memory network

    Android Profiler分為三大模塊: cpu、內(nèi)存 、網(wǎng)絡(luò)。本文給大家介紹AndroidStudio3.0最新 Android Profiler分析器(cpu memory network 分析器)的相關(guān)知識,他們的基本使用方法,在文中都給大家提到,具體內(nèi)容詳情大家通過本文一起學(xué)習(xí)吧
    2017-12-12
  • Android如何實現(xiàn)動態(tài)滾動波形圖(心電圖)功能

    Android如何實現(xiàn)動態(tài)滾動波形圖(心電圖)功能

    這篇文章主要介紹了Android如何實現(xiàn)動態(tài)滾動波形圖(心電圖)功能,幫助大家更好的理解和學(xué)習(xí)使用Android,感興趣的朋友可以了解下
    2021-03-03
  • Flutter組件狀態(tài)管理的3種方法

    Flutter組件狀態(tài)管理的3種方法

    這篇文章主要為大家詳細介紹了Flutter組件狀態(tài)管理的3種方法,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2022-03-03
  • Android實現(xiàn)斷點續(xù)傳功能

    Android實現(xiàn)斷點續(xù)傳功能

    這篇文章主要為大家詳細介紹了Android實現(xiàn)斷點續(xù)傳功能,能在上次的斷點處繼續(xù)上傳,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2022-07-07

最新評論

嘉义市| 宁海县| 乾安县| 榆林市| 通道| 肥东县| 卫辉市| 秀山| 南木林县| 绥芬河市| 嘉黎县| 丽水市| 芒康县| 浏阳市| 会宁县| 惠东县| 班戈县| 朝阳区| 丰镇市| 盖州市| 乌拉特中旗| 昭平县| 隆德县| 义乌市| 博客| 宜兰市| 靖远县| 呼图壁县| 建阳市| 永安市| 原平市| 思茅市| 循化| 鹤岗市| 英吉沙县| 西乌珠穆沁旗| 固始县| 广安市| 泾阳县| 洛阳市| 迭部县|