version:1.7.5
fix: update:增加使用手册二级页面
@@ -16,8 +16,8 @@ android {
|
|||||||
minSdkVersion 24
|
minSdkVersion 24
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
|
|
||||||
versionCode 66
|
versionCode 67
|
||||||
versionName "1.7.4"
|
versionName "1.7.5"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
@@ -29,6 +29,10 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dataBinding {
|
||||||
|
enabled true
|
||||||
|
}
|
||||||
|
|
||||||
lintOptions {
|
lintOptions {
|
||||||
checkReleaseBuilds false
|
checkReleaseBuilds false
|
||||||
// Or, if you prefer, you can continue to check for errors in release builds,
|
// Or, if you prefer, you can continue to check for errors in release builds,
|
||||||
|
|||||||
@@ -99,6 +99,14 @@
|
|||||||
android:name=".activity.ExitActivity"
|
android:name=".activity.ExitActivity"
|
||||||
android:configChanges="keyboardHidden"
|
android:configChanges="keyboardHidden"
|
||||||
android:launchMode="singleTask" />
|
android:launchMode="singleTask" />
|
||||||
|
<activity
|
||||||
|
android:name=".activity.ManualActivity"
|
||||||
|
android:launchMode="singleTask"
|
||||||
|
android:screenOrientation="portrait" />
|
||||||
|
<activity
|
||||||
|
android:name=".activity.AboutActivity"
|
||||||
|
android:launchMode="singleTask"
|
||||||
|
android:screenOrientation="portrait" />
|
||||||
|
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".receiver.BootReceiver"
|
android:name=".receiver.BootReceiver"
|
||||||
@@ -129,26 +137,26 @@
|
|||||||
android:enabled="true"
|
android:enabled="true"
|
||||||
android:exported="true" />
|
android:exported="true" />
|
||||||
|
|
||||||
<!-- <service-->
|
<!-- <service-->
|
||||||
<!-- android:name=".service.main.MainService"-->
|
<!-- android:name=".service.main.MainService"-->
|
||||||
<!-- android:enabled="true"-->
|
<!-- android:enabled="true"-->
|
||||||
<!-- android:exported="true">-->
|
<!-- android:exported="true">-->
|
||||||
<!-- <intent-filter android:priority="1000">-->
|
<!-- <intent-filter android:priority="1000">-->
|
||||||
<!-- <action android:name="android.intent.action.USER_PRESENT" />-->
|
<!-- <action android:name="android.intent.action.USER_PRESENT" />-->
|
||||||
<!-- <action android:name="android.intent.action.SCREEN_ON" />-->
|
<!-- <action android:name="android.intent.action.SCREEN_ON" />-->
|
||||||
<!-- <action android:name="android.intent.action.SCREEN_OFF" />-->
|
<!-- <action android:name="android.intent.action.SCREEN_OFF" />-->
|
||||||
|
|
||||||
<!-- <data android:scheme="package" />-->
|
<!-- <data android:scheme="package" />-->
|
||||||
<!-- </intent-filter>-->
|
<!-- </intent-filter>-->
|
||||||
<!-- </service>-->
|
<!-- </service>-->
|
||||||
|
|
||||||
<!-- <service-->
|
<!-- <service-->
|
||||||
<!-- android:name=".service.NotificationService"-->
|
<!-- android:name=".service.NotificationService"-->
|
||||||
<!-- android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">-->
|
<!-- android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">-->
|
||||||
<!-- <intent-filter>-->
|
<!-- <intent-filter>-->
|
||||||
<!-- <action android:name="android.service.notification.NotificationListenerService" />-->
|
<!-- <action android:name="android.service.notification.NotificationListenerService" />-->
|
||||||
<!-- </intent-filter>-->
|
<!-- </intent-filter>-->
|
||||||
<!-- </service>-->
|
<!-- </service>-->
|
||||||
|
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".receiver.APKinstallReceiver"
|
android:name=".receiver.APKinstallReceiver"
|
||||||
|
|||||||
57
app/src/main/java/com/uiui/zyos/activity/AboutActivity.java
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
package com.uiui.zyos.activity;
|
||||||
|
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.text.TextUtils;
|
||||||
|
import android.view.View;
|
||||||
|
|
||||||
|
import androidx.databinding.DataBindingUtil;
|
||||||
|
|
||||||
|
import com.uiui.zyos.R;
|
||||||
|
import com.uiui.zyos.base.BaseDataBindingActivity;
|
||||||
|
import com.uiui.zyos.databinding.ActivityAboutBinding;
|
||||||
|
|
||||||
|
public class AboutActivity extends BaseDataBindingActivity {
|
||||||
|
|
||||||
|
private ActivityAboutBinding mBinding;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 初始化视图
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void initView() {
|
||||||
|
mBinding = DataBindingUtil.setContentView(this, R.layout.activity_about);
|
||||||
|
mBinding.ivBack.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
finish();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 初始化数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void initData() {
|
||||||
|
Intent intent = getIntent();
|
||||||
|
if (intent == null) return;
|
||||||
|
String title = intent.getStringExtra("title");
|
||||||
|
if (TextUtils.isEmpty(title)) return;
|
||||||
|
mBinding.setTitle(title);
|
||||||
|
switch (title) {
|
||||||
|
default:
|
||||||
|
case "关于激活":
|
||||||
|
mBinding.setImage(R.drawable.page_activation);
|
||||||
|
break;
|
||||||
|
case "学习资源下载":
|
||||||
|
mBinding.setImage(R.drawable.page_resource);
|
||||||
|
break;
|
||||||
|
case "关于管控平板":
|
||||||
|
mBinding.setImage(R.drawable.page_control);
|
||||||
|
break;
|
||||||
|
case "客服联系":
|
||||||
|
mBinding.setImage(R.drawable.page_service);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
63
app/src/main/java/com/uiui/zyos/activity/ManualActivity.java
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
package com.uiui.zyos.activity;
|
||||||
|
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.view.View;
|
||||||
|
|
||||||
|
import androidx.databinding.DataBindingUtil;
|
||||||
|
|
||||||
|
import com.uiui.zyos.R;
|
||||||
|
import com.uiui.zyos.base.BaseDataBindingActivity;
|
||||||
|
import com.uiui.zyos.databinding.ActivityManualBinding;
|
||||||
|
|
||||||
|
public class ManualActivity extends BaseDataBindingActivity {
|
||||||
|
|
||||||
|
ActivityManualBinding mBinding;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 初始化视图
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void initView() {
|
||||||
|
mBinding = DataBindingUtil.setContentView(this, R.layout.activity_manual);
|
||||||
|
mBinding.clActivation.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
Intent intent = new Intent(ManualActivity.this, AboutActivity.class);
|
||||||
|
intent.putExtra("title", "关于激活");
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
mBinding.clResource.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
Intent intent = new Intent(ManualActivity.this, AboutActivity.class);
|
||||||
|
intent.putExtra("title", "学习资源下载");
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
mBinding.clControl.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
Intent intent = new Intent(ManualActivity.this, AboutActivity.class);
|
||||||
|
intent.putExtra("title", "关于管控平板");
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
mBinding.clService.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
Intent intent = new Intent(ManualActivity.this, AboutActivity.class);
|
||||||
|
intent.putExtra("title", "客服联系");
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 初始化数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void initData() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -260,7 +260,12 @@ public class MainActivity extends BaseActivity implements MainContact.MainView,
|
|||||||
ComponentName cn = new ComponentName(RemoteManager.SN_PACKAGE_NAME, "com.uiui.zy.activity.EyeProtectionActivity");
|
ComponentName cn = new ComponentName(RemoteManager.SN_PACKAGE_NAME, "com.uiui.zy.activity.EyeProtectionActivity");
|
||||||
Intent intent = new Intent();
|
Intent intent = new Intent();
|
||||||
intent.setComponent(cn);
|
intent.setComponent(cn);
|
||||||
startActivity(intent);
|
try {
|
||||||
|
startActivity(intent);
|
||||||
|
} catch (Exception e) {
|
||||||
|
Log.e(TAG, "onClick: " + e.getMessage());
|
||||||
|
ToastUtil.show("应用未安装");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
cl_5.setOnClickListener(new View.OnClickListener() {
|
cl_5.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import androidx.constraintlayout.widget.ConstraintLayout;
|
|||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.uiui.zyos.R;
|
import com.uiui.zyos.R;
|
||||||
|
import com.uiui.zyos.activity.ManualActivity;
|
||||||
import com.uiui.zyos.activity.PasswordActivity;
|
import com.uiui.zyos.activity.PasswordActivity;
|
||||||
import com.uiui.zyos.bean.DesktopIcon;
|
import com.uiui.zyos.bean.DesktopIcon;
|
||||||
import com.uiui.zyos.config.CommonConfig;
|
import com.uiui.zyos.config.CommonConfig;
|
||||||
@@ -64,33 +65,42 @@ public class AppAdapter extends RecyclerView.Adapter<AppAdapter.AppHolder> {
|
|||||||
holder.iv_icon.setImageDrawable(mContext.getResources().getDrawable(resID));
|
holder.iv_icon.setImageDrawable(mContext.getResources().getDrawable(resID));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (AppManager.ADD_NAME.equals(pkg)) {
|
switch (pkg) {
|
||||||
holder.iv_icon.setImageDrawable(desktopIcon.getIcon());
|
case AppManager.ADD_NAME:
|
||||||
} else if (AppManager.UPDATE_NAME.equals(pkg)) {
|
case AppManager.UPDATE_NAME:
|
||||||
holder.iv_icon.setImageDrawable(desktopIcon.getIcon());
|
case AppManager.MANUAL_NAME:
|
||||||
} else {
|
holder.iv_icon.setImageDrawable(desktopIcon.getIcon());
|
||||||
holder.iv_icon.setImageBitmap(BitmapUtils.getIconBitmap(mContext, desktopIcon.getIcon()));
|
break;
|
||||||
|
default:
|
||||||
|
holder.iv_icon.setImageBitmap(BitmapUtils.getIconBitmap(mContext, desktopIcon.getIcon()));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
holder.root.setOnClickListener(new View.OnClickListener() {
|
holder.root.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
if (AppManager.ADD_NAME.equals(pkg)) {
|
switch (pkg) {
|
||||||
mContext.startActivity(new Intent(mContext, PasswordActivity.class));
|
case AppManager.ADD_NAME:
|
||||||
} else if (AppManager.UPDATE_NAME.equals(pkg)) {
|
mContext.startActivity(new Intent(mContext, PasswordActivity.class));
|
||||||
Intent intent = new Intent();
|
break;
|
||||||
ComponentName componentName = new ComponentName("com.uiui.zy", "com.uiui.zy.activity.update.UpdateActivity");
|
case AppManager.UPDATE_NAME:
|
||||||
intent.setComponent(componentName);
|
Intent intent = new Intent();
|
||||||
mContext.startActivity(intent);
|
ComponentName componentName = new ComponentName("com.uiui.zy", "com.uiui.zy.activity.update.UpdateActivity");
|
||||||
} else {
|
intent.setComponent(componentName);
|
||||||
int setting_other_appInstaller = Settings.Global.getInt(mContext.getContentResolver(), CommonConfig.SETTING_OTHER_APPINSTALLER_KEY, 1);
|
mContext.startActivity(intent);
|
||||||
if (setting_other_appInstaller == 0
|
break;
|
||||||
&& !ApkUtils.isSystemApp(mContext, desktopIcon.getPackageName()
|
case AppManager.MANUAL_NAME:
|
||||||
)) {
|
mContext.startActivity(new Intent(mContext, ManualActivity.class));
|
||||||
ToastUtil.show("已禁止应用打开");
|
default:
|
||||||
} else {
|
int settingOtherAppInstaller = Settings.Global.getInt(mContext.getContentResolver(), CommonConfig.SETTING_OTHER_APPINSTALLER_KEY, 1);
|
||||||
OpenApkUtils.getInstance().openApp(desktopIcon.getPackageName(), desktopIcon.getClassName());
|
if (settingOtherAppInstaller == 0
|
||||||
}
|
&& !ApkUtils.isSystemApp(mContext, desktopIcon.getPackageName()
|
||||||
|
)) {
|
||||||
|
ToastUtil.show("已禁止应用打开");
|
||||||
|
} else {
|
||||||
|
OpenApkUtils.getInstance().openApp(desktopIcon.getPackageName(), desktopIcon.getClassName());
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,123 @@
|
|||||||
|
package com.uiui.zyos.base;
|
||||||
|
|
||||||
|
import android.os.Bundle;
|
||||||
|
|
||||||
|
import androidx.annotation.CallSuper;
|
||||||
|
import androidx.annotation.CheckResult;
|
||||||
|
import androidx.annotation.ContentView;
|
||||||
|
import androidx.annotation.LayoutRes;
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
import androidx.annotation.Nullable;
|
||||||
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
|
||||||
|
import com.trello.rxlifecycle4.LifecycleProvider;
|
||||||
|
import com.trello.rxlifecycle4.LifecycleTransformer;
|
||||||
|
import com.trello.rxlifecycle4.RxLifecycle;
|
||||||
|
import com.trello.rxlifecycle4.android.ActivityEvent;
|
||||||
|
import com.trello.rxlifecycle4.android.RxLifecycleAndroid;
|
||||||
|
import com.uiui.zyos.R;
|
||||||
|
import com.zackratos.ultimatebarx.ultimatebarx.java.UltimateBarX;
|
||||||
|
|
||||||
|
import io.reactivex.rxjava3.core.Observable;
|
||||||
|
import io.reactivex.rxjava3.subjects.BehaviorSubject;
|
||||||
|
|
||||||
|
public abstract class BaseDataBindingActivity extends AppCompatActivity implements LifecycleProvider<ActivityEvent> {
|
||||||
|
public final BehaviorSubject<ActivityEvent> lifecycleSubject = BehaviorSubject.create();
|
||||||
|
|
||||||
|
public BaseDataBindingActivity() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ContentView
|
||||||
|
public BaseDataBindingActivity(@LayoutRes int contentLayoutId) {
|
||||||
|
super(contentLayoutId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@NonNull
|
||||||
|
@CheckResult
|
||||||
|
public final Observable<ActivityEvent> lifecycle() {
|
||||||
|
return lifecycleSubject.hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@NonNull
|
||||||
|
@CheckResult
|
||||||
|
public final <T> LifecycleTransformer<T> bindUntilEvent(@NonNull ActivityEvent event) {
|
||||||
|
return RxLifecycle.bindUntilEvent(lifecycleSubject, event);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@NonNull
|
||||||
|
@CheckResult
|
||||||
|
public final <T> LifecycleTransformer<T> bindToLifecycle() {
|
||||||
|
return RxLifecycleAndroid.bindActivity(lifecycleSubject);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@CallSuper
|
||||||
|
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
lifecycleSubject.onNext(ActivityEvent.CREATE);
|
||||||
|
// StatusBarUtil.init(this);
|
||||||
|
UltimateBarX.statusBar(this)
|
||||||
|
.transparent()
|
||||||
|
.colorRes(R.color.colorPrimaryDark)
|
||||||
|
.light(true)
|
||||||
|
.apply();
|
||||||
|
UltimateBarX.navigationBar(this)
|
||||||
|
.transparent()
|
||||||
|
.colorRes(R.color.colorPrimaryDark)
|
||||||
|
.light(true)
|
||||||
|
.apply();
|
||||||
|
initView();
|
||||||
|
initData();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 初始化视图
|
||||||
|
*/
|
||||||
|
public abstract void initView();
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 初始化数据
|
||||||
|
*/
|
||||||
|
public abstract void initData();
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@CallSuper
|
||||||
|
protected void onStart() {
|
||||||
|
super.onStart();
|
||||||
|
lifecycleSubject.onNext(ActivityEvent.START);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@CallSuper
|
||||||
|
protected void onResume() {
|
||||||
|
super.onResume();
|
||||||
|
lifecycleSubject.onNext(ActivityEvent.RESUME);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@CallSuper
|
||||||
|
protected void onPause() {
|
||||||
|
lifecycleSubject.onNext(ActivityEvent.PAUSE);
|
||||||
|
super.onPause();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@CallSuper
|
||||||
|
protected void onStop() {
|
||||||
|
lifecycleSubject.onNext(ActivityEvent.STOP);
|
||||||
|
super.onStop();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@CallSuper
|
||||||
|
protected void onDestroy() {
|
||||||
|
lifecycleSubject.onNext(ActivityEvent.DESTROY);
|
||||||
|
super.onDestroy();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -50,12 +50,17 @@ public class AppPresenter implements AppContact.AppPresenter {
|
|||||||
updateDesktopIcon.setIcon(mContext.getDrawable(R.drawable.icon_update));
|
updateDesktopIcon.setIcon(mContext.getDrawable(R.drawable.icon_update));
|
||||||
desktopIcons.add(desktopIcons.size(), updateDesktopIcon);
|
desktopIcons.add(desktopIcons.size(), updateDesktopIcon);
|
||||||
|
|
||||||
|
DesktopIcon manualIcon = new DesktopIcon();
|
||||||
|
manualIcon.setLable("使用手册");
|
||||||
|
manualIcon.setPackageName(AppManager.MANUAL_NAME);
|
||||||
|
manualIcon.setIcon(mContext.getDrawable(R.drawable.icon_manual));
|
||||||
|
desktopIcons.add(desktopIcons.size(), manualIcon);
|
||||||
|
|
||||||
DesktopIcon desktopIcon = new DesktopIcon();
|
DesktopIcon desktopIcon = new DesktopIcon();
|
||||||
desktopIcon.setLable("添加应用");
|
desktopIcon.setLable("添加应用");
|
||||||
desktopIcon.setPackageName(AppManager.ADD_NAME);
|
desktopIcon.setPackageName(AppManager.ADD_NAME);
|
||||||
desktopIcon.setIcon(mContext.getDrawable(R.drawable.icon_add));
|
desktopIcon.setIcon(mContext.getDrawable(R.drawable.icon_add));
|
||||||
desktopIcons.add(desktopIcons.size(), desktopIcon);
|
desktopIcons.add(desktopIcons.size(), desktopIcon);
|
||||||
|
|
||||||
mView.setInstalledApp(desktopIcons);
|
mView.setInstalledApp(desktopIcons);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public class AppManager {
|
|||||||
|
|
||||||
public static final String ADD_NAME = "com.zyos.add";
|
public static final String ADD_NAME = "com.zyos.add";
|
||||||
public static final String UPDATE_NAME = "com.zyos.update";
|
public static final String UPDATE_NAME = "com.zyos.update";
|
||||||
|
public static final String MANUAL_NAME = "com.zyos.manual";
|
||||||
private static final String SHOW_PACKAGE_KEY = "SHOW_PACKAGE_KEY";
|
private static final String SHOW_PACKAGE_KEY = "SHOW_PACKAGE_KEY";
|
||||||
|
|
||||||
@SuppressLint("StaticFieldLeak")
|
@SuppressLint("StaticFieldLeak")
|
||||||
|
|||||||
21
app/src/main/java/com/uiui/zyos/view/ImageViewAdapter.java
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
package com.uiui.zyos.view;
|
||||||
|
|
||||||
|
import android.widget.ImageView;
|
||||||
|
|
||||||
|
import androidx.databinding.BindingAdapter;
|
||||||
|
|
||||||
|
import com.bumptech.glide.Glide;
|
||||||
|
|
||||||
|
public class ImageViewAdapter {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自定义设置图片属性 - 在匹配时自定义命名空间会被忽略
|
||||||
|
*/
|
||||||
|
@BindingAdapter({"imageUrl"})
|
||||||
|
public static void loadImage(ImageView imageView, int id) {
|
||||||
|
Glide.with(imageView.getContext())
|
||||||
|
.load(id)
|
||||||
|
.into(imageView);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
BIN
app/src/main/res/drawable-hdpi/banner.png
Normal file
|
After Width: | Height: | Size: 123 KiB |
BIN
app/src/main/res/drawable-hdpi/icon_activation.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
app/src/main/res/drawable-hdpi/icon_black_back.png
Normal file
|
After Width: | Height: | Size: 923 B |
BIN
app/src/main/res/drawable-hdpi/icon_control.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
app/src/main/res/drawable-hdpi/icon_manual.png
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
app/src/main/res/drawable-hdpi/icon_more.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
app/src/main/res/drawable-hdpi/icon_resource.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
app/src/main/res/drawable-hdpi/icon_search.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
app/src/main/res/drawable-hdpi/icon_service.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
app/src/main/res/drawable-hdpi/page_activation.png
Normal file
|
After Width: | Height: | Size: 173 KiB |
BIN
app/src/main/res/drawable-hdpi/page_control.png
Normal file
|
After Width: | Height: | Size: 227 KiB |
BIN
app/src/main/res/drawable-hdpi/page_resource.png
Normal file
|
After Width: | Height: | Size: 134 KiB |
BIN
app/src/main/res/drawable-hdpi/page_service.png
Normal file
|
After Width: | Height: | Size: 93 KiB |
12
app/src/main/res/drawable/search_view_bg.xml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<!-- 内部颜色 -->
|
||||||
|
<solid android:color="@color/search_box_color" />
|
||||||
|
<!-- 圆角的幅度 -->
|
||||||
|
<corners android:radius="@dimen/dp_16" />
|
||||||
|
<padding
|
||||||
|
android:bottom="@dimen/dp_4"
|
||||||
|
android:left="@dimen/dp_8"
|
||||||
|
android:right="@dimen/dp_8"
|
||||||
|
android:top="@dimen/dp_4" />
|
||||||
|
</shape>
|
||||||
68
app/src/main/res/layout/activity_about.xml
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layout 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"
|
||||||
|
tools:context=".activity.AboutActivity">
|
||||||
|
|
||||||
|
<data>
|
||||||
|
|
||||||
|
<variable
|
||||||
|
name="title"
|
||||||
|
type="String" />
|
||||||
|
|
||||||
|
<variable
|
||||||
|
name="image"
|
||||||
|
type="Integer" />
|
||||||
|
</data>
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/white">
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/constraintLayout9"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_back"
|
||||||
|
android:layout_width="@dimen/dp_16"
|
||||||
|
android:layout_height="@dimen/dp_16"
|
||||||
|
android:layout_marginStart="@dimen/dp_16"
|
||||||
|
android:layout_marginTop="@dimen/dp_16"
|
||||||
|
android:layout_marginBottom="@dimen/dp_16"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:src="@drawable/icon_black_back"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/dp_12"
|
||||||
|
android:text="@{title}"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textSize="@dimen/sp_13"
|
||||||
|
android:textStyle="bold"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/iv_back"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/iv_back"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/iv_back"
|
||||||
|
tools:text="标题" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
app:imageUrl="@{image}"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/constraintLayout9" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
</layout>
|
||||||
412
app/src/main/res/layout/activity_manual.xml
Normal file
@@ -0,0 +1,412 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layout 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"
|
||||||
|
tools:context=".activity.ManualActivity">
|
||||||
|
|
||||||
|
<data>
|
||||||
|
|
||||||
|
</data>
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/white">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView9"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/dp_14"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:text="发现"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textSize="@dimen/sp_14"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/constraintLayout8"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/dp_16"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
|
android:layout_marginEnd="@dimen/dp_16"
|
||||||
|
android:background="@drawable/search_view_bg"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/textView9"
|
||||||
|
tools:layout_editor_absoluteX="18dp">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imageView22"
|
||||||
|
android:layout_width="@dimen/dp_10"
|
||||||
|
android:layout_height="@dimen/dp_10"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:src="@drawable/icon_search"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<EditText
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/dp_4"
|
||||||
|
android:background="@null"
|
||||||
|
android:hint="搜索关键字"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textColorHint="@color/text_hint_color"
|
||||||
|
android:textSize="@dimen/sp_9"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/imageView22"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
<com.shehuan.niv.NiceImageView
|
||||||
|
android:id="@+id/niceImageView"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/dp_148"
|
||||||
|
android:layout_marginStart="@dimen/dp_16"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
|
android:layout_marginEnd="@dimen/dp_16"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:src="@drawable/banner"
|
||||||
|
app:corner_radius="@dimen/dp_8"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/constraintLayout8" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView11"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_16"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:text="玩机精选"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textSize="@dimen/sp_10"
|
||||||
|
app:layout_constraintStart_toStartOf="@id/niceImageView"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/niceImageView" />
|
||||||
|
|
||||||
|
<ScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_marginStart="@dimen/dp_16"
|
||||||
|
android:layout_marginTop="@dimen/dp_16"
|
||||||
|
android:layout_marginEnd="@dimen/dp_16"
|
||||||
|
android:layout_marginBottom="@dimen/dp_8"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/textView10"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/textView11">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/cl_activation"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imageView1"
|
||||||
|
android:layout_width="@dimen/dp_32"
|
||||||
|
android:layout_height="@dimen/dp_32"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:src="@drawable/icon_activation"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/constraintLayout1"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/dp_8"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
|
android:layout_marginBottom="@dimen/dp_8"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/imageView1"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="关于激活"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textSize="@dimen/sp_8"
|
||||||
|
android:textStyle="bold"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
|
android:text="了解基础操作"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textSize="@dimen/sp_8"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/textView1" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="@dimen/dp_12"
|
||||||
|
android:layout_height="@dimen/dp_12"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:src="@drawable/icon_more"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="@dimen/dp_1"
|
||||||
|
android:background="@color/gray"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/constraintLayout1"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/constraintLayout1" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/cl_resource"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_4">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imageView2"
|
||||||
|
android:layout_width="@dimen/dp_32"
|
||||||
|
android:layout_height="@dimen/dp_32"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:src="@drawable/icon_resource"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/constraintLayout2"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/dp_8"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
|
android:layout_marginBottom="@dimen/dp_8"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/imageView2"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView2"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="学习资源下载"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textSize="@dimen/sp_8"
|
||||||
|
android:textStyle="bold"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_4"
|
||||||
|
android:text="了解基础操作"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textSize="@dimen/dp_8"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/textView2" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="@dimen/dp_12"
|
||||||
|
android:layout_height="@dimen/dp_12"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:src="@drawable/icon_more"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="@dimen/dp_1"
|
||||||
|
android:background="@color/gray"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/constraintLayout2"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/constraintLayout2" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/cl_control"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_4">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imageView3"
|
||||||
|
android:layout_width="@dimen/dp_32"
|
||||||
|
android:layout_height="@dimen/dp_32"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:src="@drawable/icon_control"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/constraintLayout3"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/dp_8"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
|
android:layout_marginBottom="@dimen/dp_8"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/imageView3"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView3"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="关于管控平板"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textSize="@dimen/sp_8"
|
||||||
|
android:textStyle="bold"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
|
android:text="了解基础操作"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textSize="@dimen/sp_8"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/textView3" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="@dimen/dp_12"
|
||||||
|
android:layout_height="@dimen/dp_12"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:src="@drawable/icon_more"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="@dimen/dp_1"
|
||||||
|
android:background="@color/gray"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/constraintLayout3"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/constraintLayout3" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/cl_service"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_4">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/imageView4"
|
||||||
|
android:layout_width="@dimen/dp_32"
|
||||||
|
android:layout_height="@dimen/dp_32"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:src="@drawable/icon_service"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:id="@+id/constraintLayout4"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/dp_8"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
|
android:layout_marginBottom="@dimen/dp_8"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/imageView4"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView4"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="客服联系"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textSize="@dimen/sp_8"
|
||||||
|
android:textStyle="bold"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
|
android:text="了解基础操作"
|
||||||
|
android:textColor="@color/black"
|
||||||
|
android:textSize="@dimen/sp_8"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/textView4" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="@dimen/dp_12"
|
||||||
|
android:layout_height="@dimen/dp_12"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:src="@drawable/icon_more"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="@dimen/dp_1"
|
||||||
|
android:background="@color/gray"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/constraintLayout4"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/constraintLayout4" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView10"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="@dimen/dp_16"
|
||||||
|
android:layout_marginEnd="@dimen/dp_16"
|
||||||
|
android:layout_marginBottom="@dimen/dp_4"
|
||||||
|
android:text="部分图片非产品实际拍摄。功能和界面可能因机型、软件版本及使用环境差异而有所不同,请以实际产品为准。"
|
||||||
|
android:textSize="@dimen/sp_6"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
</layout>
|
||||||
@@ -37,4 +37,6 @@
|
|||||||
<color name="default_text_color">#6d888e</color>
|
<color name="default_text_color">#6d888e</color>
|
||||||
<color name="float_window_color">#E5000000</color>
|
<color name="float_window_color">#E5000000</color>
|
||||||
|
|
||||||
|
<color name="search_box_color">#F3F3F3</color>
|
||||||
|
<color name="text_hint_color">#646464</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||