mirror of
https://github.com/niushuai233/DevControl.git
synced 2024-10-27 22:43:20 +08:00
fix: 隐藏更换图标行
This commit is contained in:
parent
2b280fb979
commit
8f885a045e
@ -9,32 +9,44 @@ import cc.niushuai.project.devcontrol.R;
|
||||
* @date 2022/10/25 14:57
|
||||
*/
|
||||
public enum IconEnum {
|
||||
POWER_SWITCH(R.drawable.ic_device_type_switch, "开关"),
|
||||
LIGHT(R.drawable.ic_device_type_light, "灯具"),
|
||||
CAMERA(R.drawable.ic_device_type_camera, "摄像机"),
|
||||
AIR_CONDITIONER(R.drawable.ic_device_type_air_conditioner, "空调"),
|
||||
REFRIGERATOR(R.drawable.ic_device_type_refrigerator, "冰箱"),
|
||||
SOCKET(R.drawable.ic_device_type_socket, "插座"),
|
||||
WASHER(R.drawable.ic_device_type_washer, "洗衣机"),
|
||||
DEVICE(R.drawable.ic_device_type_custom, "设备"),
|
||||
|
||||
POWER_SWITCH(R.drawable.ic_device_type_switch, R.drawable.ic_device_type_switch, "开关"),
|
||||
LIGHT(R.drawable.ic_device_type_light, R.drawable.ic_device_type_light, "灯具"),
|
||||
CAMERA(R.drawable.ic_device_type_camera, R.drawable.ic_device_type_camera, "摄像机"),
|
||||
AIR_CONDITIONER(R.drawable.ic_device_type_air_conditioner, R.drawable.ic_device_type_air_conditioner, "空调"),
|
||||
REFRIGERATOR(R.drawable.ic_device_type_refrigerator, R.drawable.ic_device_type_refrigerator, "冰箱"),
|
||||
SOCKET(R.drawable.ic_device_type_socket, R.drawable.ic_device_type_socket, "插座"),
|
||||
WASHER(R.drawable.ic_device_type_washer, R.drawable.ic_device_type_washer, "洗衣机"),
|
||||
DEVICE(R.drawable.ic_device_type_custom, R.drawable.ic_device_type_custom, "设备"),
|
||||
;
|
||||
|
||||
/**
|
||||
* 资源id
|
||||
* 暗色资源id
|
||||
*/
|
||||
private Integer iconId;
|
||||
private Integer iconIdDark;
|
||||
|
||||
/**
|
||||
* 亮色资源id
|
||||
*/
|
||||
private Integer iconIdLight;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String desc;
|
||||
|
||||
IconEnum(Integer iconId, String desc) {
|
||||
this.iconId = iconId;
|
||||
IconEnum(Integer iconIdDark, Integer iconIdLight, String desc) {
|
||||
this.iconIdDark = iconIdDark;
|
||||
this.iconIdLight = iconIdLight;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public Integer getIconId() {
|
||||
return iconId;
|
||||
public Integer getIconIdDark() {
|
||||
return iconIdDark;
|
||||
}
|
||||
|
||||
public Integer getIconIdLight() {
|
||||
return iconIdLight;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
|
@ -20,7 +20,8 @@
|
||||
android:layout_height="50dp"
|
||||
android:layout_below="@id/activity_layout_title"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
android:id="@id/power_switch_set_activity_item_iconChange_text"
|
||||
|
Loading…
x
Reference in New Issue
Block a user