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

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

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

本文實(shí)現(xiàn)初次設(shè)置密碼驗(yàn)證過(guò)程,首先實(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="確認(rèn)密碼"
 />

 <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="確認(rèn)" />

 <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">

 <!-- 在去頭的同時(shí)還保持高版本的樣式主題 -->
 <!-- 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>

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

相關(guān)文章

  • 詳解基于Android的Appium+Python自動(dòng)化腳本編寫

    詳解基于Android的Appium+Python自動(dòng)化腳本編寫

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

    Android GridView仿微信添加多圖效果

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

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

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

    Android編程之基于Log演示一個(gè)activity生命周期實(shí)例詳解

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

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

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

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

    這篇文章主要介紹了Android編程實(shí)現(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)知識(shí),他們的基本使用方法,在文中都給大家提到,具體內(nèi)容詳情大家通過(guò)本文一起學(xué)習(xí)吧
    2017-12-12
  • Android如何實(shí)現(xiàn)動(dòng)態(tài)滾動(dòng)波形圖(心電圖)功能

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

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

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

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

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

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

最新評(píng)論

屏南县| 通州区| 措美县| 兴文县| 华容县| 兰考县| 通化县| 泰宁县| 泗洪县| 米易县| 乐亭县| 漳浦县| 大荔县| 绥化市| 恭城| 南宁市| 瓦房店市| 武夷山市| 武鸣县| 武邑县| 财经| 伊川县| 牡丹江市| 苍南县| 墨脱县| 广汉市| 许昌市| 双流县| 深水埗区| 万安县| 花莲市| 河西区| 宝清县| 收藏| 青阳县| 灯塔市| 井研县| 铜梁县| 屏东市| 城固县| 恩施市|