version:1.3.9

fix:
update:优化退出界面
This commit is contained in:
2023-05-24 10:15:42 +08:00
parent 3e44bb0c63
commit c4f694f4de
25 changed files with 1080 additions and 264 deletions

View File

@@ -17,8 +17,8 @@ android {
minSdkVersion 24
targetSdkVersion 29
versionCode 28
versionName "1.3.6"
versionCode 31
versionName "1.3.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -81,22 +81,22 @@ android {
// signingConfig signingConfigs.iPlay50SE
// }
iPlay50SEDebug.initWith(debug)
iPlay50SEDebug {
versionNameSuffix "-debug"
debuggable true
signingConfig signingConfigs.tuixin
resValue "string", "app_name", "智慧课堂"
}
iPlay50SERelease.initWith(release)
iPlay50SERelease {
signingConfig signingConfigs.tuixin
resValue "string", "app_name", "智慧课堂"
}
// iPlay50SEDebug.initWith(debug)
// iPlay50SEDebug {
// versionNameSuffix "-debug"
// debuggable true
// signingConfig signingConfigs.tuixin
// resValue "string", "app_name", "学习课堂"
// }
//
// iPlay50SERelease.initWith(release)
// iPlay50SERelease {
// signingConfig signingConfigs.tuixin
// resValue "string", "app_name", "学习课堂"
// }
debug {
resValue "string", "app_name", "教育中心"
// resValue "string", "app_name", "学习课堂"
// 显示Log
versionNameSuffix "-debug"
minifyEnabled false
@@ -106,8 +106,8 @@ android {
applicationVariants.all { variant ->
variant.outputs.each { output ->
if (outputFile != null) {
def app_name = getResValues().get("app_name").value
def fileName = "${appName()}-${app_name}-${variant.versionCode}-V${variant.versionName}-${releaseTime()}-${buildType.name}.apk"
// def app_name = getResValues().get("app_name").value
def fileName = "${appName()}-${variant.versionCode}-V${variant.versionName}-${releaseTime()}-${buildType.name}.apk"
output.outputFileName = fileName
}
}
@@ -115,7 +115,7 @@ android {
}
release {
resValue "string", "app_name", "教育中心"
// resValue "string", "app_name", "学习课堂"
//混淆
minifyEnabled false
//Zipalign优化
@@ -129,8 +129,8 @@ android {
variant.outputs.each { output ->
def outputFile = ""
if (outputFile != null) {
def app_name = getResValues().get("app_name").value
def fileName = "${appName()}-${app_name}-${variant.versionCode}-V${variant.versionName}-${releaseTime()}-${buildType.name}.apk"
// def app_name = getResValues().get("app_name").value
def fileName = "${appName()}-${variant.versionCode}-V${variant.versionName}-${releaseTime()}-${buildType.name}.apk"
output.outputFileName = new File(outputFile, fileName)
}
}
@@ -144,6 +144,8 @@ dependencies {
compileOnly files('libs/framework.jar')
implementation project(path: ':niceimageview')
implementation project(path: ':FlycoTabLayoutZ_Lib')
implementation project(path: ':verification-view')
//保持1.3.1 更新会报错
implementation 'androidx.appcompat:appcompat:1.3.1'
@@ -216,7 +218,7 @@ dependencies {
implementation 'com.github.wseemann:FFmpegMediaMetadataRetriever-core:1.0.16'
implementation 'com.github.wseemann:FFmpegMediaMetadataRetriever-native:1.0.16'
//验证码输入
implementation 'com.jacktuotuo.customview:verificationcodeview:1.0.5'
// implementation 'com.jacktuotuo.customview:verificationcodeview:1.0.5'
}
preBuild {

View File

@@ -1,15 +1,17 @@
package com.uiui.zyos.activity;
import android.content.Context;
import android.media.AudioAttributes;
import android.media.SoundPool;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.provider.Settings;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
@@ -30,29 +32,29 @@ public class ScreenLockActivity extends BaseActivity {
private static final String TAG = ScreenLockActivity.class.getSimpleName();
@BindView(R.id.bt_0)
Button bt0;
TextView bt0;
@BindView(R.id.bt_1)
Button bt1;
TextView bt1;
@BindView(R.id.bt_2)
Button bt2;
TextView bt2;
@BindView(R.id.bt_3)
Button bt3;
TextView bt3;
@BindView(R.id.bt_4)
Button bt4;
TextView bt4;
@BindView(R.id.bt_5)
Button bt5;
TextView bt5;
@BindView(R.id.bt_6)
Button bt6;
TextView bt6;
@BindView(R.id.bt_7)
Button bt7;
TextView bt7;
@BindView(R.id.bt_8)
Button bt8;
TextView bt8;
@BindView(R.id.bt_9)
Button bt9;
TextView bt9;
@BindView(R.id.bt_del)
Button bt_del;
TextView bt_del;
@BindView(R.id.bt_confirm)
Button bt_confirm;
TextView bt_confirm;
@BindView(R.id.textView)
TextView textView;
@@ -63,10 +65,21 @@ public class ScreenLockActivity extends BaseActivity {
@BindView(R.id.icv)
VerificationCodeView codeView;
private SoundPool soundPool;
private int soundId;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
AudioAttributes attr = new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_GAME) // 设置音效使用场景
.setContentType(AudioAttributes.CONTENT_TYPE_MUSIC).build(); // 设置音效的类型
soundPool = new SoundPool.Builder().setAudioAttributes(attr) // 设置音效池的属性
.setMaxStreams(1) // 设置最多可容纳10个音频流
.build(); // ①
// load方法加载指定音频文件并返回所加载的音效ID
// 此处使用HashMap来管理这些音频流
soundId = soundPool.load(this, R.raw.click, 1);
}
@Override
@@ -88,7 +101,7 @@ public class ScreenLockActivity extends BaseActivity {
codeView.setInputCompleteListener(new VerificationCodeView.InputCompleteListener() {
@Override
public void inputComplete() {
checkPasswd();
}
@Override
@@ -107,24 +120,7 @@ public class ScreenLockActivity extends BaseActivity {
bt_confirm.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String content = codeView.getInputContent();
if (TextUtils.isEmpty(content)) {
return;
}
Log.e(TAG, "inputComplete: " + content);
String password = Settings.Global.getString(getContentResolver(), CommonConfig.DEFAULT_PASSWORD);
if ((!TextUtils.isEmpty(content) && !TextUtils.isEmpty(password))) {
if (password.equals(content)) {
exitDesktop();
} else {
tv_hint.setText("密码错误");
}
} else if (CommonConfig.DEFAULT_PASSWORD.equals(content)) {
exitDesktop();
} else {
// ToastUtil.show("密码错误");
tv_hint.setText("密码错误");
}
checkPasswd();
}
});
@@ -140,6 +136,38 @@ public class ScreenLockActivity extends BaseActivity {
bt9.setOnClickListener(view1 -> add(codeView, "9"));
}
private void checkPasswd() {
String content = codeView.getInputContent();
if (TextUtils.isEmpty(content) || content.length() != 6) {
return;
}
Log.e(TAG, "inputComplete: " + content);
String password = Settings.Global.getString(getContentResolver(), CommonConfig.DEFAULT_PASSWORD);
if ((!TextUtils.isEmpty(content) && !TextUtils.isEmpty(password))) {
if (password.equals(content)) {
exitDesktop();
} else {
setEmpty();
tv_hint.setText("密码错误");
}
} else if (CommonConfig.DEFAULT_PASSWORD.equals(content)) {
exitDesktop();
} else {
setEmpty();
tv_hint.setText("密码错误");
}
}
private void setEmpty() {
Handler.getMain().postDelayed(new Runnable() {
@Override
public void run() {
codeView.clearInputContent();
tv_hint.setText("");
}
}, 1000);
}
@Override
public void initData() {
@@ -150,15 +178,16 @@ public class ScreenLockActivity extends BaseActivity {
String oldText = codeView.getEditText().getText().toString();
Log.e(TAG, "add: " + oldText);
codeView.getEditText().setText(text);
soundPool.play(soundId, 1, 1, 0, 0, 1);
}
private void exitDesktop() {
RemoteManager.getInstance().setDefaultDesktop(ApkUtils.ANDROID_LAUNCHER3_PACKAGE_NAME);
if (Build.VERSION.SDK_INT> Build.VERSION_CODES.Q) {
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.Q) {
if (!ApkUtils.openPackage(this, ApkUtils.ANDROID_LAUNCHER3_PACKAGE_NAME, ApkUtils.ANDROID_LAUNCHER3_Quickstep_CLASS_NAME)) {
ApkUtils.gotoLauncher(this);
}
}else {
} else {
if (!ApkUtils.openPackage(this, ApkUtils.ANDROID_LAUNCHER3_PACKAGE_NAME, ApkUtils.ANDROID_LAUNCHER3_CLASS_NAME)) {
ApkUtils.gotoLauncher(this);
}

View File

@@ -79,14 +79,14 @@ public class MainService extends BaseService implements MainSContact.MainSView,
}
private void startJxwLauncher() {
ComponentName cn = new ComponentName(JxwPackageConfig.JXW_LAUNCHER_PACKAGE_NAME, JxwPackageConfig.JXW_LAUNCHER_CLASS_NAME);
Intent intent = new Intent();
intent.setComponent(cn);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
startForegroundService(intent);
} else {
startService(intent);
}
// ComponentName cn = new ComponentName(JxwPackageConfig.JXW_LAUNCHER_PACKAGE_NAME, JxwPackageConfig.JXW_LAUNCHER_CLASS_NAME);
// Intent intent = new Intent();
// intent.setComponent(cn);
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
// startForegroundService(intent);
// } else {
// startService(intent);
// }
}
private void unregisterReceiver() {

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 900 B

View File

@@ -4,65 +4,76 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/float_window_color">
android:background="@drawable/control_background">
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="退出系统"
android:textStyle="bold"
android:textColor="@color/white"
android:textSize="@dimen/sp_15"
<ImageView
android:id="@+id/imageView5"
android:layout_width="@dimen/dp_20"
android:layout_height="@dimen/dp_20"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:src="@drawable/icon_lock"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.065" />
app:layout_constraintVertical_bias="0.11" />
<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_16"
android:maxLines="1"
android:singleLine="true"
android:textColor="@color/white"
android:textSize="@dimen/sp_14"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView" />
app:layout_constraintBottom_toTopOf="@+id/ll_keyboard"
app:layout_constraintTop_toBottomOf="@+id/imageView5"
app:layout_constraintVertical_bias="0.347"
tools:layout_editor_absoluteX="0dp">
<com.tuo.customview.VerificationCodeView
android:id="@+id/icv"
android:layout_width="wrap_content"
android:layout_height="@dimen/sp_32"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/dp_16"
app:icv_et_bg_focus="@drawable/shape_icv_et_bg_focus1"
app:icv_et_bg_normal="@drawable/shape_icv_et_bg_normal1"
app:icv_et_divider_drawable="@drawable/shape_divider_identifying"
app:icv_et_number="6"
app:icv_et_pwd_radius="10dp"
app:icv_et_text_color="#000000"
app:icv_et_width="@dimen/sp_32"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView4" />
<com.tuo.customview.VerificationCodeView
android:id="@+id/icv"
android:layout_width="wrap_content"
android:layout_height="@dimen/sp_32"
android:layout_centerHorizontal="true"
app:icv_et_bg_focus="@color/transparent"
app:icv_et_bg_normal="@color/transparent"
app:icv_et_divider_drawable="@drawable/shape_divider_identifying"
app:icv_et_number="6"
app:icv_et_pwd="true"
app:icv_et_pwd_radius="@dimen/dp_4"
app:icv_et_text_color="@color/transparent"
app:icv_et_width="@dimen/sp_32"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_16"
android:text=""
android:textColor="@color/white"
android:textSize="@dimen/sp_12"
app:layout_constraintEnd_toEndOf="@+id/icv"
app:layout_constraintStart_toStartOf="@+id/icv"
app:layout_constraintTop_toBottomOf="@+id/icv" />
<TextView
android:id="@+id/tv_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_16"
android:text=""
android:textColor="@color/white"
android:textSize="@dimen/sp_11"
app:layout_constraintEnd_toEndOf="@+id/icv"
app:layout_constraintStart_toStartOf="@+id/icv"
app:layout_constraintTop_toBottomOf="@+id/icv" />
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_48"
android:layout_marginEnd="@dimen/dp_48"
android:gravity="center"
android:maxLines="2"
android:minLines="2"
android:text="退出系统"
android:textColor="@color/white"
android:textSize="@dimen/sp_14"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tv_hint" />
</androidx.constraintlayout.widget.ConstraintLayout>
<LinearLayout
android:id="@+id/ll_keyboard"
@@ -73,7 +84,8 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tv_hint">
app:layout_constraintTop_toBottomOf="@+id/imageView5"
app:layout_constraintVertical_bias="0.796">
<LinearLayout
android:layout_width="match_parent"
@@ -81,35 +93,35 @@
android:layout_weight="1"
android:orientation="horizontal">
<Button
<TextView
android:id="@+id/bt_1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="1"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
<Button
<TextView
android:id="@+id/bt_2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="2"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
<Button
<TextView
android:id="@+id/bt_3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="3"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
</LinearLayout>
<LinearLayout
@@ -118,35 +130,35 @@
android:layout_weight="1"
android:orientation="horizontal">
<Button
<TextView
android:id="@+id/bt_4"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="4"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
<Button
<TextView
android:id="@+id/bt_5"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="5"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
<Button
<TextView
android:id="@+id/bt_6"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="6"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
</LinearLayout>
<LinearLayout
@@ -155,35 +167,35 @@
android:layout_weight="1"
android:orientation="horizontal">
<Button
<TextView
android:id="@+id/bt_7"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="7"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
<Button
<TextView
android:id="@+id/bt_8"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="8"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
<Button
<TextView
android:id="@+id/bt_9"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="9"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
</LinearLayout>
<LinearLayout
@@ -192,34 +204,34 @@
android:layout_weight="1"
android:orientation="horizontal">
<Button
<TextView
android:id="@+id/bt_0"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="0"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
<Button
<TextView
android:id="@+id/bt_del"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="清除"
android:textColor="@color/white"
android:textSize="@dimen/sp_14" />
<Button
<TextView
android:id="@+id/bt_confirm"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="确认"
android:textColor="@color/white"
android:textSize="@dimen/sp_14" />
</LinearLayout>
</LinearLayout>

View File

@@ -1,79 +1,91 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/float_window_color">
android:background="@drawable/control_background">
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="退出系统"
android:textColor="@color/white"
android:textSize="24sp"
android:textStyle="bold"
<ImageView
android:id="@+id/imageView5"
android:layout_width="@dimen/dp_20"
android:layout_height="@dimen/dp_20"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
android:src="@drawable/icon_lock"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.219" />
app:layout_constraintVertical_bias="0.11" />
<TextView
android:id="@+id/textView4"
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_40"
android:layout_marginTop="@dimen/dp_16"
android:layout_marginEnd="@dimen/dp_40"
android:gravity="center"
android:maxLines="2"
android:textColor="@color/white"
android:textSize="@dimen/sp_14"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView" />
app:layout_constraintBottom_toTopOf="@+id/ll_keyboard"
app:layout_constraintTop_toBottomOf="@+id/imageView5"
app:layout_constraintVertical_bias="0.347"
tools:layout_editor_absoluteX="0dp">
<com.tuo.customview.VerificationCodeView
android:id="@+id/icv"
android:layout_width="wrap_content"
android:layout_height="@dimen/sp_32"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/dp_16"
app:icv_et_bg_focus="@drawable/shape_icv_et_bg_focus1"
app:icv_et_bg_normal="@drawable/shape_icv_et_bg_normal1"
app:icv_et_divider_drawable="@drawable/shape_divider_identifying"
app:icv_et_number="6"
app:icv_et_pwd_radius="10dp"
app:icv_et_text_color="#000000"
app:icv_et_width="@dimen/sp_32"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView4" />
<com.tuo.customview.VerificationCodeView
android:id="@+id/icv"
android:layout_width="wrap_content"
android:layout_height="@dimen/sp_32"
android:layout_centerHorizontal="true"
app:icv_et_bg_focus="@color/transparent"
app:icv_et_bg_normal="@color/transparent"
app:icv_et_divider_drawable="@drawable/shape_divider_identifying"
app:icv_et_number="6"
app:icv_et_pwd="true"
app:icv_et_pwd_radius="@dimen/dp_4"
app:icv_et_text_color="@color/transparent"
app:icv_et_width="@dimen/sp_32"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_16"
android:text=""
android:textColor="@color/white"
android:textSize="@dimen/sp_12"
app:layout_constraintEnd_toEndOf="@+id/icv"
app:layout_constraintStart_toStartOf="@+id/icv"
app:layout_constraintTop_toBottomOf="@+id/icv" />
<TextView
android:id="@+id/tv_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_16"
android:text=""
android:textColor="@color/white"
android:textSize="@dimen/sp_11"
app:layout_constraintEnd_toEndOf="@+id/icv"
app:layout_constraintStart_toStartOf="@+id/icv"
app:layout_constraintTop_toBottomOf="@+id/icv" />
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/dp_48"
android:layout_marginEnd="@dimen/dp_48"
android:gravity="center"
android:maxLines="2"
android:minLines="2"
android:text="退出系统"
android:textColor="@color/white"
android:textSize="@dimen/sp_14"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tv_hint" />
</androidx.constraintlayout.widget.ConstraintLayout>
<LinearLayout
android:id="@+id/ll_keyboard"
android:layout_width="@dimen/dp_200"
android:layout_height="@dimen/dp_200"
android:layout_marginBottom="@dimen/dp_32"
android:layout_height="@dimen/dp_160"
android:orientation="vertical"
android:visibility="visible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView5"
app:layout_constraintVertical_bias="0.796">
<LinearLayout
android:layout_width="match_parent"
@@ -81,35 +93,35 @@
android:layout_weight="1"
android:orientation="horizontal">
<Button
<TextView
android:id="@+id/bt_1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="1"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
<Button
<TextView
android:id="@+id/bt_2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="2"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
<Button
<TextView
android:id="@+id/bt_3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="3"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
</LinearLayout>
<LinearLayout
@@ -118,35 +130,35 @@
android:layout_weight="1"
android:orientation="horizontal">
<Button
<TextView
android:id="@+id/bt_4"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="4"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
<Button
<TextView
android:id="@+id/bt_5"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="5"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
<Button
<TextView
android:id="@+id/bt_6"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="6"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
</LinearLayout>
<LinearLayout
@@ -155,35 +167,35 @@
android:layout_weight="1"
android:orientation="horizontal">
<Button
<TextView
android:id="@+id/bt_7"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="7"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
<Button
<TextView
android:id="@+id/bt_8"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="8"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
<Button
<TextView
android:id="@+id/bt_9"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="9"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
</LinearLayout>
<LinearLayout
@@ -192,34 +204,34 @@
android:layout_weight="1"
android:orientation="horizontal">
<Button
<TextView
android:id="@+id/bt_0"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="0"
android:textSize="@dimen/sp_14" />
android:textColor="@color/white"
android:textSize="@dimen/sp_16" />
<Button
<TextView
android:id="@+id/bt_del"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="清除"
android:textColor="@color/white"
android:textSize="@dimen/sp_14" />
<Button
<TextView
android:id="@+id/bt_confirm"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="@dimen/dp_2"
android:layout_weight="1"
android:background="@drawable/shape_bt_bg"
android:gravity="center"
android:text="确认"
android:textColor="@color/white"
android:textSize="@dimen/sp_14" />
</LinearLayout>
</LinearLayout>

Binary file not shown.

View File

@@ -1,7 +1,5 @@
<resources>
<!-- <string name="app_name">教育中心</string>-->
<!-- <string name="app_name">智慧课堂</string>-->
<string name="app_name">学习课堂</string>
<string name="privacy_agreement"><u>隐私协议</u></string>
<string name="privacy_agreement_title">服务协议和隐私政策</string>
<string name="privacy_agreement_content">\t\t\t\t请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款包括但不限于为了向你提供即时通讯内容分享等服务