• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号
您的位置:首页 > 程序设计 >Android > 手机安全卫士——手机防盗页面,安全卫士防盗页面

手机安全卫士——手机防盗页面,安全卫士防盗页面

作者:网友 字体:[增加 减小] 来源:互联网 时间:2017-05-26

网友通过本文主要向大家介绍了手机安全卫士,360手机安全卫士,360手机安全卫士下载,360手机安全卫士官网,手机安全卫士排行榜等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com

手机安全卫士——手机防盗页面,安全卫士防盗页面


LostFindActivity.java

public class LostFindActivity extends Activity {
    private SharedPreferences mPrefs;

    private TextView tvSafePhone;
    private ImageView ivProtect;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        mPrefs = getSharedPreferences("config", MODE_PRIVATE);

        boolean configed = mPrefs.getBoolean("configed", false);// 判断是否进入过设置向导
        if (configed) {
            setContentView(R.layout.activity_lost_find);

            // 根据sp更新安全号码
            tvSafePhone = (TextView) findViewById(R.id.tv_safe_phone);
            String phone = mPrefs.getString("safe_phone", "");
            tvSafePhone.setText(phone);

            // 根据sp更新保护锁
            ivProtect = (ImageView) findViewById(R.id.iv_protect);
            boolean protect = mPrefs.getBoolean("protect", false);
            if (protect) {
                ivProtect.setImageResource(R.drawable.lock);
            } else {
                ivProtect.setImageResource(R.drawable.unlock);
            }

        } else {
            // 跳转设置向导页
            startActivity(new Intent(this, Setup1Activity.class));
            finish();
        }
    }

    /**
     * 重新进入设置向导
     * 
     * @param view
     */
    public void reEnter(View view) {
        startActivity(new Intent(this, Setup1Activity.class));
        finish();
    }
}
activity_lost_find.xml
<?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="手机防盗" />

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="5dp"
        android:gravity="center_vertical" >

        <TextView
            style="@style/ContentStyle"
            android:text="安全号码" />

        <TextView
            android:id="@+id/tv_safe_phone"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            
            android:textColor="@color/black"
            android:textSize="16sp" />
    </RelativeLayout>

    <ImageView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:background="@drawable/listview_divider" />

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="5dp"
        android:gravity="center_vertical" >

        <TextView
            style="@style/ContentStyle"
            android:text="防盗保护是否开启" />

        <ImageView
            android:id="@+id/iv_protect"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:src="@drawable/unlock" />
    </RelativeLayout>

    <ImageView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:background="@drawable/listview_divider" />

    <TextView
        android:layout_width="match_parent"
        android:background="@drawable/shape_selector"
        android:onClick="reEnter"
        android:clickable="true"
        style="@style/ContentStyle"
        android:layout_margin="5dp"
        android:text="重新进入设置向导" />

    <ImageView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:background="@drawable/listview_divider" />
    <TextView 
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="功能简介"
        android:layout_margin="5dp"
        android:textColor="@color/black"
        android:textSize="18sp"
        android:background="#5000"
        />
    
    <TextView 
        style="@style/ContentStyle"
        android:drawableLeft="@android:drawable/star_big_on"
        android:gravity=



 
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • 手机安全卫士——缓存清理,安全卫士缓存清理
  • 手机安全卫士——病毒查杀,安全卫士病毒查杀
  • 手机安全卫士——进程管理,安全卫士进程管理
  • 手机安全卫士——通讯卫士-黑名单的管理,安全卫士卫士
  • 手机安全卫士——软件管理-用户程序和系统程序,安全卫士系统程序
  • 手机安全卫士——手机防盗页面,安全卫士防盗页面
  • 手机安全卫士——高级工具-电话归属地查询,安全卫士归属地查询
  • 手机安全卫士——在设置中心 自定义view和自定义属性,安全卫士view
  • 手机安全卫士——主界面的开发,安全卫士主界面
  • 手机安全卫士——闪屏页相关处理,手机安全卫士

相关文章

  • 2017-05-26LoaderManager与CursorLoader用法,cursorloader
  • 2017-05-26阿里巴巴开源Weex 开发教程,开源weex
  • 2017-05-26Android系统input设备的插拔和事件监听
  • 2017-05-26安卓开源项目周报1214,安卓开源项目1214
  • 2017-05-26Android XML中引用自定义内部类view的四个why,androidxml
  • 2017-05-26张高兴的 Xamarin.Android 学习笔记:(四)常用控件,android常用控件
  • 2017-05-26[android] 数据的异步加载和图片保存,
  • 2017-05-26Butter Knife使用详解,butterknife
  • 2017-05-26硅谷新闻3--使用Android系统自带的API解析json数据,androidjson
  • 2017-05-26tingkman-tcp-ip协议分析和实现5-路由的添加、查找、选择

文章分类

  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号

最近更新的内容

    • Android中实现APP文本内容的分享发送与接收方法简述,androidapp
    • [Android]Android布局优化之&lt;include /&gt;,androidinclude
    • Android 离线缓存的快速实现
    • android源码解析之(二)--)异步任务AsyncTask
    • Service的启动与停止、绑定与解绑,service停止绑定
    • Android--Activity在跳转时携带数据
    • 第二个activity,启动第二个activity
    • 错误提示”void is an invalid type for the variable“,invalidvariable
    • Android开发8:数据存储(二)——SQLite数据库和ContentProvider的使用,
    • AsyncTask.cancel()的结束问题,asynctaskcancel

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有