[mobilesafe] 05_自定义弹出对话框-修改手机防盗名称,达到混淆的作用(防止卸载)

Android 4.0

自定义弹出对话框-修改手机防盗名称,达到混淆的作用(防止卸载)

dialog_change_name_menu.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- 8、手机防盗模块-弹出对话框来更改手机防盗名称 -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="200dip"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:background="#ffffff"
    android:orientation="vertical" >
    <TextView
        android:layout_width="200dip"
        android:layout_height="50dip"
        android:background="#aa00ff00"
        android:gravity="center"
        android:text="@string/change_name_menu"
        android:textColor="#ddff0000"
        android:textSize="18sp" />
    <EditText
        android:id="@+id/et_menu_newname"
        android:layout_width="200dip"
        android:layout_height="wrap_content"
        android:ems="10"
        android:textColor="#000000"
        android:hint="@string/please_input_a_newname_for_phone_theft" >
        <requestFocus />
    </EditText>
    <Button
        android:textColor="#000000"
        android:id="@+id/bt_menu_change"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/selector_btn_green"
        android:text="@string/bt_ok" />
</LinearLayout>
selector_btn_green.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- 5、手机防盗-弹出对话框按钮的状态选择器 -->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/btn_green_pressed" android:state_enabled="true" android:state_focused="true"/>
    <item android:drawable="@drawable/btn_green_pressed" android:state_enabled="true" android:state_pressed="true"/>
    <item android:drawable="@drawable/btn_green_normal"/>
</selector>

自定义弹出对话框-修改手机防盗名称,达到混淆的作用(防止卸载)