功能更新V1.0.2(3)
This commit is contained in:
parent
3ee020e175
commit
5a812b6d27
BIN
.safedk/api/SafeDKAndroid-6.4.4.jar
Normal file
BIN
.safedk/api/SafeDKAndroid-6.4.4.jar
Normal file
Binary file not shown.
17
.safedk/app_sdks.lst
Normal file
17
.safedk/app_sdks.lst
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
106f9be0e66f52f36eaaaff4dd231971
|
||||||
|
75939c4ce23c53ad9534d43be176b3e9
|
||||||
|
217e8f437c9fc4244d6e74653ac8a8c7
|
||||||
|
66b774de6608db14a84e972fba1ec954
|
||||||
|
e1c9ddef73e5621f62c717badf1be3f2
|
||||||
|
daaea35726ab7cd457ab61d4538fb822
|
||||||
|
1be9e72506f3307ce6a9e78d26d65bd0
|
||||||
|
4df96d3bc9afd17b812e65e6c6add1ef
|
||||||
|
eb3214f29c0a52815b41977d6cc9a46e
|
||||||
|
becf75b2cc99e82716da2e6697879509
|
||||||
|
7eec7b9476b99b3ce94533da4f2eb987
|
||||||
|
974322f19d813702ea048d95288d2b8c
|
||||||
|
29015bbfcc182d80e7f75bd2c38e4521
|
||||||
|
dd2971b0681141d57b221687791ad1bd
|
||||||
|
86a0d598cde251321e21a0da4ab94065
|
||||||
|
74616804a7dc29147dfb0afe122a9fd2
|
||||||
|
|
||||||
BIN
.safedk/dex/SafeDKAndroid-6.4.4.dex
Normal file
BIN
.safedk/dex/SafeDKAndroid-6.4.4.dex
Normal file
Binary file not shown.
BIN
.safedk/dex/android-support-multidex.dex
Normal file
BIN
.safedk/dex/android-support-multidex.dex
Normal file
Binary file not shown.
2
.safedk/hashes.safedk
Normal file
2
.safedk/hashes.safedk
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#Fri Aug 16 17:06:06 CST 2024
|
||||||
|
json=2080922760
|
||||||
1
.safedk/list.enc
Normal file
1
.safedk/list.enc
Normal file
File diff suppressed because one or more lines are too long
5
.safedk/plugin.properties
Normal file
5
.safedk/plugin.properties
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#
|
||||||
|
#Fri Aug 16 17:06:06 CST 2024
|
||||||
|
C8XiiEAUrUDh6nWnlsJz8iEhrTyNLUctJ_xGloqZJHwJINes1b_Md0rTpgbdETXAq9eH5RVsJqqNTILCA2qnbA=i4k2zRVkJrBdZ2AlcVyiG2B1feL1OvMldT2ea5279uyuoGXtC_5uGTbx7Up_JehNT_K0TmZK42hpEAFFwlHLEb
|
||||||
|
sdk_analysis_plugin_version=5.4.4
|
||||||
|
set_multidex=true
|
||||||
34
.safedk/proguard-safedk.pro
Normal file
34
.safedk/proguard-safedk.pro
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
-keep class androidx.multidex.** { *; }
|
||||||
|
-keep class androidx.browser.customtabs.CustomTabsIntent { *; }
|
||||||
|
-keep class androidx.** {
|
||||||
|
*** startActivityForResult(***);
|
||||||
|
*** startActivity(***);
|
||||||
|
}
|
||||||
|
-keep class android.support.multidex.** { *; }
|
||||||
|
-keep class android.support.v4.app.** { *; }
|
||||||
|
-keep class com.google.android.gms.location.FusedLocationProviderApi { *; }
|
||||||
|
-keep class com.google.android.gms.location.LocationListener { *; }
|
||||||
|
-keep class io.fabric.sdk.android.** { *; }
|
||||||
|
-keep class okio.** { *; }
|
||||||
|
-keep class retrofit2.** { *; }
|
||||||
|
-keep class okhttp3.** { *; }
|
||||||
|
-keep class com.squareup.okhttp.** { *; }
|
||||||
|
-keep class com.android.volley.** { *; }
|
||||||
|
-keep class com.flurry.** { *; }
|
||||||
|
-keep class org.apache.** { *; }
|
||||||
|
-keep class com.applovin.** { *; }
|
||||||
|
-keep class com.google.android.gms.ads.** { *; }
|
||||||
|
-keep class com.ironsource.** { *; }
|
||||||
|
-keep class com.fyber.inneractive.** { *; }
|
||||||
|
-keep class com.vungle.** { *; }
|
||||||
|
-keep class com.unity3d.ads.** { *; }
|
||||||
|
-keep class com.unity3d.services.** { *; }
|
||||||
|
-keep class com.mintegral.msdk.** { *; }
|
||||||
|
-keep class com.mbridge.msdk.** { *; }
|
||||||
|
-keep class com.adcolony.sdk.** { *; }
|
||||||
|
-keep class com.inmobi.** { *; }
|
||||||
|
-keep class com.five_corp.** { *; }
|
||||||
|
-keep class com.bytedance.** { *; }
|
||||||
|
-keep class com.smaato.** { *; }
|
||||||
|
-keep class com.safedk.** { *; }
|
||||||
|
-keep class com.applovin.quality.** { *; }
|
||||||
@ -22,9 +22,9 @@ android {
|
|||||||
applicationId = "com.lc.applock.security.locks"
|
applicationId = "com.lc.applock.security.locks"
|
||||||
minSdk = 23
|
minSdk = 23
|
||||||
targetSdk = 34
|
targetSdk = 34
|
||||||
versionCode = 2
|
versionCode = 3
|
||||||
versionName = "1.0.1"
|
versionName = "1.0.2"
|
||||||
setProperty("archivesBaseName", "AppLockMaster_v${versionName}_(${versionCode})_$timestamp")
|
setProperty("archivesBaseName", "AppLockMaster-v${versionName}(${versionCode})-$timestamp")
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,6 +36,13 @@ android {
|
|||||||
"proguard-rules.pro"
|
"proguard-rules.pro"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
debug {
|
||||||
|
isMinifyEnabled = true
|
||||||
|
proguardFiles(
|
||||||
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||||
|
"proguard-rules.pro"
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility = JavaVersion.VERSION_17
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
|
|||||||
4
app/info
4
app/info
@ -1,6 +1,6 @@
|
|||||||
包名:com.lc.applock.security.locks
|
包名:com.lc.applock.security.locks
|
||||||
应用名:App Lock Master
|
应用名:App Lock Master
|
||||||
签名文件:SecurityLocks.jks
|
签名文件:SecurityLocks.jks
|
||||||
签名文件路径:D:\AndroidProjects\SecurityLocks\app
|
签名文件路径:D:\AndroidProjects\App Lock Master\app
|
||||||
别名:SecurityLocks0
|
别名:SecurityLocks0
|
||||||
密码:Security Locks
|
密码:SecurityLocks
|
||||||
@ -28,25 +28,28 @@
|
|||||||
android:theme="@style/Theme.SecurityLocks"
|
android:theme="@style/Theme.SecurityLocks"
|
||||||
tools:targetApi="31">
|
tools:targetApi="31">
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.TestimonialsActivity"
|
android:name=".activity.SearchActivity"
|
||||||
android:screenOrientation="portrait"
|
|
||||||
android:exported="false" />
|
android:exported="false" />
|
||||||
|
<activity
|
||||||
|
android:name=".activity.TestimonialsActivity"
|
||||||
|
android:exported="false"
|
||||||
|
android:screenOrientation="portrait" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.AllAppActivity"
|
android:name=".activity.AllAppActivity"
|
||||||
android:screenOrientation="portrait"
|
android:exported="false"
|
||||||
android:exported="false" />
|
android:screenOrientation="portrait" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.LockedAppActivity"
|
android:name=".activity.LockedAppActivity"
|
||||||
android:screenOrientation="portrait"
|
android:exported="false"
|
||||||
android:exported="false" />
|
android:screenOrientation="portrait" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.PassCodeActivity"
|
android:name=".activity.PassCodeActivity"
|
||||||
android:screenOrientation="portrait"
|
android:exported="false"
|
||||||
android:exported="false" />
|
android:screenOrientation="portrait" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.IntoActivity"
|
android:name=".activity.IntoActivity"
|
||||||
android:screenOrientation="portrait"
|
android:exported="true"
|
||||||
android:exported="true">
|
android:screenOrientation="portrait">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
|
||||||
@ -56,7 +59,8 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".activity.MainActivity"
|
android:name=".activity.MainActivity"
|
||||||
android:exported="false" />
|
android:exported="false" />
|
||||||
<service android:name=".tool.MyService"/>
|
|
||||||
|
<service android:name=".tool.MyService" />
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
@ -10,6 +10,7 @@ import com.applovin.sdk.AppLovinMediationProvider;
|
|||||||
import com.applovin.sdk.AppLovinSdk;
|
import com.applovin.sdk.AppLovinSdk;
|
||||||
import com.applovin.sdk.AppLovinSdkConfiguration;
|
import com.applovin.sdk.AppLovinSdkConfiguration;
|
||||||
import com.applovin.sdk.AppLovinSdkInitializationConfiguration;
|
import com.applovin.sdk.AppLovinSdkInitializationConfiguration;
|
||||||
|
import com.bytedance.frameworks.encryptor.BuildConfig;
|
||||||
import com.lc.myapplication.security.locks.lockroom.SecurityLockDataBase;
|
import com.lc.myapplication.security.locks.lockroom.SecurityLockDataBase;
|
||||||
import com.lc.myapplication.security.locks.lockroom.SecurityLockEntity;
|
import com.lc.myapplication.security.locks.lockroom.SecurityLockEntity;
|
||||||
import com.lc.myapplication.security.locks.tool.AppsManager;
|
import com.lc.myapplication.security.locks.tool.AppsManager;
|
||||||
@ -47,7 +48,6 @@ public class Securitylocks extends Application {
|
|||||||
securityLockEntities = SecurityLockDataBase.getSecurityLockDataBase().getsecurityLockDAO().GetAllapp();
|
securityLockEntities = SecurityLockDataBase.getSecurityLockDataBase().getsecurityLockDAO().GetAllapp();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//Log.d("--------en3","----------"+securityLockEntities.size());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initMAxSDk() {
|
private void initMAxSDk() {
|
||||||
|
|||||||
@ -11,6 +11,8 @@ import androidx.appcompat.app.AppCompatActivity;
|
|||||||
import com.lc.myapplication.security.locks.max.WelComManager;
|
import com.lc.myapplication.security.locks.max.WelComManager;
|
||||||
import com.lc.myapplication.security.locks.Securitylocks;
|
import com.lc.myapplication.security.locks.Securitylocks;
|
||||||
import com.lc.myapplication.security.locks.max.CustomProgressBar;
|
import com.lc.myapplication.security.locks.max.CustomProgressBar;
|
||||||
|
import com.lc.myapplication.security.locks.tool.LockAction;
|
||||||
|
import com.lc.myapplication.security.locks.tool.LockPremission;
|
||||||
import com.lc.myapplication.security.locks.tool.MyTools;
|
import com.lc.myapplication.security.locks.tool.MyTools;
|
||||||
import com.lc.myapplication.security.locks.R;
|
import com.lc.myapplication.security.locks.R;
|
||||||
|
|
||||||
@ -23,14 +25,13 @@ public class IntoActivity extends AppCompatActivity {
|
|||||||
private CustomProgressBar progressBar;
|
private CustomProgressBar progressBar;
|
||||||
private Long time = 11000L;
|
private Long time = 11000L;
|
||||||
|
|
||||||
|
|
||||||
@SuppressLint("MissingInflatedId")
|
@SuppressLint("MissingInflatedId")
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_into);
|
setContentView(R.layout.activity_into);
|
||||||
progressBar = findViewById(R.id.pb);
|
progressBar = findViewById(R.id.pb);
|
||||||
|
|
||||||
|
|
||||||
timer = WelComManager.initTimer(IntoActivity.this, time, new Function1<Long, Unit>() {
|
timer = WelComManager.initTimer(IntoActivity.this, time, new Function1<Long, Unit>() {
|
||||||
@Override
|
@Override
|
||||||
public Unit invoke(Long aLong) {
|
public Unit invoke(Long aLong) {
|
||||||
@ -48,17 +49,31 @@ public class IntoActivity extends AppCompatActivity {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void startSwitchActivity() {
|
private void startSwitchActivity() {
|
||||||
String firstkey = MyTools.getPassword();
|
String firstkey = MyTools.getPassword();
|
||||||
|
Log.d("dhn","dhn------fin"+firstkey);
|
||||||
if (firstkey.isEmpty()) {
|
if (firstkey.isEmpty()) {
|
||||||
startActivity(new Intent(IntoActivity.this, PassCodeActivity.class));
|
startActivity(new Intent(IntoActivity.this, PassCodeActivity.class));
|
||||||
finish();
|
finish();
|
||||||
} else {
|
} else {
|
||||||
startActivity(new Intent(IntoActivity.this, MainActivity.class));
|
if(LockPremission.privacysuccess(this) && LockPremission.showonsuccess(this)){
|
||||||
finish();
|
LockAction lockAction = LockAction.getActionInstance(this);
|
||||||
|
MyTools.onRunMain(() -> {
|
||||||
|
lockAction.showLockView();
|
||||||
|
runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
startActivity(new Intent(IntoActivity.this, MainActivity.class));
|
||||||
|
finish();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}else {
|
||||||
|
startActivity(new Intent(IntoActivity.this, MainActivity.class));
|
||||||
|
finish();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private Double calculatePercentage(long number, long total) {
|
private Double calculatePercentage(long number, long total) {
|
||||||
|
|||||||
@ -52,7 +52,6 @@ public class LockedAppActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
gotoGetLockedList();
|
gotoGetLockedList();
|
||||||
//gotoGetRecycle();
|
|
||||||
}
|
}
|
||||||
private void initbackground() {
|
private void initbackground() {
|
||||||
Window window = getWindow();
|
Window window = getWindow();
|
||||||
|
|||||||
@ -26,6 +26,7 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
private RelativeLayout main_re2_lay1;
|
private RelativeLayout main_re2_lay1;
|
||||||
private RelativeLayout main_re2_lay2;
|
private RelativeLayout main_re2_lay2;
|
||||||
private ImageView main_set;
|
private ImageView main_set;
|
||||||
|
private ImageView main_sourch;
|
||||||
private PermissionDialog permissionDialog;
|
private PermissionDialog permissionDialog;
|
||||||
private SettingDialog settingDialog;
|
private SettingDialog settingDialog;
|
||||||
@Override
|
@Override
|
||||||
@ -69,6 +70,13 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
getsettingDialog();
|
getsettingDialog();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
main_sourch.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
Intent intent = new Intent(MainActivity.this,SearchActivity.class);
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void getsettingDialog() {
|
private void getsettingDialog() {
|
||||||
@ -106,6 +114,7 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
main_re_lay1 = findViewById(R.id.main_re_lay1);
|
main_re_lay1 = findViewById(R.id.main_re_lay1);
|
||||||
main_re2_lay1 = findViewById(R.id.main_re2_lay1);
|
main_re2_lay1 = findViewById(R.id.main_re2_lay1);
|
||||||
main_re2_lay2 = findViewById(R.id.main_re2_lay2);
|
main_re2_lay2 = findViewById(R.id.main_re2_lay2);
|
||||||
|
main_sourch = findViewById(R.id.main_sourch);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initpaperbackground() {
|
private void initpaperbackground() {
|
||||||
|
|||||||
@ -30,6 +30,7 @@ public class PassCodeActivity extends AppCompatActivity {
|
|||||||
private TextView passcode_name;
|
private TextView passcode_name;
|
||||||
private TextView passcode_step;
|
private TextView passcode_step;
|
||||||
private int type;
|
private int type;
|
||||||
|
private int type_from;
|
||||||
private String inputkey;
|
private String inputkey;
|
||||||
private DrawInputView drawInputView;
|
private DrawInputView drawInputView;
|
||||||
private ImageView image_back;
|
private ImageView image_back;
|
||||||
@ -71,6 +72,7 @@ public class PassCodeActivity extends AppCompatActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
Intent intent = new Intent(PassCodeActivity.this, PassCodeActivity.class);
|
Intent intent = new Intent(PassCodeActivity.this, PassCodeActivity.class);
|
||||||
|
intent.putExtra(MeValues.KEYCODE_FROM,0);
|
||||||
intent.putExtra(MeValues.KEYCODE_TYPE, 1);
|
intent.putExtra(MeValues.KEYCODE_TYPE, 1);
|
||||||
intent.putExtra(MeValues.FIRST_KEY, inputkey);
|
intent.putExtra(MeValues.FIRST_KEY, inputkey);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
@ -85,15 +87,29 @@ public class PassCodeActivity extends AppCompatActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
String passkey = getIntent().getStringExtra(MeValues.FIRST_KEY);
|
String passkey = getIntent().getStringExtra(MeValues.FIRST_KEY);
|
||||||
if (Objects.equals(passkey, inputkey)) {
|
type_from = getIntent().getIntExtra(MeValues.KEYCODE_FROM,0);
|
||||||
MyTools.setPassword(passkey);
|
Log.d("dhn","dhn-fin"+type_from);
|
||||||
Intent intent = new Intent(PassCodeActivity.this, MainActivity.class);
|
if (type_from == 0){
|
||||||
startActivity(intent);
|
if (Objects.equals(passkey, inputkey)) {
|
||||||
finish();
|
MyTools.setPassword(passkey);
|
||||||
} else {
|
Intent intent = new Intent(PassCodeActivity.this, MainActivity.class);
|
||||||
Toast.makeText(PassCodeActivity.this, getString(R.string.code_not_same), Toast.LENGTH_LONG).show();
|
startActivity(intent);
|
||||||
drawInputView.ClearInputCode();
|
finish();
|
||||||
passcode_step.setVisibility(View.GONE);
|
} else {
|
||||||
|
Toast.makeText(PassCodeActivity.this, getString(R.string.code_not_same), Toast.LENGTH_LONG).show();
|
||||||
|
drawInputView.ClearInputCode();
|
||||||
|
passcode_step.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
if (Objects.equals(passkey, inputkey)) {
|
||||||
|
MyTools.setPassword(passkey);
|
||||||
|
Toast.makeText(PassCodeActivity.this, getString(R.string.change_success), Toast.LENGTH_SHORT).show();
|
||||||
|
finish();
|
||||||
|
} else {
|
||||||
|
Toast.makeText(PassCodeActivity.this, getString(R.string.code_not_same), Toast.LENGTH_LONG).show();
|
||||||
|
drawInputView.ClearInputCode();
|
||||||
|
passcode_step.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -104,7 +120,12 @@ public class PassCodeActivity extends AppCompatActivity {
|
|||||||
passcode_step.setOnClickListener(new View.OnClickListener() {
|
passcode_step.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
changeKeycode();
|
Intent intent = new Intent(PassCodeActivity.this, PassCodeActivity.class);
|
||||||
|
intent.putExtra(MeValues.KEYCODE_FROM,2);
|
||||||
|
intent.putExtra(MeValues.KEYCODE_TYPE, 1);
|
||||||
|
intent.putExtra(MeValues.FIRST_KEY, inputkey);
|
||||||
|
startActivity(intent);
|
||||||
|
finish();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
image_back.setOnClickListener(new View.OnClickListener() {
|
image_back.setOnClickListener(new View.OnClickListener() {
|
||||||
@ -129,11 +150,6 @@ public class PassCodeActivity extends AppCompatActivity {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void changeKeycode() {
|
|
||||||
MyTools.setPassword(inputkey);
|
|
||||||
Toast.makeText(PassCodeActivity.this, getString(R.string.change_success), Toast.LENGTH_SHORT).show();
|
|
||||||
finish();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void initfindview() {
|
private void initfindview() {
|
||||||
passcode_main = findViewById(R.id.passcode_main);
|
passcode_main = findViewById(R.id.passcode_main);
|
||||||
@ -154,6 +170,4 @@ public class PassCodeActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -0,0 +1,85 @@
|
|||||||
|
package com.lc.myapplication.security.locks.activity;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.util.Log;
|
||||||
|
import android.view.View;
|
||||||
|
import android.widget.EditText;
|
||||||
|
import android.widget.ImageView;
|
||||||
|
|
||||||
|
import androidx.activity.EdgeToEdge;
|
||||||
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
import androidx.core.graphics.Insets;
|
||||||
|
import androidx.core.view.ViewCompat;
|
||||||
|
import androidx.core.view.WindowInsetsCompat;
|
||||||
|
import androidx.recyclerview.widget.GridLayoutManager;
|
||||||
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import com.lc.myapplication.security.locks.R;
|
||||||
|
import com.lc.myapplication.security.locks.adapter.LockedAppAdapter;
|
||||||
|
import com.lc.myapplication.security.locks.adapter.SearchAdapter;
|
||||||
|
import com.lc.myapplication.security.locks.draw.MySpace;
|
||||||
|
import com.lc.myapplication.security.locks.lockroom.SecurityLockDataBase;
|
||||||
|
import com.lc.myapplication.security.locks.lockroom.SecurityLockEntity;
|
||||||
|
import com.lc.myapplication.security.locks.tool.MyTools;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class SearchActivity extends AppCompatActivity {
|
||||||
|
|
||||||
|
private EditText rearch_edit_text;
|
||||||
|
private RecyclerView rearch_recycle_view;
|
||||||
|
private List<SecurityLockEntity> list;
|
||||||
|
private ImageView rearch_touch;
|
||||||
|
private String rearch_appname;
|
||||||
|
private ImageView search_app_back;
|
||||||
|
@SuppressLint("MissingInflatedId")
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
setContentView(R.layout.activity_search);
|
||||||
|
rearch_edit_text = findViewById(R.id.rearch_edit_text);
|
||||||
|
rearch_recycle_view = findViewById(R.id.rearch_recycle_view);
|
||||||
|
rearch_touch = findViewById(R.id.rearch_touch);
|
||||||
|
search_app_back = findViewById(R.id.search_apps_back);
|
||||||
|
onMyClick();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void onMyClick() {
|
||||||
|
search_app_back.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
finish();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
rearch_touch.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
rearch_appname = rearch_edit_text.getText().toString();
|
||||||
|
setRecycleView();
|
||||||
|
Log.d("dhn","dhn---------fin"+rearch_appname);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private void setRecycleView() {
|
||||||
|
MyTools.RUNIO(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
list = SecurityLockDataBase.getSecurityLockDataBase().getsecurityLockDAO().QueryByInputName(rearch_appname);
|
||||||
|
Log.d("dhn1","dhn---------fin"+list.size());
|
||||||
|
runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
MySpace mySpace = new MySpace(5,20,3);
|
||||||
|
GridLayoutManager gridLayoutManager = new GridLayoutManager(SearchActivity.this,3);
|
||||||
|
rearch_recycle_view.setLayoutManager(gridLayoutManager);
|
||||||
|
rearch_recycle_view.addItemDecoration(mySpace);
|
||||||
|
SearchAdapter searchAdapter = new SearchAdapter(SearchActivity.this,list);
|
||||||
|
rearch_recycle_view.setAdapter(searchAdapter);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,36 +1,46 @@
|
|||||||
package com.lc.myapplication.security.locks.adapter;
|
package com.lc.myapplication.security.locks.adapter;
|
||||||
|
|
||||||
|
import static com.unity3d.services.core.properties.ClientProperties.getApplicationContext;
|
||||||
|
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.CompoundButton;
|
import android.widget.CompoundButton;
|
||||||
|
import android.widget.Toast;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import com.bytedance.frameworks.encryptor.BuildConfig;
|
||||||
|
import com.lc.myapplication.security.locks.R;
|
||||||
import com.lc.myapplication.security.locks.Securitylocks;
|
import com.lc.myapplication.security.locks.Securitylocks;
|
||||||
import com.lc.myapplication.security.locks.activity.AllAppActivity;
|
import com.lc.myapplication.security.locks.activity.AllAppActivity;
|
||||||
import com.lc.myapplication.security.locks.databinding.AllAppsViewBinding;
|
import com.lc.myapplication.security.locks.databinding.AllAppsViewBinding;
|
||||||
import com.lc.myapplication.security.locks.dialog.MsgDialog;
|
import com.lc.myapplication.security.locks.dialog.MsgDialog;
|
||||||
|
import com.lc.myapplication.security.locks.dialog.PermissionDialog;
|
||||||
import com.lc.myapplication.security.locks.listener.ActionListener;
|
import com.lc.myapplication.security.locks.listener.ActionListener;
|
||||||
import com.lc.myapplication.security.locks.lockroom.SecurityLockDataBase;
|
import com.lc.myapplication.security.locks.lockroom.SecurityLockDataBase;
|
||||||
import com.lc.myapplication.security.locks.lockroom.SecurityLockEntity;
|
import com.lc.myapplication.security.locks.lockroom.SecurityLockEntity;
|
||||||
import com.lc.myapplication.security.locks.max.MaxManager;
|
import com.lc.myapplication.security.locks.max.MaxManager;
|
||||||
import com.lc.myapplication.security.locks.max.onAdStatusListener;
|
import com.lc.myapplication.security.locks.max.onAdStatusListener;
|
||||||
import com.lc.myapplication.security.locks.tool.AppsManager;
|
import com.lc.myapplication.security.locks.tool.AppsManager;
|
||||||
|
import com.lc.myapplication.security.locks.tool.LockPremission;
|
||||||
import com.lc.myapplication.security.locks.tool.MyTools;
|
import com.lc.myapplication.security.locks.tool.MyTools;
|
||||||
import com.lc.myapplication.security.locks.value.MeValues;
|
import com.lc.myapplication.security.locks.value.MeValues;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
public class AllAppsAdapter extends RecyclerView.Adapter<AllAppsAdapter.AllAppVH> {
|
public class AllAppsAdapter extends RecyclerView.Adapter<AllAppsAdapter.AllAppVH> {
|
||||||
private AllAppActivity mActivity;
|
private AllAppActivity mActivity;
|
||||||
private List<SecurityLockEntity> securityLockEntities;
|
private List<SecurityLockEntity> securityLockEntities;
|
||||||
|
|
||||||
private MsgDialog msgDialog = null;
|
private MsgDialog msgDialog = null;
|
||||||
|
private PermissionDialog dialog;
|
||||||
|
|
||||||
private onAdStatusListener listener;
|
private onAdStatusListener listener;
|
||||||
|
String packageName = getApplicationContext().getPackageName();
|
||||||
|
|
||||||
public void setListener(onAdStatusListener listener) {
|
public void setListener(onAdStatusListener listener) {
|
||||||
this.listener = listener;
|
this.listener = listener;
|
||||||
@ -64,9 +74,7 @@ public class AllAppsAdapter extends RecyclerView.Adapter<AllAppsAdapter.AllAppVH
|
|||||||
Drawable drawable = AppsManager.getapplogo(MeValues.lock, entity.getApppakname());
|
Drawable drawable = AppsManager.getapplogo(MeValues.lock, entity.getApppakname());
|
||||||
holder.allAppsViewBinding.appReLogo.setImageDrawable(drawable);
|
holder.allAppsViewBinding.appReLogo.setImageDrawable(drawable);
|
||||||
|
|
||||||
// boolean locksuccess = entity.isLocksuccess();
|
|
||||||
boolean locksuccess = MyTools.getTest(entity.getApppakname());
|
boolean locksuccess = MyTools.getTest(entity.getApppakname());
|
||||||
Log.d("----sign1", "-locksuccess" + entity.getApppakname() + "----------" + locksuccess);
|
|
||||||
holder.allAppsViewBinding.appReSwitch.setOnCheckedChangeListener(null);
|
holder.allAppsViewBinding.appReSwitch.setOnCheckedChangeListener(null);
|
||||||
if (locksuccess) {
|
if (locksuccess) {
|
||||||
holder.allAppsViewBinding.appReSwitch.setChecked(true);
|
holder.allAppsViewBinding.appReSwitch.setChecked(true);
|
||||||
@ -77,16 +85,35 @@ public class AllAppsAdapter extends RecyclerView.Adapter<AllAppsAdapter.AllAppVH
|
|||||||
holder.allAppsViewBinding.appReSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
holder.allAppsViewBinding.appReSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||||
MyTools.settest(entity.getApppakname(), locksuccess);
|
if (LockPremission.privacysuccess(mActivity) && LockPremission.showonsuccess(mActivity)) {
|
||||||
Log.d(Securitylocks.TAG, "----------" + entity.getApppakname() + "-----" + isChecked);
|
MyTools.settest(entity.getApppakname(), locksuccess);
|
||||||
|
if (Securitylocks.userOption % 5 == 0) {
|
||||||
|
showMax(new ActionListener() {
|
||||||
|
@Override
|
||||||
|
public void onAction() {
|
||||||
|
|
||||||
if (Securitylocks.userOption % 5 == 0) {
|
MyTools.settest(entity.getApppakname(), locksuccess);
|
||||||
showMax(new ActionListener() {
|
|
||||||
@Override
|
|
||||||
public void onAction() {
|
|
||||||
|
|
||||||
|
entity.setLocksuccess(isChecked);
|
||||||
|
MyTools.RUNIO(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
SecurityLockDataBase.getSecurityLockDataBase().getsecurityLockDAO().Updataentity(entity);
|
||||||
|
// Log.d("----sign2", "----------" + entity.getApppakname() + "--------" + entity.isLocksuccess());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
String msg = "";
|
||||||
|
if (isChecked) {
|
||||||
|
msg = entity.getApplsign() + "locked success";
|
||||||
|
} else {
|
||||||
|
msg = entity.getApplsign() + "unlocked success";
|
||||||
|
}
|
||||||
|
msgDialog = new MsgDialog(msg);
|
||||||
|
msgDialog.show(mActivity.getSupportFragmentManager(), "");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
MyTools.settest(entity.getApppakname(), locksuccess);
|
MyTools.settest(entity.getApppakname(), locksuccess);
|
||||||
|
|
||||||
entity.setLocksuccess(isChecked);
|
entity.setLocksuccess(isChecked);
|
||||||
MyTools.RUNIO(new Runnable() {
|
MyTools.RUNIO(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
@ -95,37 +122,33 @@ public class AllAppsAdapter extends RecyclerView.Adapter<AllAppsAdapter.AllAppVH
|
|||||||
// Log.d("----sign2", "----------" + entity.getApppakname() + "--------" + entity.isLocksuccess());
|
// Log.d("----sign2", "----------" + entity.getApppakname() + "--------" + entity.isLocksuccess());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
String msg = "";
|
}
|
||||||
if (isChecked) {
|
Securitylocks.userOption++;
|
||||||
msg = entity.getApplsign() + "locked success";
|
}else{
|
||||||
} else {
|
holder.allAppsViewBinding.appReSwitch.setChecked(false);
|
||||||
msg = entity.getApplsign() + "unlocked success";
|
getDialogsuccess();
|
||||||
}
|
}
|
||||||
msgDialog = new MsgDialog(msg);
|
// Log.d(Securitylocks.TAG, "----------" + entity.getApppakname() + "-----" + isChecked);
|
||||||
msgDialog.show(mActivity.getSupportFragmentManager(), "");
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
} else {
|
|
||||||
MyTools.settest(entity.getApppakname(), locksuccess);
|
|
||||||
entity.setLocksuccess(isChecked);
|
|
||||||
MyTools.RUNIO(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
SecurityLockDataBase.getSecurityLockDataBase().getsecurityLockDAO().Updataentity(entity);
|
|
||||||
// Log.d("----sign2", "----------" + entity.getApppakname() + "--------" + entity.isLocksuccess());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
Securitylocks.userOption++;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void getDialogsuccess() {
|
||||||
|
boolean isSelect = LockPremission.privacysuccess(mActivity);
|
||||||
|
boolean isEnable = LockPremission.showonsuccess(mActivity);
|
||||||
|
//Log.d("----eable","eable"+isEnable);
|
||||||
|
if (isSelect && isEnable) {
|
||||||
|
//goApply();
|
||||||
|
} else {
|
||||||
|
if (dialog == null) {
|
||||||
|
dialog = new PermissionDialog(mActivity);
|
||||||
|
}
|
||||||
|
dialog.show(mActivity.getSupportFragmentManager(), "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getItemCount() {
|
public int getItemCount() {
|
||||||
return securityLockEntities.size();
|
return securityLockEntities.size();
|
||||||
|
|||||||
@ -10,7 +10,10 @@ import android.widget.CompoundButton;
|
|||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import com.lc.myapplication.security.locks.Securitylocks;
|
||||||
|
import com.lc.myapplication.security.locks.activity.LockedAppActivity;
|
||||||
import com.lc.myapplication.security.locks.databinding.LockedAppsViewBinding;
|
import com.lc.myapplication.security.locks.databinding.LockedAppsViewBinding;
|
||||||
|
import com.lc.myapplication.security.locks.dialog.MsgDialog;
|
||||||
import com.lc.myapplication.security.locks.listener.ActionListener;
|
import com.lc.myapplication.security.locks.listener.ActionListener;
|
||||||
import com.lc.myapplication.security.locks.lockroom.SecurityLockDataBase;
|
import com.lc.myapplication.security.locks.lockroom.SecurityLockDataBase;
|
||||||
import com.lc.myapplication.security.locks.lockroom.SecurityLockEntity;
|
import com.lc.myapplication.security.locks.lockroom.SecurityLockEntity;
|
||||||
@ -23,9 +26,10 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class LockedAppAdapter extends RecyclerView.Adapter<LockedAppAdapter.LockedAppVH> {
|
public class LockedAppAdapter extends RecyclerView.Adapter<LockedAppAdapter.LockedAppVH> {
|
||||||
private Context mcon;
|
private LockedAppActivity mcon;
|
||||||
private List<SecurityLockEntity> entityList;
|
private List<SecurityLockEntity> entityList;
|
||||||
public LockedAppAdapter(Context context, List<SecurityLockEntity> entities){
|
private MsgDialog msgDialog = null;
|
||||||
|
public LockedAppAdapter(LockedAppActivity context, List<SecurityLockEntity> entities){
|
||||||
mcon = context;
|
mcon = context;
|
||||||
entityList = entities;
|
entityList = entities;
|
||||||
}
|
}
|
||||||
@ -47,6 +51,23 @@ public class LockedAppAdapter extends RecyclerView.Adapter<LockedAppAdapter.Lock
|
|||||||
holder.lockedAppsViewBinding.lockedReSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
holder.lockedAppsViewBinding.lockedReSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||||
|
if (Securitylocks.userOption % 5 == 0){
|
||||||
|
showMax(new ActionListener() {
|
||||||
|
@Override
|
||||||
|
public void onAction() {
|
||||||
|
String msg = "";
|
||||||
|
if (isChecked) {
|
||||||
|
msg = securityLockEntity.getApplsign() + "locked success";
|
||||||
|
} else {
|
||||||
|
msg = securityLockEntity.getApplsign() + "unlocked success";
|
||||||
|
}
|
||||||
|
msgDialog = new MsgDialog(msg);
|
||||||
|
msgDialog.show(mcon.getSupportFragmentManager(), "");
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
Securitylocks.userOption++;
|
||||||
securityLockEntity.setLocksuccess(isChecked);
|
securityLockEntity.setLocksuccess(isChecked);
|
||||||
MyTools.RUNIO(new Runnable() {
|
MyTools.RUNIO(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
@ -70,7 +91,16 @@ public class LockedAppAdapter extends RecyclerView.Adapter<LockedAppAdapter.Lock
|
|||||||
lockedAppsViewBinding = itemView;
|
lockedAppsViewBinding = itemView;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private void showMax(ActionListener listener) {
|
||||||
|
MaxManager.ShowAd(mcon, new onAdStatusListener() {
|
||||||
|
@Override
|
||||||
|
public void onAdStatus(int type) {
|
||||||
|
if (type == MaxManager.type_show_close || type == MaxManager.type_show_fail || type == MaxManager.type_no_cache) {
|
||||||
|
if (listener != null)
|
||||||
|
listener.onAction();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,69 @@
|
|||||||
|
package com.lc.myapplication.security.locks.adapter;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
import android.graphics.drawable.Drawable;
|
||||||
|
import android.view.LayoutInflater;
|
||||||
|
import android.view.ViewGroup;
|
||||||
|
import android.widget.CompoundButton;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import com.lc.myapplication.security.locks.databinding.RearchRecycleViewBinding;
|
||||||
|
import com.lc.myapplication.security.locks.lockroom.SecurityLockDataBase;
|
||||||
|
import com.lc.myapplication.security.locks.lockroom.SecurityLockEntity;
|
||||||
|
import com.lc.myapplication.security.locks.tool.AppsManager;
|
||||||
|
import com.lc.myapplication.security.locks.tool.MyTools;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class SearchAdapter extends RecyclerView.Adapter<SearchAdapter.SearchVH>{
|
||||||
|
private Context mycon;
|
||||||
|
private List<SecurityLockEntity> entity;
|
||||||
|
public SearchAdapter(Context context, List<SecurityLockEntity> entitylist){
|
||||||
|
mycon = context;
|
||||||
|
entity = entitylist;
|
||||||
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
|
@Override
|
||||||
|
public SearchVH onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||||
|
RearchRecycleViewBinding rearchRecycleViewBinding = RearchRecycleViewBinding.inflate(LayoutInflater.from(mycon),parent,false);
|
||||||
|
return new SearchVH(rearchRecycleViewBinding);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onBindViewHolder(@NonNull SearchVH holder, int position) {
|
||||||
|
SecurityLockEntity securityLockEntity = entity.get(position);
|
||||||
|
holder.rearchBinding.rearchName.setText(securityLockEntity.getApplsign());
|
||||||
|
Drawable drawable = AppsManager.getapplogo(mycon,securityLockEntity.getApppakname());
|
||||||
|
holder.rearchBinding.rearchImage.setImageDrawable(drawable);
|
||||||
|
holder.rearchBinding.rearchReSwitch.setOnCheckedChangeListener(null);
|
||||||
|
holder.rearchBinding.rearchReSwitch.setChecked(securityLockEntity.isLocksuccess());
|
||||||
|
holder.rearchBinding.rearchReSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
|
@Override
|
||||||
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||||
|
securityLockEntity.setLocksuccess(isChecked);
|
||||||
|
MyTools.RUNIO(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
SecurityLockDataBase.getSecurityLockDataBase().getsecurityLockDAO().Updataentity(securityLockEntity);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getItemCount() {
|
||||||
|
return entity.size();
|
||||||
|
}
|
||||||
|
|
||||||
|
public class SearchVH extends RecyclerView.ViewHolder {
|
||||||
|
private RearchRecycleViewBinding rearchBinding;
|
||||||
|
public SearchVH(@NonNull RearchRecycleViewBinding itemView) {
|
||||||
|
super(itemView.getRoot());
|
||||||
|
rearchBinding = itemView;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -16,12 +16,14 @@ import com.lc.myapplication.security.locks.Securitylocks;
|
|||||||
import com.lc.myapplication.security.locks.activity.TestimonialsActivity;
|
import com.lc.myapplication.security.locks.activity.TestimonialsActivity;
|
||||||
import com.lc.myapplication.security.locks.databinding.TuijianAppsViewBinding;
|
import com.lc.myapplication.security.locks.databinding.TuijianAppsViewBinding;
|
||||||
import com.lc.myapplication.security.locks.dialog.MsgDialog;
|
import com.lc.myapplication.security.locks.dialog.MsgDialog;
|
||||||
|
import com.lc.myapplication.security.locks.dialog.PermissionDialog;
|
||||||
import com.lc.myapplication.security.locks.listener.ActionListener;
|
import com.lc.myapplication.security.locks.listener.ActionListener;
|
||||||
import com.lc.myapplication.security.locks.lockroom.SecurityLockDataBase;
|
import com.lc.myapplication.security.locks.lockroom.SecurityLockDataBase;
|
||||||
import com.lc.myapplication.security.locks.lockroom.SecurityLockEntity;
|
import com.lc.myapplication.security.locks.lockroom.SecurityLockEntity;
|
||||||
import com.lc.myapplication.security.locks.max.MaxManager;
|
import com.lc.myapplication.security.locks.max.MaxManager;
|
||||||
import com.lc.myapplication.security.locks.max.onAdStatusListener;
|
import com.lc.myapplication.security.locks.max.onAdStatusListener;
|
||||||
import com.lc.myapplication.security.locks.tool.AppsManager;
|
import com.lc.myapplication.security.locks.tool.AppsManager;
|
||||||
|
import com.lc.myapplication.security.locks.tool.LockPremission;
|
||||||
import com.lc.myapplication.security.locks.tool.MyTools;
|
import com.lc.myapplication.security.locks.tool.MyTools;
|
||||||
|
|
||||||
import java.sql.Array;
|
import java.sql.Array;
|
||||||
@ -34,6 +36,7 @@ public class TuijianAdapter extends RecyclerView.Adapter<TuijianAdapter.TuijianA
|
|||||||
private List<SecurityLockEntity> securityLockEntities;
|
private List<SecurityLockEntity> securityLockEntities;
|
||||||
private TestimonialsActivity mycon;
|
private TestimonialsActivity mycon;
|
||||||
private MsgDialog msgDialog = null;
|
private MsgDialog msgDialog = null;
|
||||||
|
private PermissionDialog dialog;
|
||||||
public TuijianAdapter(TestimonialsActivity context, List<SecurityLockEntity> list){
|
public TuijianAdapter(TestimonialsActivity context, List<SecurityLockEntity> list){
|
||||||
mycon = context;
|
mycon = context;
|
||||||
securityLockEntities = list;
|
securityLockEntities = list;
|
||||||
@ -63,34 +66,52 @@ public class TuijianAdapter extends RecyclerView.Adapter<TuijianAdapter.TuijianA
|
|||||||
holder.tuijianAppsViewBinding.tuijianReSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
holder.tuijianAppsViewBinding.tuijianReSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||||
if (Securitylocks.userOption % 5 == 0){
|
if (LockPremission.privacysuccess(mycon) && LockPremission.showonsuccess(mycon)){
|
||||||
showMax(new ActionListener() {
|
if (Securitylocks.userOption % 5 == 0){
|
||||||
@Override
|
showMax(new ActionListener() {
|
||||||
public void onAction() {
|
@Override
|
||||||
String msg = "";
|
public void onAction() {
|
||||||
if (isChecked) {
|
String msg = "";
|
||||||
msg = entity.getApplsign() + "locked success";
|
if (isChecked) {
|
||||||
} else {
|
msg = entity.getApplsign() + "locked success";
|
||||||
msg = entity.getApplsign() + "unlocked success";
|
} else {
|
||||||
|
msg = entity.getApplsign() + "unlocked success";
|
||||||
|
}
|
||||||
|
msgDialog = new MsgDialog(msg);
|
||||||
|
msgDialog.show(mycon.getSupportFragmentManager(), "");
|
||||||
}
|
}
|
||||||
msgDialog = new MsgDialog(msg);
|
});
|
||||||
msgDialog.show(mycon.getSupportFragmentManager(), "");
|
}
|
||||||
|
Securitylocks.userOption++;
|
||||||
|
MyTools.settest(entity.getApppakname(), locksuccess);
|
||||||
|
entity.setLocksuccess(isChecked);
|
||||||
|
MyTools.RUNIO(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
SecurityLockDataBase.getSecurityLockDataBase().getsecurityLockDAO().Updataentity(entity);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}else {
|
||||||
|
holder.tuijianAppsViewBinding.tuijianReSwitch.setChecked(false);
|
||||||
|
getDialogsuccess();
|
||||||
}
|
}
|
||||||
Securitylocks.userOption++;
|
|
||||||
MyTools.settest(entity.getApppakname(), locksuccess);
|
|
||||||
entity.setLocksuccess(isChecked);
|
|
||||||
MyTools.RUNIO(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
SecurityLockDataBase.getSecurityLockDataBase().getsecurityLockDAO().Updataentity(entity);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
private void getDialogsuccess() {
|
||||||
|
boolean isSelect = LockPremission.privacysuccess(mycon);
|
||||||
|
boolean isEnable = LockPremission.showonsuccess(mycon);
|
||||||
|
Log.d("----eable","eable"+isEnable);
|
||||||
|
if (isSelect && isEnable) {
|
||||||
|
//goApply();
|
||||||
|
} else {
|
||||||
|
if (dialog == null) {
|
||||||
|
dialog = new PermissionDialog(mycon);
|
||||||
|
}
|
||||||
|
dialog.show(mycon.getSupportFragmentManager(), "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,6 @@ class MsgDialog(private var message: String) : DialogFragment() {
|
|||||||
dismiss()
|
dismiss()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,7 @@ package com.lc.myapplication.security.locks.dialog;
|
|||||||
|
|
||||||
import android.app.Dialog;
|
import android.app.Dialog;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.graphics.drawable.ColorDrawable;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.text.Layout;
|
import android.text.Layout;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
@ -39,17 +40,13 @@ public class PermissionDialog extends DialogFragment {
|
|||||||
|
|
||||||
private void initdialog() {
|
private void initdialog() {
|
||||||
Window window = getDialog().getWindow();
|
Window window = getDialog().getWindow();
|
||||||
|
window.setBackgroundDrawableResource(R.color.no_color);
|
||||||
WindowManager.LayoutParams wl = window.getAttributes();
|
WindowManager.LayoutParams wl = window.getAttributes();
|
||||||
wl.gravity = Gravity.BOTTOM;
|
wl.gravity = Gravity.BOTTOM;
|
||||||
wl.height = WindowManager.LayoutParams.WRAP_CONTENT;
|
wl.height = WindowManager.LayoutParams.WRAP_CONTENT;
|
||||||
wl.width = WindowManager.LayoutParams.MATCH_PARENT;
|
wl.width = WindowManager.LayoutParams.MATCH_PARENT;
|
||||||
window.setAttributes(wl);
|
window.setAttributes(wl);
|
||||||
if (privacysuccess && showonsuccess){
|
setCancelable(true);
|
||||||
setCancelable(true);
|
|
||||||
}else {
|
|
||||||
setCancelable(false);
|
|
||||||
}
|
|
||||||
permissionDialogBinding.dialogFra.setVisibility(View.VISIBLE);
|
|
||||||
permissionDialogBinding.dialogButton1.setOnClickListener(new View.OnClickListener() {
|
permissionDialogBinding.dialogButton1.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
|||||||
@ -2,6 +2,7 @@ package com.lc.myapplication.security.locks.dialog;
|
|||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.graphics.drawable.ColorDrawable;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
@ -39,8 +40,8 @@ public class SettingDialog extends DialogFragment {
|
|||||||
|
|
||||||
private void initdialog() {
|
private void initdialog() {
|
||||||
Window window = getDialog().getWindow();
|
Window window = getDialog().getWindow();
|
||||||
window.setBackgroundDrawableResource(R.drawable.setting_dg);
|
getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
|
||||||
window.getDecorView().setPadding(32, 20, 32, 60);
|
window.getDecorView().setPadding(0, 10, 0, 0);
|
||||||
WindowManager.LayoutParams wl = window.getAttributes();
|
WindowManager.LayoutParams wl = window.getAttributes();
|
||||||
wl.gravity = Gravity.BOTTOM;
|
wl.gravity = Gravity.BOTTOM;
|
||||||
wl.height = WindowManager.LayoutParams.WRAP_CONTENT;
|
wl.height = WindowManager.LayoutParams.WRAP_CONTENT;
|
||||||
@ -57,13 +58,32 @@ public class SettingDialog extends DialogFragment {
|
|||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
settingDialogBinding.setDialogShare.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
Intent sharedIntent = new Intent();
|
||||||
|
sharedIntent.setAction(Intent.ACTION_SEND);
|
||||||
|
sharedIntent.setType("text/*");
|
||||||
|
sharedIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.share_app)); //设置要分享的内容
|
||||||
|
startActivity(Intent.createChooser(sharedIntent, "Share"));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
settingDialogBinding.setDialogRate.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
String url = getString(R.string.share_app);
|
||||||
|
Intent intent2 = new Intent(Intent.ACTION_VIEW);
|
||||||
|
intent2.setData(Uri.parse(url));
|
||||||
|
startActivity(intent2);
|
||||||
|
}
|
||||||
|
});
|
||||||
settingDialogBinding.setDialogPrivacy.setOnClickListener(new View.OnClickListener() {
|
settingDialogBinding.setDialogPrivacy.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
String url = getString(R.string.url_privacy);
|
String url = getString(R.string.url_privacy);
|
||||||
Intent intent2 = new Intent(Intent.ACTION_VIEW);
|
Intent intent3 = new Intent(Intent.ACTION_VIEW);
|
||||||
intent2.setData(Uri.parse(url));
|
intent3.setData(Uri.parse(url));
|
||||||
startActivity(intent2);
|
startActivity(intent3);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,7 +52,7 @@ public class DrawInputView extends FrameLayout {
|
|||||||
bottomInputadapter.setBottomClick(new BottomnumberClick() {
|
bottomInputadapter.setBottomClick(new BottomnumberClick() {
|
||||||
@Override
|
@Override
|
||||||
public void numberClick(String number) {
|
public void numberClick(String number) {
|
||||||
if (my_code_top.length() > 4){
|
if (my_code_top.length() >= 4){
|
||||||
my_code_top.delete(0,my_code_top.length());
|
my_code_top.delete(0,my_code_top.length());
|
||||||
}else {
|
}else {
|
||||||
my_code_top.append(number);
|
my_code_top.append(number);
|
||||||
|
|||||||
@ -14,8 +14,8 @@ public interface SecurityLockDAO {
|
|||||||
@Query("select * from lock_table where apppakname=:apppakname")
|
@Query("select * from lock_table where apppakname=:apppakname")
|
||||||
SecurityLockEntity QueryPackname(String apppakname);
|
SecurityLockEntity QueryPackname(String apppakname);
|
||||||
|
|
||||||
@Query("select * from lock_table where apppakname LIKE :apppakname")
|
@Query("SELECT * FROM lock_table WHERE apppakname LIKE '%' || :apppakname || '%' ")
|
||||||
SecurityLockEntity QueryByInputName(String apppakname);
|
List<SecurityLockEntity> QueryByInputName(String apppakname);
|
||||||
@Query("delete from lock_table where apppakname=:apppakname")
|
@Query("delete from lock_table where apppakname=:apppakname")
|
||||||
void DeleteEntityByName(String apppakname);
|
void DeleteEntityByName(String apppakname);
|
||||||
@Insert(onConflict = OnConflictStrategy.IGNORE)
|
@Insert(onConflict = OnConflictStrategy.IGNORE)
|
||||||
|
|||||||
@ -0,0 +1,6 @@
|
|||||||
|
package com.lc.myapplication.security.locks.max;
|
||||||
|
|
||||||
|
public interface onAdAfterAction {
|
||||||
|
|
||||||
|
void onAction();
|
||||||
|
}
|
||||||
@ -17,16 +17,20 @@ import android.text.TextUtils;
|
|||||||
import android.util.ArraySet;
|
import android.util.ArraySet;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
import com.bytedance.frameworks.encryptor.BuildConfig;
|
||||||
import com.lc.myapplication.security.locks.lockroom.SecurityLockDataBase;
|
import com.lc.myapplication.security.locks.lockroom.SecurityLockDataBase;
|
||||||
import com.lc.myapplication.security.locks.lockroom.SecurityLockEntity;
|
import com.lc.myapplication.security.locks.lockroom.SecurityLockEntity;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
public class AppsManager {
|
public class AppsManager {
|
||||||
|
|
||||||
|
|
||||||
public static Set<SecurityLockEntity> queryapps(Context context){
|
public static Set<SecurityLockEntity> queryapps(Context context){
|
||||||
|
String packageName = BuildConfig.APPLICATION_ID;
|
||||||
Set<SecurityLockEntity> entitieslist = new ArraySet<>();//set保证存储元素不重复
|
Set<SecurityLockEntity> entitieslist = new ArraySet<>();//set保证存储元素不重复
|
||||||
Intent intent = new Intent(Intent.ACTION_MAIN,null);
|
Intent intent = new Intent(Intent.ACTION_MAIN,null);
|
||||||
intent.addCategory(Intent.CATEGORY_LAUNCHER);
|
intent.addCategory(Intent.CATEGORY_LAUNCHER);
|
||||||
@ -39,6 +43,7 @@ public class AppsManager {
|
|||||||
}
|
}
|
||||||
SecurityLockEntity securityLockEntity = new SecurityLockEntity();
|
SecurityLockEntity securityLockEntity = new SecurityLockEntity();
|
||||||
securityLockEntity.setApppakname(packname);
|
securityLockEntity.setApppakname(packname);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ApplicationInfo applicationInfo = packageManager.getApplicationInfo(packname,PackageManager.GET_UNINSTALLED_PACKAGES);
|
ApplicationInfo applicationInfo = packageManager.getApplicationInfo(packname,PackageManager.GET_UNINSTALLED_PACKAGES);
|
||||||
CharSequence applicationLabel = packageManager.getApplicationLabel(applicationInfo);//获取应用程序的名称
|
CharSequence applicationLabel = packageManager.getApplicationLabel(applicationInfo);//获取应用程序的名称
|
||||||
|
|||||||
@ -78,7 +78,6 @@ public class LockAction {
|
|||||||
if (myServiceViewBinding.getRoot().getWindowToken() == null) {
|
if (myServiceViewBinding.getRoot().getWindowToken() == null) {
|
||||||
manager.addView(myServiceViewBinding.getRoot(), layParams);
|
manager.addView(myServiceViewBinding.getRoot(), layParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -9,6 +9,7 @@ public class MeValues {
|
|||||||
public static final String DB_NAME = "db_name";
|
public static final String DB_NAME = "db_name";
|
||||||
|
|
||||||
public static String KEYCODE_TYPE = "password_type";
|
public static String KEYCODE_TYPE = "password_type";
|
||||||
|
public static String KEYCODE_FROM = "password_from";
|
||||||
public static String sh_password = "share_password";
|
public static String sh_password = "share_password";
|
||||||
public static final String FIRST_KEY = "first key";
|
public static final String FIRST_KEY = "first key";
|
||||||
|
|
||||||
|
|||||||
18
app/src/main/res/drawable/dialog_view_bg.xml
Normal file
18
app/src/main/res/drawable/dialog_view_bg.xml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<vector
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:aapt="http://schemas.android.com/aapt"
|
||||||
|
android:width="98.33dp"
|
||||||
|
android:height="111dp"
|
||||||
|
android:viewportWidth="98.33"
|
||||||
|
android:viewportHeight="111"
|
||||||
|
>
|
||||||
|
<group>
|
||||||
|
<clip-path
|
||||||
|
android:pathData="M24 0H74.3333C87.5882 0 98.3333 10.7452 98.3333 24V87C98.3333 100.255 87.5882 111 74.3333 111H24C10.7452 111 0 100.255 0 87V24C0 10.7452 10.7452 0 24 0Z"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
android:pathData="M0 0V111H98.3333V0"
|
||||||
|
android:fillColor="#EFEFEF"
|
||||||
|
/>
|
||||||
|
</group>
|
||||||
|
</vector>
|
||||||
18
app/src/main/res/drawable/rearch_bg.xml
Normal file
18
app/src/main/res/drawable/rearch_bg.xml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<vector
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:aapt="http://schemas.android.com/aapt"
|
||||||
|
android:width="327dp"
|
||||||
|
android:height="56dp"
|
||||||
|
android:viewportWidth="327"
|
||||||
|
android:viewportHeight="56"
|
||||||
|
>
|
||||||
|
<group>
|
||||||
|
<clip-path
|
||||||
|
android:pathData="M28 0H299C314.464 0 327 12.536 327 28C327 43.464 314.464 56 299 56H28C12.536 56 0 43.464 0 28C0 12.536 12.536 0 28 0Z"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
android:pathData="M0 0V56H327V0"
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
/>
|
||||||
|
</group>
|
||||||
|
</vector>
|
||||||
26
app/src/main/res/drawable/search_app.xml
Normal file
26
app/src/main/res/drawable/search_app.xml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:pathData="M10.5,19C15.194,19 19,15.194 19,10.5C19,5.806 15.194,2 10.5,2C5.806,2 2,5.806 2,10.5C2,15.194 5.806,19 10.5,19Z"
|
||||||
|
android:strokeLineJoin="round"
|
||||||
|
android:strokeWidth="2"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#1F252E"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M13.329,7.172C12.605,6.448 11.605,6 10.5,6C9.396,6 8.396,6.448 7.672,7.172"
|
||||||
|
android:strokeLineJoin="round"
|
||||||
|
android:strokeWidth="2"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#1F252E"
|
||||||
|
android:strokeLineCap="round"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M16.611,16.611L20.854,20.854"
|
||||||
|
android:strokeLineJoin="round"
|
||||||
|
android:strokeWidth="2"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#1F252E"
|
||||||
|
android:strokeLineCap="round"/>
|
||||||
|
</vector>
|
||||||
26
app/src/main/res/drawable/search_src.xml
Normal file
26
app/src/main/res/drawable/search_src.xml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:pathData="M10.5,19C15.194,19 19,15.194 19,10.5C19,5.806 15.194,2 10.5,2C5.806,2 2,5.806 2,10.5C2,15.194 5.806,19 10.5,19Z"
|
||||||
|
android:strokeLineJoin="round"
|
||||||
|
android:strokeWidth="2"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#E2E2E2"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M13.329,7.172C12.605,6.448 11.605,6 10.5,6C9.396,6 8.396,6.448 7.672,7.172"
|
||||||
|
android:strokeLineJoin="round"
|
||||||
|
android:strokeWidth="2"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#E2E2E2"
|
||||||
|
android:strokeLineCap="round"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M16.611,16.611L20.854,20.854"
|
||||||
|
android:strokeLineJoin="round"
|
||||||
|
android:strokeWidth="2"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#E2E2E2"
|
||||||
|
android:strokeLineCap="round"/>
|
||||||
|
</vector>
|
||||||
20
app/src/main/res/drawable/set_dialog_rate.xml
Normal file
20
app/src/main/res/drawable/set_dialog_rate.xml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="21dp"
|
||||||
|
android:height="21dp"
|
||||||
|
android:viewportWidth="21"
|
||||||
|
android:viewportHeight="21">
|
||||||
|
<path
|
||||||
|
android:pathData="M11.229,17.984L13.506,12.988L18.793,11.438L14.724,7.738L14.877,2.254L10.084,4.963L4.892,3.124L6,8.498L2.638,12.845L8.115,13.458L11.229,17.984Z"
|
||||||
|
android:strokeLineJoin="round"
|
||||||
|
android:strokeWidth="1.5"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#1F252E"
|
||||||
|
android:strokeLineCap="round"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M15.907,15.357L19.241,18.676"
|
||||||
|
android:strokeLineJoin="round"
|
||||||
|
android:strokeWidth="1.5"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#1F252E"
|
||||||
|
android:strokeLineCap="round"/>
|
||||||
|
</vector>
|
||||||
27
app/src/main/res/drawable/set_dialog_share.xml
Normal file
27
app/src/main/res/drawable/set_dialog_share.xml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="21dp"
|
||||||
|
android:height="21dp"
|
||||||
|
android:viewportWidth="21"
|
||||||
|
android:viewportHeight="21">
|
||||||
|
<path
|
||||||
|
android:pathData="M17.999,16.168V17.835H2.999V16.168"
|
||||||
|
android:strokeLineJoin="round"
|
||||||
|
android:strokeWidth="1.5"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#1F252E"
|
||||||
|
android:strokeLineCap="round"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M12.999,2.834L17.166,7.001L12.999,11.167"
|
||||||
|
android:strokeLineJoin="round"
|
||||||
|
android:strokeWidth="1.5"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#1F252E"
|
||||||
|
android:strokeLineCap="round"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M17.166,7C8.832,7 2.999,8.25 2.999,13.667"
|
||||||
|
android:strokeLineJoin="round"
|
||||||
|
android:strokeWidth="1.5"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#1F252E"
|
||||||
|
android:strokeLineCap="round"/>
|
||||||
|
</vector>
|
||||||
25
app/src/main/res/drawable/set_dialog_version.xml
Normal file
25
app/src/main/res/drawable/set_dialog_version.xml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="21dp"
|
||||||
|
android:height="21dp"
|
||||||
|
android:viewportWidth="21"
|
||||||
|
android:viewportHeight="21">
|
||||||
|
<path
|
||||||
|
android:pathData="M18.834,3.668H2.167V16.168H8.417L10.5,18.251L12.584,16.168H18.834V3.668Z"
|
||||||
|
android:strokeLineJoin="round"
|
||||||
|
android:strokeWidth="1.5"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#1F252E"
|
||||||
|
android:strokeLineCap="round"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M10.5,9.918V13.668"
|
||||||
|
android:strokeWidth="1.5"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#1F252E"
|
||||||
|
android:strokeLineCap="round"/>
|
||||||
|
<path
|
||||||
|
android:pathData="M10.5,7V7.417"
|
||||||
|
android:strokeWidth="1.5"
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:strokeColor="#1F252E"
|
||||||
|
android:strokeLineCap="round"/>
|
||||||
|
</vector>
|
||||||
@ -24,6 +24,16 @@
|
|||||||
android:background="@drawable/main_set_bg"
|
android:background="@drawable/main_set_bg"
|
||||||
android:padding="20dp"
|
android:padding="20dp"
|
||||||
android:src="@drawable/set_src" />
|
android:src="@drawable/set_src" />
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/main_sourch"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_marginTop="30dp"
|
||||||
|
android:background="@drawable/main_set_bg"
|
||||||
|
android:padding="20dp"
|
||||||
|
android:layout_marginEnd="30dp"
|
||||||
|
android:src="@drawable/search_app" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/main_text1"
|
android:id="@+id/main_text1"
|
||||||
@ -44,95 +54,102 @@
|
|||||||
android:text="@string/text"
|
android:text="@string/text"
|
||||||
android:textSize="17sp" />
|
android:textSize="17sp" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/main_re_lay1"
|
android:id="@+id/main_re_lay1"
|
||||||
android:layout_marginTop="50dp"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="50dp">
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/main_re1"
|
android:id="@+id/main_re1"
|
||||||
android:padding="24dp"
|
android:layout_width="327dp"
|
||||||
|
android:layout_height="104dp"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
android:background="@drawable/main_re1"
|
android:background="@drawable/main_re1"
|
||||||
android:layout_width="327dp"
|
android:padding="24dp">
|
||||||
android:layout_height="104dp">
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/main_re_text1"
|
android:id="@+id/main_re_text1"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/main_applock"
|
android:text="@string/main_applock"
|
||||||
android:textStyle="bold"
|
android:textSize="24sp"
|
||||||
android:textSize="24sp"/>
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_below="@+id/main_re_text1"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/main_alllock"/>
|
android:layout_below="@+id/main_re_text1"
|
||||||
|
android:text="@string/main_alllock" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/main_re_image1"
|
android:id="@+id/main_re_image1"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:background="@drawable/main_re_ig1"
|
android:background="@drawable/main_re_ig1"
|
||||||
android:src="@drawable/main_re_src"
|
android:padding="10dp"
|
||||||
android:padding="10dp"/>
|
android:src="@drawable/main_re_src" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
<RelativeLayout
|
<LinearLayout
|
||||||
android:id="@+id/main_re2_lay1"
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@+id/main_re1"
|
android:layout_below="@+id/main_re1"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="16dp"
|
||||||
android:layout_width="match_parent"
|
android:gravity="center_horizontal"
|
||||||
android:paddingStart="10dp"
|
android:orientation="horizontal">
|
||||||
android:paddingEnd="10dp"
|
<RelativeLayout
|
||||||
android:layout_height="wrap_content">
|
android:id="@+id/main_re2_lay1"
|
||||||
<RelativeLayout
|
|
||||||
android:padding="20dp"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:background="@drawable/mian_re2_bg">
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/main_re2_image1"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/main_re_ig1"
|
android:background="@drawable/mian_re2_bg"
|
||||||
android:src="@drawable/main_re_tuijian_src"
|
android:padding="20dp">
|
||||||
android:padding="10dp"/>
|
<ImageView
|
||||||
<TextView
|
android:id="@+id/main_re2_image1"
|
||||||
android:layout_below="@+id/main_re2_image1"
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@drawable/main_re_ig1"
|
||||||
|
android:padding="10dp"
|
||||||
|
android:src="@drawable/main_re_tuijian_src" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_below="@+id/main_re2_image1"
|
||||||
|
android:layout_marginTop="40dp"
|
||||||
|
android:text="@string/tuijian"
|
||||||
|
android:textSize="19sp"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/main_re2_lay2"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="40dp"
|
android:layout_marginStart="20dp"
|
||||||
android:textStyle="bold"
|
android:background="@drawable/mian_re2_bg"
|
||||||
android:text="@string/tuijian"
|
android:padding="20dp">
|
||||||
android:textSize="19sp"/>
|
|
||||||
</RelativeLayout>
|
<ImageView
|
||||||
<RelativeLayout
|
android:id="@+id/main_re2_image2"
|
||||||
android:padding="20dp"
|
android:layout_width="wrap_content"
|
||||||
android:id="@+id/main_re2_lay2"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentEnd="true"
|
android:background="@drawable/main_re_ig1"
|
||||||
android:layout_width="wrap_content"
|
android:padding="10dp"
|
||||||
android:layout_height="wrap_content"
|
android:src="@drawable/main_re_allapp_src" />
|
||||||
android:background="@drawable/mian_re2_bg">
|
|
||||||
<ImageView
|
<TextView
|
||||||
android:id="@+id/main_re2_image2"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_below="@+id/main_re2_image2"
|
||||||
android:background="@drawable/main_re_ig1"
|
android:layout_marginTop="40dp"
|
||||||
android:src="@drawable/main_re_allapp_src"
|
android:text="@string/all_app"
|
||||||
android:padding="10dp"/>
|
android:textSize="19sp"
|
||||||
<TextView
|
android:textStyle="bold" />
|
||||||
android:layout_below="@+id/main_re2_image2"
|
</RelativeLayout>
|
||||||
android:layout_width="wrap_content"
|
</LinearLayout>
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="40dp"
|
|
||||||
android:text="@string/all_app"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:textSize="19sp"/>
|
|
||||||
</RelativeLayout>
|
|
||||||
</RelativeLayout>
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -38,9 +38,11 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:padding="10dp"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:background="@drawable/ok_bg"
|
android:background="@drawable/ok_bg"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:textSize="24sp"/>
|
android:textSize="20sp"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
55
app/src/main/res/layout/activity_search.xml
Normal file
55
app/src/main/res/layout/activity_search.xml
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:id="@+id/main"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@mipmap/main_bg2"
|
||||||
|
tools:context=".activity.SearchActivity">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/search_apps_back"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:layout_marginTop="40dp"
|
||||||
|
android:layout_marginStart="24dp"
|
||||||
|
android:background="@drawable/image_back_bg"
|
||||||
|
android:src="@drawable/image_back_src"/>
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_below="@+id/search_apps_back"
|
||||||
|
android:id="@+id/search_top"
|
||||||
|
android:layout_width="327dp"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:background="@drawable/rearch_bg"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:paddingLeft="16dp"
|
||||||
|
android:paddingRight="16dp"
|
||||||
|
android:layout_height="50dp">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/rearch_touch"
|
||||||
|
android:layout_width="20dp"
|
||||||
|
android:layout_height="20dp"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:background="@drawable/search_src"/>
|
||||||
|
<EditText
|
||||||
|
android:id="@+id/rearch_edit_text"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_toRightOf="@+id/rearch_touch"
|
||||||
|
android:layout_marginStart="10dp"
|
||||||
|
android:layout_height="match_parent"/>
|
||||||
|
</RelativeLayout>
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_below="@+id/search_top"
|
||||||
|
android:paddingLeft="10dp"
|
||||||
|
android:paddingRight="10dp"
|
||||||
|
android:layout_marginTop="20dp">
|
||||||
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:id="@+id/rearch_recycle_view"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"/>
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
@ -1,11 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:paddingLeft="24dp"
|
||||||
|
android:paddingRight="24dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
app:cardCornerRadius="24dp"
|
||||||
android:id="@+id/dialog_fra"
|
android:layout_gravity="center_horizontal"
|
||||||
android:background="@color/white"
|
tools:context=".activity.MainActivity"
|
||||||
tools:context=".activity.MainActivity">
|
android:layout_height="wrap_content">
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:paddingLeft="10dp"
|
android:paddingLeft="10dp"
|
||||||
@ -47,4 +50,4 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@mipmap/dialog_bg" />
|
android:background="@mipmap/dialog_bg" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</FrameLayout>
|
</androidx.cardview.widget.CardView>
|
||||||
30
app/src/main/res/layout/rearch_recycle_view.xml
Normal file
30
app/src/main/res/layout/rearch_recycle_view.xml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="101dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:padding="16dp"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
|
android:background="@drawable/locked_recycle_bg">
|
||||||
|
<ImageView
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:id="@+id/rearch_image"
|
||||||
|
android:layout_width="44dp"
|
||||||
|
android:layout_height="44dp"/>
|
||||||
|
<TextView
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:id="@+id/rearch_name"
|
||||||
|
android:layout_marginTop="9dp"
|
||||||
|
android:layout_below="@+id/rearch_image"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="60dp"/>
|
||||||
|
<Switch
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:id="@+id/rearch_re_switch"
|
||||||
|
android:thumb="@drawable/thumb_selector"
|
||||||
|
android:track="@drawable/track_selector"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_below="@+id/rearch_name"
|
||||||
|
tools:ignore="UseSwitchCompatOrMaterialXml" />
|
||||||
|
</RelativeLayout>
|
||||||
@ -1,14 +1,21 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="375dp"
|
android:paddingLeft="20dp"
|
||||||
android:layout_height="239dp"
|
android:paddingRight="20dp"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingBottom="16dp"
|
||||||
|
app:cardCornerRadius="24dp"
|
||||||
android:id="@+id/setdialog_fra"
|
android:id="@+id/setdialog_fra"
|
||||||
tools:context=".activity.MainActivity">
|
tools:context=".activity.MainActivity"
|
||||||
|
android:layout_gravity="center_horizontal">
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:paddingLeft="10dp"
|
android:paddingLeft="10dp"
|
||||||
android:paddingRight="10dp"
|
android:paddingRight="10dp"
|
||||||
|
android:paddingBottom="16dp"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/main_dialog_text"
|
android:id="@+id/main_dialog_text"
|
||||||
@ -20,50 +27,144 @@
|
|||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:text="@string/setting_dialog"
|
android:text="@string/setting_dialog"
|
||||||
android:layout_centerHorizontal="true"/>
|
android:layout_centerHorizontal="true"/>
|
||||||
<RelativeLayout
|
|
||||||
android:id="@+id/set_dialog_change"
|
|
||||||
android:layout_width="147.5dp"
|
|
||||||
android:layout_marginTop="70dp"
|
|
||||||
android:paddingTop="24dp"
|
|
||||||
android:paddingBottom="24dp"
|
|
||||||
android:layout_height="wrap_content">
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/set_dialog1_image"
|
|
||||||
android:layout_width="32dp"
|
|
||||||
android:layout_height="32dp"
|
|
||||||
android:layout_centerHorizontal="true"
|
|
||||||
android:background="@drawable/set_bg"
|
|
||||||
android:src="@drawable/set_src1"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_centerHorizontal="true"
|
|
||||||
android:layout_below="@+id/set_dialog1_image"
|
|
||||||
android:layout_marginTop="16dp"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:text="@string/change_password"
|
|
||||||
android:layout_height="wrap_content"/>
|
|
||||||
</RelativeLayout>
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/set_dialog_privacy"
|
android:id="@+id/set_dialog_change"
|
||||||
android:layout_width="147.5dp"
|
android:layout_width="105dp"
|
||||||
android:paddingTop="24dp"
|
|
||||||
android:paddingBottom="24dp"
|
|
||||||
android:layout_marginTop="70dp"
|
android:layout_marginTop="70dp"
|
||||||
android:layout_alignParentEnd="true"
|
android:paddingTop="16dp"
|
||||||
android:layout_height="wrap_content">
|
android:paddingBottom="10dp"
|
||||||
|
android:paddingRight="16dp"
|
||||||
|
android:paddingLeft="16dp"
|
||||||
|
android:background="@drawable/dialog_view_bg"
|
||||||
|
android:layout_height="111dp">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/set_dialog1_image"
|
||||||
|
android:layout_width="32dp"
|
||||||
|
android:layout_height="32dp"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:background="@drawable/set_bg"
|
||||||
|
android:src="@drawable/set_src1"/>
|
||||||
|
<TextView
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:layout_below="@+id/set_dialog1_image"
|
||||||
|
android:layout_marginTop="14dp"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:text="@string/change_password"
|
||||||
|
android:layout_height="wrap_content"/>
|
||||||
|
</RelativeLayout>
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/set_dialog_share"
|
||||||
|
android:layout_width="105dp"
|
||||||
|
android:layout_marginTop="70dp"
|
||||||
|
android:paddingTop="16dp"
|
||||||
|
android:paddingBottom="16dp"
|
||||||
|
android:paddingRight="24dp"
|
||||||
|
android:background="@drawable/dialog_view_bg"
|
||||||
|
android:paddingLeft="16dp"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:layout_height="111dp">
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/set_dialog2_image"
|
android:id="@+id/set_dialog2_image"
|
||||||
android:layout_width="32dp"
|
android:layout_width="32dp"
|
||||||
android:layout_height="32dp"
|
android:layout_height="32dp"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
android:background="@drawable/set_bg"
|
android:background="@drawable/set_bg"
|
||||||
|
android:src="@drawable/set_dialog_share"/>
|
||||||
|
<TextView
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:layout_below="@+id/set_dialog2_image"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:text="@string/app_share"
|
||||||
|
android:layout_height="wrap_content"/>
|
||||||
|
</RelativeLayout>
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/set_dialog_rate"
|
||||||
|
android:layout_width="105dp"
|
||||||
|
android:layout_marginTop="70dp"
|
||||||
|
android:paddingTop="16dp"
|
||||||
|
android:paddingBottom="16dp"
|
||||||
|
android:paddingRight="24dp"
|
||||||
|
android:paddingLeft="16dp"
|
||||||
|
android:background="@drawable/dialog_view_bg"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_height="111dp">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/set_dialog3_image"
|
||||||
|
android:layout_width="32dp"
|
||||||
|
android:layout_height="32dp"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:background="@drawable/set_bg"
|
||||||
|
android:src="@drawable/set_dialog_rate"/>
|
||||||
|
<TextView
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:layout_below="@+id/set_dialog3_image"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:text="@string/app_rate"
|
||||||
|
android:layout_height="wrap_content"/>
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/set_dialog_privacy"
|
||||||
|
android:layout_width="105dp"
|
||||||
|
android:paddingTop="16dp"
|
||||||
|
android:paddingBottom="16dp"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:background="@drawable/dialog_view_bg"
|
||||||
|
android:layout_below="@+id/set_dialog_change"
|
||||||
|
android:layout_height="111dp">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/set_dialog4_image"
|
||||||
|
android:layout_width="32dp"
|
||||||
|
android:layout_height="32dp"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:background="@drawable/set_bg"
|
||||||
android:src="@drawable/set_src2"/>
|
android:src="@drawable/set_src2"/>
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_below="@+id/set_dialog2_image"
|
android:layout_below="@+id/set_dialog4_image"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="16dp"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
android:text="@string/privacy"
|
android:text="@string/privacy"
|
||||||
android:layout_height="wrap_content"/>
|
android:layout_height="wrap_content"/>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/set_dialog_version"
|
||||||
|
android:layout_width="105dp"
|
||||||
|
android:paddingTop="16dp"
|
||||||
|
android:paddingBottom="10dp"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:background="@drawable/dialog_view_bg"
|
||||||
|
android:layout_below="@+id/set_dialog_change"
|
||||||
|
android:layout_height="111dp">
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/set_dialog5_image"
|
||||||
|
android:layout_width="32dp"
|
||||||
|
android:layout_height="32dp"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:background="@drawable/set_bg"
|
||||||
|
android:src="@drawable/set_dialog_version"/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/set_dialog5_text"
|
||||||
|
android:layout_below="@+id/set_dialog5_image"
|
||||||
|
android:layout_marginTop="16dp"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:text="@string/app_version"
|
||||||
|
android:layout_height="wrap_content"/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/app_version_num"
|
||||||
|
android:layout_width="31dp"
|
||||||
|
android:layout_height="15dp"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:layout_marginTop="2dp"
|
||||||
|
android:layout_below="@+id/set_dialog5_text"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:text="1.0.2"
|
||||||
|
android:textSize="10sp"
|
||||||
|
android:textColor="@color/app_version_num"/>
|
||||||
|
</RelativeLayout>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</FrameLayout>
|
</androidx.cardview.widget.CardView>
|
||||||
@ -4,4 +4,6 @@
|
|||||||
<color name="white">#FFFFFFFF</color>
|
<color name="white">#FFFFFFFF</color>
|
||||||
<color name="color_bg">#E5FCFD</color>
|
<color name="color_bg">#E5FCFD</color>
|
||||||
<color name="btn_color">#78f2ed</color>
|
<color name="btn_color">#78f2ed</color>
|
||||||
|
<color name="no_color">#00000000</color>
|
||||||
|
<color name="app_version_num">#B9B9B9</color>
|
||||||
</resources>
|
</resources>
|
||||||
@ -15,6 +15,7 @@
|
|||||||
<string name="passcode_next">next</string>
|
<string name="passcode_next">next</string>
|
||||||
<string name="passcode_goon">go on</string>
|
<string name="passcode_goon">go on</string>
|
||||||
<string name="passcode_change">change</string>
|
<string name="passcode_change">change</string>
|
||||||
|
<string name="not_switch">For safety reasons, it is not recommended to close</string>
|
||||||
<string name="ok">OK</string>
|
<string name="ok">OK</string>
|
||||||
<string name="code_not_same">The password is not the same twice</string>
|
<string name="code_not_same">The password is not the same twice</string>
|
||||||
<string name="change_success">Change to success</string>
|
<string name="change_success">Change to success</string>
|
||||||
@ -26,4 +27,8 @@
|
|||||||
<string name="privacy">Privacy Policy</string>
|
<string name="privacy">Privacy Policy</string>
|
||||||
<string name="not_key">Sorry,The password is not right!</string>
|
<string name="not_key">Sorry,The password is not right!</string>
|
||||||
<string name="url_privacy">https://sites.google.com/view/page-privacy-policy-</string>
|
<string name="url_privacy">https://sites.google.com/view/page-privacy-policy-</string>
|
||||||
|
<string name="app_share">Share</string>
|
||||||
|
<string name="app_rate">Rate</string>
|
||||||
|
<string name="app_version">Version</string>
|
||||||
|
<string name="share_app">https://play.google.com/store/apps/details?id=com.lc.applock.security.locks</string>
|
||||||
</resources>
|
</resources>
|
||||||
@ -20,6 +20,7 @@ dependencyResolutionManagement {
|
|||||||
maven("https://jitpack.io")
|
maven("https://jitpack.io")
|
||||||
maven { url = uri("https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea") }
|
maven { url = uri("https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea") }
|
||||||
maven { url = uri("https://artifact.bytedance.com/repository/pangle") }
|
maven { url = uri("https://artifact.bytedance.com/repository/pangle") }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user