version:4.0
fix: update:修改主页,更换图片资源
@@ -15,8 +15,8 @@ android {
|
|||||||
applicationId "com.uiuios.aios"
|
applicationId "com.uiuios.aios"
|
||||||
minSdkVersion 24
|
minSdkVersion 24
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 28
|
versionCode 31
|
||||||
versionName "3.7"
|
versionName "4.0"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import android.provider.Settings;
|
|||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.KeyEvent;
|
import android.view.KeyEvent;
|
||||||
|
import android.view.View;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.fragment.app.Fragment;
|
import androidx.fragment.app.Fragment;
|
||||||
@@ -160,8 +161,35 @@ public class MainActivity extends BaseActivity implements MainContact.MainView {
|
|||||||
if (mFragments.size() > 1) {
|
if (mFragments.size() > 1) {
|
||||||
mViewPager.setCurrentItem(defaultCurrent);
|
mViewPager.setCurrentItem(defaultCurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
View decorView = getWindow().getDecorView();
|
||||||
|
decorView.setOnSystemUiVisibilityChangeListener(mOnSystemUiVisibilityChangeListener);
|
||||||
|
|
||||||
|
// 隐藏导航栏
|
||||||
|
hideNavigationBar();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private View.OnSystemUiVisibilityChangeListener mOnSystemUiVisibilityChangeListener =
|
||||||
|
new View.OnSystemUiVisibilityChangeListener() {
|
||||||
|
@Override
|
||||||
|
public void onSystemUiVisibilityChange(int visibility) {
|
||||||
|
if ((visibility & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) == 0) {
|
||||||
|
// 导航栏显示中,重新隐藏导航栏
|
||||||
|
hideNavigationBar();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// 隐藏导航栏
|
||||||
|
private void hideNavigationBar() {
|
||||||
|
View decorView = getWindow().getDecorView();
|
||||||
|
int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
||||||
|
| View.SYSTEM_UI_FLAG_FULLSCREEN
|
||||||
|
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
|
||||||
|
decorView.setSystemUiVisibility(uiOptions);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initData() {
|
public void initData() {
|
||||||
registmNewAppReceiver();
|
registmNewAppReceiver();
|
||||||
|
|||||||
@@ -57,6 +57,18 @@ public class NotificationAdapter extends RecyclerView.Adapter<NotificationAdapte
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBindViewHolder(@NonNull Holder holder, int position) {
|
public void onBindViewHolder(@NonNull Holder holder, int position) {
|
||||||
|
switch (position%3){
|
||||||
|
case 1:
|
||||||
|
holder.root.setBackground(mContext.getDrawable(R.drawable.home_alarm_blue));
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
holder.root.setBackground(mContext.getDrawable(R.drawable.home_alarm_green));
|
||||||
|
break;
|
||||||
|
case 0:
|
||||||
|
holder.root.setBackground(mContext.getDrawable(R.drawable.home_alarm_red));
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
}
|
||||||
AlarmClockData alarmClockData = dataList.get(position);
|
AlarmClockData alarmClockData = dataList.get(position);
|
||||||
// holder.tv_title.setText("提醒事件:" + alarmClockData.getTitle());
|
// holder.tv_title.setText("提醒事件:" + alarmClockData.getTitle());
|
||||||
String time = alarmClockData.getTime();
|
String time = alarmClockData.getTime();
|
||||||
@@ -75,7 +87,7 @@ public class NotificationAdapter extends RecyclerView.Adapter<NotificationAdapte
|
|||||||
}
|
}
|
||||||
String file = alarmClockData.getFile();
|
String file = alarmClockData.getFile();
|
||||||
if (TextUtils.isEmpty(file)) {
|
if (TextUtils.isEmpty(file)) {
|
||||||
Glide.with(holder.iv_cover).load(R.drawable.home_reminder_icon).into(holder.iv_cover);
|
// Glide.with(holder.iv_cover).load(R.drawable.home_reminder_icon).into(holder.iv_cover);
|
||||||
} else {
|
} else {
|
||||||
FFmpegUtils.loadVideoScreenshot(file, new Observer<Bitmap>() {
|
FFmpegUtils.loadVideoScreenshot(file, new Observer<Bitmap>() {
|
||||||
@Override
|
@Override
|
||||||
@@ -85,7 +97,7 @@ public class NotificationAdapter extends RecyclerView.Adapter<NotificationAdapte
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onNext(@NonNull Bitmap bitmap) {
|
public void onNext(@NonNull Bitmap bitmap) {
|
||||||
Glide.with(holder.iv_cover).load(bitmap).into(holder.iv_cover);
|
// Glide.with(holder.iv_cover).load(bitmap).into(holder.iv_cover);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ import com.uiuios.aios.bean.DesktopIcon;
|
|||||||
import com.uiuios.aios.config.CommonConfig;
|
import com.uiuios.aios.config.CommonConfig;
|
||||||
import com.uiuios.aios.dialog.CustomDialog;
|
import com.uiuios.aios.dialog.CustomDialog;
|
||||||
import com.uiuios.aios.dialog.DailyAppDialog;
|
import com.uiuios.aios.dialog.DailyAppDialog;
|
||||||
|
import com.uiuios.aios.manager.AppManager;
|
||||||
import com.uiuios.aios.manager.AppStatusManager;
|
import com.uiuios.aios.manager.AppStatusManager;
|
||||||
import com.uiuios.aios.manager.RemoteManager;
|
import com.uiuios.aios.manager.RemoteManager;
|
||||||
import com.uiuios.aios.network.NetInterfaceManager;
|
import com.uiuios.aios.network.NetInterfaceManager;
|
||||||
@@ -273,6 +274,7 @@ public class AppListFragment extends BaseFragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updateAppDisableStatus(String pkg, String label) {
|
private void updateAppDisableStatus(String pkg, String label) {
|
||||||
|
AppManager.getInstance().addAddPakcage(pkg);
|
||||||
NetInterfaceManager.getInstance().getUpdateAppIconObservable(pkg, label, 0)
|
NetInterfaceManager.getInstance().getUpdateAppIconObservable(pkg, label, 0)
|
||||||
.compose(RxLifecycle.bindUntilEvent(lifecycleSubject, FragmentEvent.DESTROY))
|
.compose(RxLifecycle.bindUntilEvent(lifecycleSubject, FragmentEvent.DESTROY))
|
||||||
.subscribe(new Observer<BaseResponse>() {
|
.subscribe(new Observer<BaseResponse>() {
|
||||||
|
|||||||
@@ -63,6 +63,10 @@ import butterknife.ButterKnife;
|
|||||||
public class ControlFragment extends BaseFragment {
|
public class ControlFragment extends BaseFragment {
|
||||||
private static final String TAG = ControlFragment.class.getSimpleName();
|
private static final String TAG = ControlFragment.class.getSimpleName();
|
||||||
|
|
||||||
|
@BindView(R.id.tv_wifi)
|
||||||
|
TextView tv_wifi;
|
||||||
|
@BindView(R.id.tv_battery)
|
||||||
|
TextView tv_battery;
|
||||||
|
|
||||||
@BindView(R.id.seekBar)
|
@BindView(R.id.seekBar)
|
||||||
RulerSeekBar seekBar;
|
RulerSeekBar seekBar;
|
||||||
@@ -215,13 +219,13 @@ public class ControlFragment extends BaseFragment {
|
|||||||
// startActivity(new Intent(ControlActivity.this, WiFiManagerActivity.class));
|
// startActivity(new Intent(ControlActivity.this, WiFiManagerActivity.class));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// if (isWifiEnabled()) {
|
if (isWifiEnabled()) {
|
||||||
//// tv_wifi_ssid.setText(getConnectWifiSsid());
|
// tv_wifi.setText(getConnectWifiSsid());
|
||||||
// cl_wifi.setBackground(mContext.getDrawable(R.drawable.control_background_item));
|
// cl_wifi.setBackground(mContext.getDrawable(R.drawable.control_background_item));
|
||||||
// } else {
|
} else {
|
||||||
//// tv_wifi_ssid.setText("未连接");
|
// tv_wifi.setText("未连接");
|
||||||
// cl_wifi.setBackground(mContext.getDrawable(R.drawable.control_background_item_dis));
|
// cl_wifi.setBackground(mContext.getDrawable(R.drawable.control_background_item_dis));
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isWifiEnabled() {
|
public boolean isWifiEnabled() {
|
||||||
@@ -271,14 +275,14 @@ public class ControlFragment extends BaseFragment {
|
|||||||
NetworkInfo info = intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO);
|
NetworkInfo info = intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO);
|
||||||
if (info.getState().equals(NetworkInfo.State.DISCONNECTED)) {
|
if (info.getState().equals(NetworkInfo.State.DISCONNECTED)) {
|
||||||
Log.e(TAG, "wifi断开");
|
Log.e(TAG, "wifi断开");
|
||||||
// tv_wifi_ssid.setText("未连接");
|
// tv_wifi.setText("未连接");
|
||||||
// cl_wifi.setBackground(mContext.getDrawable(R.drawable.control_background_item_dis));
|
// cl_wifi.setBackground(mContext.getDrawable(R.drawable.control_background_item_dis));
|
||||||
} else if (info.getState().equals(NetworkInfo.State.CONNECTED)) {
|
} else if (info.getState().equals(NetworkInfo.State.CONNECTED)) {
|
||||||
WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
|
WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
|
||||||
WifiInfo wifiInfo = wifiManager.getConnectionInfo();
|
WifiInfo wifiInfo = wifiManager.getConnectionInfo();
|
||||||
//获取当前wifi名称
|
//获取当前wifi名称
|
||||||
String newSSID = wifiInfo.getSSID();
|
String newSSID = wifiInfo.getSSID();
|
||||||
// tv_wifi_ssid.setText(getConnectWifiSsid());
|
// tv_wifi.setText(getConnectWifiSsid());
|
||||||
// cl_wifi.setBackground(mContext.getDrawable(R.drawable.control_background_item));
|
// cl_wifi.setBackground(mContext.getDrawable(R.drawable.control_background_item));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -287,7 +291,7 @@ public class ControlFragment extends BaseFragment {
|
|||||||
int wifistate = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, WifiManager.WIFI_STATE_DISABLED);
|
int wifistate = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, WifiManager.WIFI_STATE_DISABLED);
|
||||||
if (wifistate == WifiManager.WIFI_STATE_DISABLED) {
|
if (wifistate == WifiManager.WIFI_STATE_DISABLED) {
|
||||||
Log.e(TAG, "系统关闭wifi");
|
Log.e(TAG, "系统关闭wifi");
|
||||||
// tv_wifi_ssid.setText("关");
|
// tv_wifi.setText("关");
|
||||||
// cl_wifi.setBackground(mContext.getDrawable(R.drawable.control_background_item_dis));
|
// cl_wifi.setBackground(mContext.getDrawable(R.drawable.control_background_item_dis));
|
||||||
} else if (wifistate == WifiManager.WIFI_STATE_ENABLED) {
|
} else if (wifistate == WifiManager.WIFI_STATE_ENABLED) {
|
||||||
Log.e(TAG, "系统开启wifi");
|
Log.e(TAG, "系统开启wifi");
|
||||||
@@ -516,7 +520,15 @@ public class ControlFragment extends BaseFragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void getBattery() {
|
private void getBattery() {
|
||||||
// tv_electricity.setText(getBatteryCapacity() + "%");
|
int level = getBatteryCapacity();
|
||||||
|
Log.e(TAG, "getBattery: " + level);
|
||||||
|
if (level <= 20) {
|
||||||
|
tv_battery.setTextColor(mContext.getColor(R.color.red));
|
||||||
|
} else {
|
||||||
|
tv_battery.setTextColor(mContext.getColor(R.color.control_text_color));
|
||||||
|
}
|
||||||
|
tv_battery.setText(level + "%");
|
||||||
|
|
||||||
if (isBatteryCharging()) {
|
if (isBatteryCharging()) {
|
||||||
// cl_battery.setBackground(mContext.getDrawable(R.drawable.control_background_item));
|
// cl_battery.setBackground(mContext.getDrawable(R.drawable.control_background_item));
|
||||||
} else {
|
} else {
|
||||||
@@ -569,6 +581,7 @@ public class ControlFragment extends BaseFragment {
|
|||||||
filter.addAction(Intent.ACTION_POWER_DISCONNECTED);
|
filter.addAction(Intent.ACTION_POWER_DISCONNECTED);
|
||||||
filter.addAction(Intent.ACTION_BATTERY_CHANGED);
|
filter.addAction(Intent.ACTION_BATTERY_CHANGED);
|
||||||
// filter.addAction(Intent.ACTION_BATTERY_LEVEL_CHANGED);
|
// filter.addAction(Intent.ACTION_BATTERY_LEVEL_CHANGED);
|
||||||
|
filter.addAction("android.intent.action.BATTERY_LEVEL_CHANGED");
|
||||||
filter.addAction(Intent.ACTION_BATTERY_LOW);
|
filter.addAction(Intent.ACTION_BATTERY_LOW);
|
||||||
filter.addAction(Intent.ACTION_BATTERY_OKAY);
|
filter.addAction(Intent.ACTION_BATTERY_OKAY);
|
||||||
mContext.registerReceiver(mBatteryReceiver, filter);
|
mContext.registerReceiver(mBatteryReceiver, filter);
|
||||||
@@ -587,13 +600,15 @@ public class ControlFragment extends BaseFragment {
|
|||||||
switch (action) {
|
switch (action) {
|
||||||
case Intent.ACTION_POWER_CONNECTED:
|
case Intent.ACTION_POWER_CONNECTED:
|
||||||
// cl_battery.setBackground(mContext.getDrawable(R.drawable.control_background_item));
|
// cl_battery.setBackground(mContext.getDrawable(R.drawable.control_background_item));
|
||||||
break;
|
// break;
|
||||||
case Intent.ACTION_POWER_DISCONNECTED:
|
case Intent.ACTION_POWER_DISCONNECTED:
|
||||||
// cl_battery.setBackground(mContext.getDrawable(R.drawable.control_background_item_dis));
|
// cl_battery.setBackground(mContext.getDrawable(R.drawable.control_background_item_dis));
|
||||||
break;
|
|
||||||
// case Intent.ACTION_BATTERY_LEVEL_CHANGED:
|
|
||||||
// tv_electricity.setText(getBatteryCapacity() + "%");
|
|
||||||
// break;
|
// break;
|
||||||
|
case Intent.ACTION_BATTERY_CHANGED:
|
||||||
|
// case Intent.ACTION_BATTERY_LEVEL_CHANGED:
|
||||||
|
case "android.intent.action.BATTERY_LEVEL_CHANGED":
|
||||||
|
getBattery();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,22 @@
|
|||||||
package com.uiuios.aios.fragment.home;
|
package com.uiuios.aios.fragment.home;
|
||||||
|
|
||||||
|
import com.uiuios.aios.alarm.AlarmClockData;
|
||||||
import com.uiuios.aios.base.BasePresenter;
|
import com.uiuios.aios.base.BasePresenter;
|
||||||
import com.uiuios.aios.base.BaseView;
|
import com.uiuios.aios.base.BaseView;
|
||||||
import com.uiuios.aios.bean.DesktopIcon;
|
import com.uiuios.aios.bean.DesktopIcon;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class HomeContact {
|
public class HomeContact {
|
||||||
public interface Presenter extends BasePresenter<PrecisionView> {
|
public interface Presenter extends BasePresenter<PrecisionView> {
|
||||||
void getInstalledApp();
|
void getInstalledApp();
|
||||||
|
void getAlarmClock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface PrecisionView extends BaseView {
|
public interface PrecisionView extends BaseView {
|
||||||
void setInstalledApp(ArrayList<DesktopIcon> desktopIcons);
|
void setInstalledApp(ArrayList<DesktopIcon> desktopIcons);
|
||||||
|
void setAlarmClock(List<AlarmClockData> alarmClockList);
|
||||||
|
void setAlarmClockEmpty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ public class HomeFragment extends BaseFragment implements HomeContact.PrecisionV
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void fetchData() {
|
public void fetchData() {
|
||||||
getAlarmClock();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -199,7 +199,7 @@ public class HomeFragment extends BaseFragment implements HomeContact.PrecisionV
|
|||||||
|
|
||||||
private void initView() {
|
private void initView() {
|
||||||
initAmap();
|
initAmap();
|
||||||
setTiem();
|
setTime();
|
||||||
refreshMemory();
|
refreshMemory();
|
||||||
|
|
||||||
registerTimeReceiver();
|
registerTimeReceiver();
|
||||||
@@ -287,11 +287,9 @@ public class HomeFragment extends BaseFragment implements HomeContact.PrecisionV
|
|||||||
cl_appstore.setOnClickListener(new View.OnClickListener() {
|
cl_appstore.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
ApkUtils.openPackage(mContext, "com.uiui.videoplayer", "com.uiui.videoplayer.activity.main.MainActivity");
|
ApkUtils.openPackage(mContext, "com.uiuios.appstore");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -301,6 +299,42 @@ public class HomeFragment extends BaseFragment implements HomeContact.PrecisionV
|
|||||||
mHomePresenter.getInstalledApp();
|
mHomePresenter.getInstalledApp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setInstalledApp(ArrayList<DesktopIcon> desktopIcons) {
|
||||||
|
Log.e(TAG, "setInstalledApp: " + desktopIcons);
|
||||||
|
if (desktopIcons == null || desktopIcons.size() == 0) {
|
||||||
|
iv_nodata.setVisibility(View.VISIBLE);
|
||||||
|
rv_app.setVisibility(View.INVISIBLE);
|
||||||
|
} else {
|
||||||
|
iv_nodata.setVisibility(View.GONE);
|
||||||
|
rv_app.setVisibility(View.VISIBLE);
|
||||||
|
mHomeAppAdapter.setDesktopIcons(desktopIcons);
|
||||||
|
}
|
||||||
|
mHomePresenter.getAlarmClock();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setAlarmClock(List<AlarmClockData> alarmClockList) {
|
||||||
|
// AlarmClockData alarmClockData = AlarmUtils.getInstance().getRecentAlarmClock();
|
||||||
|
// List<AlarmClockData> data = new ArrayList<>();
|
||||||
|
// if (alarmClockData != null) {
|
||||||
|
// data.add(alarmClockData);
|
||||||
|
if (alarmClockList != null) {
|
||||||
|
notificationAdapter.setDataList(alarmClockList);
|
||||||
|
rv_noti.setVisibility(View.VISIBLE);
|
||||||
|
iv_note_nodata.setVisibility(View.GONE);
|
||||||
|
} else {
|
||||||
|
rv_noti.setVisibility(View.GONE);
|
||||||
|
iv_note_nodata.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setAlarmClockEmpty() {
|
||||||
|
rv_noti.setVisibility(View.GONE);
|
||||||
|
iv_note_nodata.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
|
|
||||||
//监听时间和日期变化
|
//监听时间和日期变化
|
||||||
public void registerTimeReceiver() {
|
public void registerTimeReceiver() {
|
||||||
mTimeChangedReceiver = new TimeChangedReceiver();
|
mTimeChangedReceiver = new TimeChangedReceiver();
|
||||||
@@ -315,19 +349,6 @@ public class HomeFragment extends BaseFragment implements HomeContact.PrecisionV
|
|||||||
|
|
||||||
private TimeChangedReceiver mTimeChangedReceiver;
|
private TimeChangedReceiver mTimeChangedReceiver;
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setInstalledApp(ArrayList<DesktopIcon> desktopIcons) {
|
|
||||||
Log.e(TAG, "setInstalledApp: " + desktopIcons);
|
|
||||||
if (desktopIcons == null || desktopIcons.size() == 0) {
|
|
||||||
iv_nodata.setVisibility(View.VISIBLE);
|
|
||||||
rv_app.setVisibility(View.INVISIBLE);
|
|
||||||
} else {
|
|
||||||
iv_nodata.setVisibility(View.GONE);
|
|
||||||
rv_app.setVisibility(View.VISIBLE);
|
|
||||||
mHomeAppAdapter.setDesktopIcons(desktopIcons);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private class TimeChangedReceiver extends BroadcastReceiver {
|
private class TimeChangedReceiver extends BroadcastReceiver {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -341,7 +362,7 @@ public class HomeFragment extends BaseFragment implements HomeContact.PrecisionV
|
|||||||
} else if (Intent.ACTION_TIME_TICK.equals(intent.getAction())) {
|
} else if (Intent.ACTION_TIME_TICK.equals(intent.getAction())) {
|
||||||
Log.e(TAG, "TimeChangedReceiver:" + "time tick");
|
Log.e(TAG, "TimeChangedReceiver:" + "time tick");
|
||||||
}
|
}
|
||||||
setTiem();
|
setTime();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -366,7 +387,7 @@ public class HomeFragment extends BaseFragment implements HomeContact.PrecisionV
|
|||||||
new Handler().postDelayed(new Runnable() {
|
new Handler().postDelayed(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
getAlarmClock();
|
mHomePresenter.getAlarmClock();
|
||||||
}
|
}
|
||||||
}, 3456);
|
}, 3456);
|
||||||
}
|
}
|
||||||
@@ -448,7 +469,7 @@ public class HomeFragment extends BaseFragment implements HomeContact.PrecisionV
|
|||||||
float x2 = (((total - avail) / (float) total));
|
float x2 = (((total - avail) / (float) total));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setTiem() {
|
private void setTime() {
|
||||||
long time = System.currentTimeMillis();
|
long time = System.currentTimeMillis();
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
|
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
|
||||||
Date date = new Date(time);
|
Date date = new Date(time);
|
||||||
|
|||||||
@@ -1,13 +1,18 @@
|
|||||||
package com.uiuios.aios.fragment.home;
|
package com.uiuios.aios.fragment.home;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.view.View;
|
||||||
|
|
||||||
import com.trello.rxlifecycle4.android.FragmentEvent;
|
import com.trello.rxlifecycle4.android.FragmentEvent;
|
||||||
import com.uiuios.aios.R;
|
import com.uiuios.aios.R;
|
||||||
|
import com.uiuios.aios.alarm.AlarmClockData;
|
||||||
|
import com.uiuios.aios.alarm.AlarmUtils;
|
||||||
import com.uiuios.aios.bean.DesktopIcon;
|
import com.uiuios.aios.bean.DesktopIcon;
|
||||||
import com.uiuios.aios.manager.AppManager;
|
import com.uiuios.aios.manager.AppManager;
|
||||||
|
import com.uiuios.aios.network.NetInterfaceManager;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import io.reactivex.rxjava3.annotations.NonNull;
|
import io.reactivex.rxjava3.annotations.NonNull;
|
||||||
import io.reactivex.rxjava3.subjects.BehaviorSubject;
|
import io.reactivex.rxjava3.subjects.BehaviorSubject;
|
||||||
@@ -59,4 +64,24 @@ public class HomePresenter implements HomeContact.Presenter {
|
|||||||
|
|
||||||
mView.setInstalledApp(desktopIcons);
|
mView.setInstalledApp(desktopIcons);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getAlarmClock() {
|
||||||
|
NetInterfaceManager.getInstance().getAlarmClockFragment(lifecycle, new NetInterfaceManager.AlarmClockCallback() {
|
||||||
|
@Override
|
||||||
|
public void setAlarmClock(List<AlarmClockData> alarmClockList) {
|
||||||
|
mView.setAlarmClock(alarmClockList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setAlarmClockEmpty() {
|
||||||
|
mView.setAlarmClockEmpty();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onError() {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -759,6 +759,12 @@ public class NetInterfaceManager {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
public void getAlarmClockFragment(BehaviorSubject<FragmentEvent> lifecycle, AlarmClockCallback callback) {
|
||||||
|
getAlarmClockObservable()
|
||||||
|
.compose(RxLifecycle.bindUntilEvent(lifecycle, FragmentEvent.DESTROY))
|
||||||
|
.subscribe(getAlarmClockObserver(callback));
|
||||||
|
}
|
||||||
|
|
||||||
public void getAlarmClock(BehaviorSubject<ActivityEvent> lifecycle, AlarmClockCallback callback) {
|
public void getAlarmClock(BehaviorSubject<ActivityEvent> lifecycle, AlarmClockCallback callback) {
|
||||||
getAlarmClockObservable()
|
getAlarmClockObservable()
|
||||||
.compose(RxLifecycle.bindUntilEvent(lifecycle, ActivityEvent.DESTROY))
|
.compose(RxLifecycle.bindUntilEvent(lifecycle, ActivityEvent.DESTROY))
|
||||||
@@ -790,7 +796,6 @@ public class NetInterfaceManager {
|
|||||||
if (alarmClockData != null && alarmClockData.size() != 0) {
|
if (alarmClockData != null && alarmClockData.size() != 0) {
|
||||||
AlarmUtils.getInstance().setAlarmClockData(alarmClockData);
|
AlarmUtils.getInstance().setAlarmClockData(alarmClockData);
|
||||||
mMMKV.encode(UrlAddress.GET_ALARM_CLOCK, GsonUtils.toJSONString(alarmClockData));
|
mMMKV.encode(UrlAddress.GET_ALARM_CLOCK, GsonUtils.toJSONString(alarmClockData));
|
||||||
|
|
||||||
// if (callback != null) {
|
// if (callback != null) {
|
||||||
// callback.setAlarmClock(alarmClockData);
|
// callback.setAlarmClock(alarmClockData);
|
||||||
// }
|
// }
|
||||||
@@ -798,7 +803,6 @@ public class NetInterfaceManager {
|
|||||||
AlarmUtils.getInstance().deleteAllAlarmClock();
|
AlarmUtils.getInstance().deleteAllAlarmClock();
|
||||||
AlarmUtils.getInstance().setAlarmClockData(null);
|
AlarmUtils.getInstance().setAlarmClockData(null);
|
||||||
mMMKV.encode(UrlAddress.GET_ALARM_CLOCK, "");
|
mMMKV.encode(UrlAddress.GET_ALARM_CLOCK, "");
|
||||||
|
|
||||||
// if (callback != null) {
|
// if (callback != null) {
|
||||||
// callback.setAlarmClockEmpty();
|
// callback.setAlarmClockEmpty();
|
||||||
// }
|
// }
|
||||||
@@ -807,7 +811,6 @@ public class NetInterfaceManager {
|
|||||||
AlarmUtils.getInstance().deleteAllAlarmClock();
|
AlarmUtils.getInstance().deleteAllAlarmClock();
|
||||||
AlarmUtils.getInstance().setAlarmClockData(null);
|
AlarmUtils.getInstance().setAlarmClockData(null);
|
||||||
mMMKV.encode(UrlAddress.GET_ALARM_CLOCK, "");
|
mMMKV.encode(UrlAddress.GET_ALARM_CLOCK, "");
|
||||||
|
|
||||||
// if (callback != null) {
|
// if (callback != null) {
|
||||||
// callback.setAlarmClockEmpty();
|
// callback.setAlarmClockEmpty();
|
||||||
// }
|
// }
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 403 KiB After Width: | Height: | Size: 2.5 MiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
BIN
app/src/main/res/drawable-hdpi/home_alarm_icon.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.8 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
BIN
app/src/main/res/drawable-hdpi/icon_add_alarm.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 3.0 KiB |
@@ -2,7 +2,7 @@
|
|||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<item android:drawable="@drawable/actions_item_bg_s" android:state_focused="true" />
|
<item android:drawable="@drawable/actions_item_bg_s" android:state_focused="true" />
|
||||||
<item android:drawable="@color/actions_item_pressed" android:state_pressed="true" />
|
<item android:drawable="@drawable/control_bg" android:state_pressed="true" />
|
||||||
<item>
|
<item>
|
||||||
<shape>
|
<shape>
|
||||||
<solid android:color="@color/transparent" />
|
<solid android:color="@color/transparent" />
|
||||||
|
|||||||
9
app/src/main/res/drawable/control_bg.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<!-- 内部颜色 -->
|
||||||
|
<solid android:color="@color/control_bg_color" />
|
||||||
|
<!-- 圆角的幅度 -->
|
||||||
|
<corners android:radius="16dp" />
|
||||||
|
|
||||||
|
|
||||||
|
</shape>
|
||||||
15
app/src/main/res/drawable/home_alarm_blue.xml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<!-- 内部颜色 -->
|
||||||
|
<solid android:color="#0480FF" />
|
||||||
|
<!-- 圆角的幅度 -->
|
||||||
|
<corners
|
||||||
|
android:bottomLeftRadius="@dimen/dp_4"
|
||||||
|
android:bottomRightRadius="@dimen/dp_4"
|
||||||
|
android:topLeftRadius="@dimen/dp_4"
|
||||||
|
android:topRightRadius="@dimen/dp_4" />
|
||||||
|
|
||||||
|
<!-- <padding-->
|
||||||
|
<!-- android:left="@dimen/dp_10"-->
|
||||||
|
<!-- android:right="@dimen/dp_10" />-->
|
||||||
|
</shape>
|
||||||
15
app/src/main/res/drawable/home_alarm_green.xml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<!-- 内部颜色 -->
|
||||||
|
<solid android:color="#00D56B" />
|
||||||
|
<!-- 圆角的幅度 -->
|
||||||
|
<corners
|
||||||
|
android:bottomLeftRadius="@dimen/dp_4"
|
||||||
|
android:bottomRightRadius="@dimen/dp_4"
|
||||||
|
android:topLeftRadius="@dimen/dp_4"
|
||||||
|
android:topRightRadius="@dimen/dp_4" />
|
||||||
|
|
||||||
|
<!-- <padding-->
|
||||||
|
<!-- android:left="@dimen/dp_10"-->
|
||||||
|
<!-- android:right="@dimen/dp_10" />-->
|
||||||
|
</shape>
|
||||||
15
app/src/main/res/drawable/home_alarm_red.xml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<!-- 内部颜色 -->
|
||||||
|
<solid android:color="@color/red" />
|
||||||
|
<!-- 圆角的幅度 -->
|
||||||
|
<corners
|
||||||
|
android:bottomLeftRadius="@dimen/dp_4"
|
||||||
|
android:bottomRightRadius="@dimen/dp_4"
|
||||||
|
android:topLeftRadius="@dimen/dp_4"
|
||||||
|
android:topRightRadius="@dimen/dp_4" />
|
||||||
|
|
||||||
|
<!-- <padding-->
|
||||||
|
<!-- android:left="@dimen/dp_10"-->
|
||||||
|
<!-- android:right="@dimen/dp_10" />-->
|
||||||
|
</shape>
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
<!-- android:width="1dp"-->
|
<!-- android:width="1dp"-->
|
||||||
<!-- android:color="#fff" />-->
|
<!-- android:color="#fff" />-->
|
||||||
<corners android:radius="@dimen/dp_8" />
|
<corners android:radius="@dimen/dp_8" />
|
||||||
<solid android:color="@color/settings_color_bg" />
|
<solid android:color="@color/control_bg_color" />
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
<!-- android:width="1dp"-->
|
<!-- android:width="1dp"-->
|
||||||
<!-- android:color="#fff" />-->
|
<!-- android:color="#fff" />-->
|
||||||
<corners android:radius="@dimen/dp_8" />
|
<corners android:radius="@dimen/dp_8" />
|
||||||
<solid android:color="@color/settings_color" />
|
<solid android:color="@color/control_text_color" />
|
||||||
</shape>
|
</shape>
|
||||||
</clip>
|
</clip>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:id="@android:id/background">
|
<item android:id="@android:id/background">
|
||||||
<shape>
|
<shape>
|
||||||
<solid android:color="#FFFFFF" />
|
<solid android:color="#ffe6d4" />
|
||||||
<size android:height="@dimen/dp_14" />
|
<size android:height="@dimen/dp_14" />
|
||||||
<corners android:radius="@dimen/dp_14" />
|
<corners android:radius="@dimen/dp_14" />
|
||||||
</shape>
|
</shape>
|
||||||
|
|||||||
@@ -7,6 +7,6 @@
|
|||||||
android:height="@dimen/dp_14" />
|
android:height="@dimen/dp_14" />
|
||||||
<stroke
|
<stroke
|
||||||
android:width="@dimen/dp_2"
|
android:width="@dimen/dp_2"
|
||||||
android:color="#FFFFFF" />
|
android:color="#ffe6d4" />
|
||||||
<solid android:color="@color/settings_color" />
|
<solid android:color="@color/control_text_color" />
|
||||||
</shape>
|
</shape>
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/control_background"
|
android:background="@drawable/control_bg"
|
||||||
tools:context=".activity.contact.ContactActivity">
|
tools:context=".activity.contact.ContactActivity">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/control_background"
|
android:background="@drawable/control_bg"
|
||||||
tools:context=".activity.ControlActivity">
|
tools:context=".activity.ControlActivity">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/control_background"
|
android:background="@drawable/control_bg"
|
||||||
tools:context=".activity.DailyAppActivity">
|
tools:context=".activity.DailyAppActivity">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/control_background"
|
android:background="@drawable/control_bg"
|
||||||
tools:context=".activity.dialer.DialerActivity">
|
tools:context=".activity.dialer.DialerActivity">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/control_background"
|
android:background="@drawable/control_bg"
|
||||||
tools:context=".activity.contact.ContactActivity">
|
tools:context=".activity.contact.ContactActivity">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/control_background"
|
android:background="@drawable/control_bg"
|
||||||
tools:context=".activity.ControlActivity">
|
tools:context=".activity.ControlActivity">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/control_background"
|
android:background="@drawable/control_bg"
|
||||||
tools:context=".activity.DailyAppActivity">
|
tools:context=".activity.DailyAppActivity">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/control_background"
|
android:background="@drawable/control_bg"
|
||||||
tools:context=".activity.dialer.DialerActivity">
|
tools:context=".activity.dialer.DialerActivity">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/wallpaper1"
|
android:background="@drawable/control_background"
|
||||||
tools:context=".activity.main.MainActivity">
|
tools:context=".activity.main.MainActivity">
|
||||||
|
|
||||||
<androidx.viewpager.widget.ViewPager
|
<androidx.viewpager.widget.ViewPager
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@drawable/control_background">
|
android:background="@drawable/control_bg">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_back"
|
android:id="@+id/iv_back"
|
||||||
|
|||||||
@@ -33,35 +33,36 @@
|
|||||||
android:id="@+id/cl_wifi"
|
android:id="@+id/cl_wifi"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_margin="@dimen/dp_8"
|
android:layout_margin="@dimen/dp_8"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/settings_network">
|
android:background="@drawable/control_bg">
|
||||||
|
|
||||||
<!-- <ImageView-->
|
<ImageView
|
||||||
<!-- android:id="@+id/iv_wifi"-->
|
android:id="@+id/iv_wifi"
|
||||||
<!-- android:layout_width="@dimen/dp_50"-->
|
android:layout_width="@dimen/dp_50"
|
||||||
<!-- android:layout_height="@dimen/dp_50"-->
|
android:layout_height="@dimen/dp_50"
|
||||||
<!-- android:adjustViewBounds="true"-->
|
android:adjustViewBounds="true"
|
||||||
<!-- android:scaleType="centerCrop"-->
|
android:scaleType="centerCrop"
|
||||||
<!-- android:src="@drawable/wifi1"-->
|
android:src="@drawable/settings_network"
|
||||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
<!-- app:layout_constraintHorizontal_bias="0.5"-->
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
<!-- app:layout_constraintTop_toTopOf="parent"-->
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
<!-- app:layout_constraintVertical_bias="0.18" />-->
|
app:layout_constraintVertical_bias="0.18" />
|
||||||
|
|
||||||
<!-- <TextView-->
|
<TextView
|
||||||
<!-- android:id="@+id/tv_wifi"-->
|
android:id="@+id/tv_wifi"
|
||||||
<!-- android:layout_width="wrap_content"-->
|
android:layout_width="wrap_content"
|
||||||
<!-- android:layout_height="wrap_content"-->
|
android:layout_height="wrap_content"
|
||||||
<!-- android:text="网络设置"-->
|
android:text="网络设置"
|
||||||
<!-- android:textColor="@color/white"-->
|
android:textColor="@color/control_text_color"
|
||||||
<!-- android:textSize="@dimen/sp_13"-->
|
android:textSize="@dimen/sp_11"
|
||||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
<!-- app:layout_constraintTop_toBottomOf="@+id/iv_wifi" />-->
|
app:layout_constraintTop_toBottomOf="@+id/iv_wifi" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
@@ -69,35 +70,36 @@
|
|||||||
android:id="@+id/cl_bt"
|
android:id="@+id/cl_bt"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_margin="@dimen/dp_8"
|
android:layout_margin="@dimen/dp_8"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/settings_bluetooth">
|
android:background="@drawable/control_bg">
|
||||||
|
|
||||||
<!-- <ImageView-->
|
<ImageView
|
||||||
<!-- android:id="@+id/iv_bt"-->
|
android:id="@+id/iv_bt"
|
||||||
<!-- android:layout_width="@dimen/dp_50"-->
|
android:layout_width="@dimen/dp_50"
|
||||||
<!-- android:layout_height="@dimen/dp_50"-->
|
android:layout_height="@dimen/dp_50"
|
||||||
<!-- android:adjustViewBounds="true"-->
|
android:adjustViewBounds="true"
|
||||||
<!-- android:scaleType="centerCrop"-->
|
android:scaleType="centerCrop"
|
||||||
<!-- android:src="@drawable/bluetooth1"-->
|
android:src="@drawable/settings_bluetooth"
|
||||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
<!-- app:layout_constraintHorizontal_bias="0.5"-->
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
<!-- app:layout_constraintTop_toTopOf="parent"-->
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
<!-- app:layout_constraintVertical_bias="0.18" />-->
|
app:layout_constraintVertical_bias="0.18" />
|
||||||
|
|
||||||
<!-- <TextView-->
|
<TextView
|
||||||
<!-- android:id="@+id/tv_bt"-->
|
android:id="@+id/tv_bt"
|
||||||
<!-- android:layout_width="wrap_content"-->
|
android:layout_width="wrap_content"
|
||||||
<!-- android:layout_height="wrap_content"-->
|
android:layout_height="wrap_content"
|
||||||
<!-- android:text="蓝牙设置"-->
|
android:text="蓝牙设置"
|
||||||
<!-- android:textColor="@color/white"-->
|
android:textColor="@color/control_text_color"
|
||||||
<!-- android:textSize="@dimen/sp_13"-->
|
android:textSize="@dimen/sp_11"
|
||||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
<!-- app:layout_constraintTop_toBottomOf="@+id/iv_bt" />-->
|
app:layout_constraintTop_toBottomOf="@+id/iv_bt" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
@@ -143,7 +145,7 @@
|
|||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="100%"
|
android:text="100%"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/control_text_color2"
|
||||||
android:textSize="@dimen/sp_24"
|
android:textSize="@dimen/sp_24"
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/iv_sound"
|
app:layout_constraintBottom_toBottomOf="@+id/iv_sound"
|
||||||
app:layout_constraintStart_toEndOf="@+id/iv_sound"
|
app:layout_constraintStart_toEndOf="@+id/iv_sound"
|
||||||
@@ -155,7 +157,7 @@
|
|||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_margin="@dimen/dp_8"
|
android:layout_margin="@dimen/dp_8"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/settings_bg">
|
android:background="@drawable/control_bg">
|
||||||
|
|
||||||
<com.uiuios.aios.view.RulerSeekBar
|
<com.uiuios.aios.view.RulerSeekBar
|
||||||
android:id="@+id/seekBar"
|
android:id="@+id/seekBar"
|
||||||
@@ -200,7 +202,7 @@
|
|||||||
android:gravity="start"
|
android:gravity="start"
|
||||||
android:paddingStart="@dimen/dp_8"
|
android:paddingStart="@dimen/dp_8"
|
||||||
android:text="标准"
|
android:text="标准"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/control_text_color"
|
||||||
android:textSize="@dimen/sp_11"
|
android:textSize="@dimen/sp_11"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
@@ -213,7 +215,7 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="大"
|
android:text="大"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/control_text_color"
|
||||||
android:textSize="@dimen/sp_11"
|
android:textSize="@dimen/sp_11"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
@@ -227,7 +229,7 @@
|
|||||||
android:gravity="end"
|
android:gravity="end"
|
||||||
android:paddingEnd="@dimen/dp_8"
|
android:paddingEnd="@dimen/dp_8"
|
||||||
android:text="最大"
|
android:text="最大"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/control_text_color"
|
||||||
android:textSize="@dimen/sp_11"
|
android:textSize="@dimen/sp_11"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
@@ -267,35 +269,36 @@
|
|||||||
android:id="@+id/cl_battery"
|
android:id="@+id/cl_battery"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_margin="@dimen/dp_8"
|
android:layout_margin="@dimen/dp_8"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/settings_battery">
|
android:background="@drawable/control_bg">
|
||||||
|
|
||||||
<!-- <ImageView-->
|
<ImageView
|
||||||
<!-- android:id="@+id/iv_battery"-->
|
android:id="@+id/iv_battery"
|
||||||
<!-- android:layout_width="@dimen/dp_50"-->
|
android:layout_width="@dimen/dp_50"
|
||||||
<!-- android:layout_height="@dimen/dp_50"-->
|
android:layout_height="@dimen/dp_50"
|
||||||
<!-- android:adjustViewBounds="true"-->
|
android:adjustViewBounds="true"
|
||||||
<!-- android:scaleType="centerCrop"-->
|
android:scaleType="centerCrop"
|
||||||
<!-- android:src="@drawable/battery1"-->
|
android:src="@drawable/settings_battery"
|
||||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
<!-- app:layout_constraintHorizontal_bias="0.5"-->
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
<!-- app:layout_constraintTop_toTopOf="parent"-->
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
<!-- app:layout_constraintVertical_bias="0.18" />-->
|
app:layout_constraintVertical_bias="0.18" />
|
||||||
|
|
||||||
<!-- <TextView-->
|
<TextView
|
||||||
<!-- android:id="@+id/tv_battery"-->
|
android:id="@+id/tv_battery"
|
||||||
<!-- android:layout_width="wrap_content"-->
|
android:layout_width="wrap_content"
|
||||||
<!-- android:layout_height="wrap_content"-->
|
android:layout_height="wrap_content"
|
||||||
<!-- android:text="电池设置"-->
|
android:text="电池设置"
|
||||||
<!-- android:textColor="@color/white"-->
|
android:textColor="@color/control_text_color"
|
||||||
<!-- android:textSize="@dimen/sp_13"-->
|
android:textSize="@dimen/sp_11"
|
||||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
<!-- app:layout_constraintTop_toBottomOf="@+id/iv_battery" />-->
|
app:layout_constraintTop_toBottomOf="@+id/iv_battery" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
@@ -303,35 +306,36 @@
|
|||||||
android:id="@+id/cl_flashlight"
|
android:id="@+id/cl_flashlight"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_margin="@dimen/dp_8"
|
android:layout_margin="@dimen/dp_8"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/settings_system">
|
android:background="@drawable/control_bg">
|
||||||
|
|
||||||
<!-- <ImageView-->
|
<ImageView
|
||||||
<!-- android:id="@+id/iv_flashlight"-->
|
android:id="@+id/iv_flashlight"
|
||||||
<!-- android:layout_width="@dimen/dp_50"-->
|
android:layout_width="@dimen/dp_50"
|
||||||
<!-- android:layout_height="@dimen/dp_50"-->
|
android:layout_height="@dimen/dp_50"
|
||||||
<!-- android:adjustViewBounds="true"-->
|
android:adjustViewBounds="true"
|
||||||
<!-- android:scaleType="centerCrop"-->
|
android:scaleType="centerCrop"
|
||||||
<!-- android:src="@drawable/settings1"-->
|
android:src="@drawable/settings_system"
|
||||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
<!-- app:layout_constraintHorizontal_bias="0.5"-->
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
<!-- app:layout_constraintTop_toTopOf="parent"-->
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
<!-- app:layout_constraintVertical_bias="0.18" />-->
|
app:layout_constraintVertical_bias="0.18" />
|
||||||
|
|
||||||
<!-- <TextView-->
|
<TextView
|
||||||
<!-- android:id="@+id/tv_flashlight"-->
|
android:id="@+id/tv_flashlight"
|
||||||
<!-- android:layout_width="wrap_content"-->
|
android:layout_width="wrap_content"
|
||||||
<!-- android:layout_height="wrap_content"-->
|
android:layout_height="wrap_content"
|
||||||
<!-- android:text="系统设置"-->
|
android:text="系统设置"
|
||||||
<!-- android:textColor="@color/white"-->
|
android:textColor="@color/control_text_color"
|
||||||
<!-- android:textSize="@dimen/sp_13"-->
|
android:textSize="@dimen/sp_11"
|
||||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
<!-- app:layout_constraintTop_toBottomOf="@+id/iv_flashlight" />-->
|
app:layout_constraintTop_toBottomOf="@+id/iv_flashlight" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
@@ -377,7 +381,7 @@
|
|||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="亮度"
|
android:text="亮度"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/control_text_color2"
|
||||||
android:textSize="@dimen/sp_20"
|
android:textSize="@dimen/sp_20"
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/iv_brightness"
|
app:layout_constraintBottom_toBottomOf="@+id/iv_brightness"
|
||||||
app:layout_constraintStart_toEndOf="@+id/iv_brightness"
|
app:layout_constraintStart_toEndOf="@+id/iv_brightness"
|
||||||
@@ -390,7 +394,7 @@
|
|||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_margin="@dimen/dp_8"
|
android:layout_margin="@dimen/dp_8"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/settings_bg">
|
android:background="@drawable/control_bg">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_location"
|
android:id="@+id/iv_location"
|
||||||
@@ -412,7 +416,7 @@
|
|||||||
android:layout_marginEnd="@dimen/dp_16"
|
android:layout_marginEnd="@dimen/dp_16"
|
||||||
android:maxLines="2"
|
android:maxLines="2"
|
||||||
android:text="未知"
|
android:text="未知"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/control_text_color"
|
||||||
android:textSize="@dimen/sp_12"
|
android:textSize="@dimen/sp_12"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
|||||||
@@ -41,8 +41,8 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="@dimen/dp_10"
|
android:layout_width="@dimen/dp_10"
|
||||||
android:layout_marginEnd="@dimen/dp_2"
|
|
||||||
android:layout_height="@dimen/dp_10"
|
android:layout_height="@dimen/dp_10"
|
||||||
|
android:layout_marginEnd="@dimen/dp_2"
|
||||||
android:src="@drawable/home_icon_location"
|
android:src="@drawable/home_icon_location"
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/tv_location"
|
app:layout_constraintBottom_toBottomOf="@+id/tv_location"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/tv_location"
|
app:layout_constraintEnd_toStartOf="@+id/tv_location"
|
||||||
@@ -216,7 +216,9 @@
|
|||||||
android:id="@+id/rv_noti"
|
android:id="@+id/rv_noti"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
|
android:layout_marginStart="@dimen/dp_16"
|
||||||
android:layout_marginTop="@dimen/dp_24"
|
android:layout_marginTop="@dimen/dp_24"
|
||||||
|
android:layout_marginEnd="@dimen/dp_16"
|
||||||
android:overScrollMode="never"
|
android:overScrollMode="never"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
@@ -225,11 +227,11 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_note_nodata"
|
android:id="@+id/iv_note_nodata"
|
||||||
android:layout_width="@dimen/dp_68"
|
android:layout_width="@dimen/dp_60"
|
||||||
android:layout_height="@dimen/dp_68"
|
android:layout_height="@dimen/dp_80"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:scaleType="centerInside"
|
android:scaleType="centerInside"
|
||||||
android:src="@drawable/home_reminder_icon"
|
android:src="@drawable/icon_add_alarm"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
@@ -284,10 +286,9 @@
|
|||||||
android:id="@+id/cl_contact"
|
android:id="@+id/cl_contact"
|
||||||
android:layout_width="@dimen/dp_109"
|
android:layout_width="@dimen/dp_109"
|
||||||
android:layout_height="@dimen/dp_71"
|
android:layout_height="@dimen/dp_71"
|
||||||
android:layout_marginTop="@dimen/dp_13"
|
|
||||||
android:background="@drawable/home_dialer"
|
android:background="@drawable/home_dialer"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/cl_clear">
|
app:layout_constraintStart_toStartOf="parent">
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
android:id="@+id/root"
|
android:id="@+id/root"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/dp_20"
|
android:layout_height="@dimen/dp_20"
|
||||||
android:background="@drawable/bt_activation_normnl"
|
android:layout_marginBottom="@dimen/dp_16"
|
||||||
|
android:background="@drawable/home_alarm_blue"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -20,11 +21,11 @@
|
|||||||
android:layout_height="@dimen/dp_16"
|
android:layout_height="@dimen/dp_16"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
android:src="@drawable/icon_alarm"
|
android:src="@drawable/home_alarm_icon"
|
||||||
app:corner_radius="@dimen/dp_8"
|
app:corner_radius="@dimen/dp_8"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/tv_time"
|
app:layout_constraintEnd_toStartOf="@+id/tv_time"
|
||||||
app:layout_constraintHorizontal_bias="0.1"
|
app:layout_constraintHorizontal_bias="0.2"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.5" />
|
app:layout_constraintVertical_bias="0.5" />
|
||||||
|
|||||||
@@ -19,8 +19,9 @@
|
|||||||
<color name="radio_botton_gray">#bbbbbb</color>
|
<color name="radio_botton_gray">#bbbbbb</color>
|
||||||
<color name="ok_button">#4D4B50</color>
|
<color name="ok_button">#4D4B50</color>
|
||||||
<color name="red">#FF0000</color>
|
<color name="red">#FF0000</color>
|
||||||
|
<color name="green">#FF008000</color>
|
||||||
<color name="progress_bg">#F1B3B3</color>
|
<color name="progress_bg">#F1B3B3</color>
|
||||||
<color name="actions_item_pressed">#17233b</color>
|
<color name="actions_item_pressed">#2a2b35</color>
|
||||||
<color name="default_background_color">#8e6afb</color>
|
<color name="default_background_color">#8e6afb</color>
|
||||||
|
|
||||||
<color name="voice_color">#00D56B</color>
|
<color name="voice_color">#00D56B</color>
|
||||||
@@ -56,4 +57,8 @@
|
|||||||
|
|
||||||
<color name="check_update_color">#4880ff</color>
|
<color name="check_update_color">#4880ff</color>
|
||||||
<color name="check_update_color_pressed">#3e76f6</color>
|
<color name="check_update_color_pressed">#3e76f6</color>
|
||||||
|
|
||||||
|
<color name="control_text_color">#F19149</color>
|
||||||
|
<color name="control_text_color2">#7a4014</color>
|
||||||
|
<color name="control_bg_color">#65000000</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||