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
|
* @date 2022/10/25 14:57
|
||||||
*/
|
*/
|
||||||
public enum IconEnum {
|
public enum IconEnum {
|
||||||
POWER_SWITCH(R.drawable.ic_device_type_switch, "开关"),
|
|
||||||
LIGHT(R.drawable.ic_device_type_light, "灯具"),
|
POWER_SWITCH(R.drawable.ic_device_type_switch, R.drawable.ic_device_type_switch, "开关"),
|
||||||
CAMERA(R.drawable.ic_device_type_camera, "摄像机"),
|
LIGHT(R.drawable.ic_device_type_light, R.drawable.ic_device_type_light, "灯具"),
|
||||||
AIR_CONDITIONER(R.drawable.ic_device_type_air_conditioner, "空调"),
|
CAMERA(R.drawable.ic_device_type_camera, R.drawable.ic_device_type_camera, "摄像机"),
|
||||||
REFRIGERATOR(R.drawable.ic_device_type_refrigerator, "冰箱"),
|
AIR_CONDITIONER(R.drawable.ic_device_type_air_conditioner, R.drawable.ic_device_type_air_conditioner, "空调"),
|
||||||
SOCKET(R.drawable.ic_device_type_socket, "插座"),
|
REFRIGERATOR(R.drawable.ic_device_type_refrigerator, R.drawable.ic_device_type_refrigerator, "冰箱"),
|
||||||
WASHER(R.drawable.ic_device_type_washer, "洗衣机"),
|
SOCKET(R.drawable.ic_device_type_socket, R.drawable.ic_device_type_socket, "插座"),
|
||||||
DEVICE(R.drawable.ic_device_type_custom, "设备"),
|
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;
|
private String desc;
|
||||||
|
|
||||||
IconEnum(Integer iconId, String desc) {
|
IconEnum(Integer iconIdDark, Integer iconIdLight, String desc) {
|
||||||
this.iconId = iconId;
|
this.iconIdDark = iconIdDark;
|
||||||
|
this.iconIdLight = iconIdLight;
|
||||||
this.desc = desc;
|
this.desc = desc;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getIconId() {
|
public Integer getIconIdDark() {
|
||||||
return iconId;
|
return iconIdDark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getIconIdLight() {
|
||||||
|
return iconIdLight;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDesc() {
|
public String getDesc() {
|
||||||
|
@ -20,7 +20,8 @@
|
|||||||
android:layout_height="50dp"
|
android:layout_height="50dp"
|
||||||
android:layout_below="@id/activity_layout_title"
|
android:layout_below="@id/activity_layout_title"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@id/power_switch_set_activity_item_iconChange_text"
|
android:id="@id/power_switch_set_activity_item_iconChange_text"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user