#include "components/ui_button.h"\r
#include "components/ui_view_group.h"\r
#include "components/ui_slider.h"\r
+#include "components/ui_image_view.h"\r
#include "PlayersView.h"\r
#include "BaseView.h"\r
#include "wearable_log.h"\r
private:\r
VolumeSliderEventListener *listener{nullptr};\r
UISlider *progress{nullptr};\r
+ UIImageView* VolumeVetor = nullptr;\r
UIButton *increaseButton{nullptr};\r
UIButton *decreaseButton{nullptr};\r
int ShowVolume();\r
delete click;\r
click = nullptr;\r
}\r
+ delete VolumeVetor;\r
+ VolumeVetor = nullptr;\r
+ \r
delete increaseButton;\r
increaseButton = nullptr;\r
\r
progress->SetSliderColor(Color::GetColorFromRGBA(0x19, 0x19, 0x19, 0xff), Color::GetColorFromRGBA(0xff, 0xff, 0xff, 0xff));\r
progress->SetForegroundStyle(STYLE_BACKGROUND_OPA, 0xff);\r
\r
+ if(VolumeVetor == nullptr)\r
+ {\r
+ VolumeVetor = new UIImageView();\r
+ if (progress == nullptr) {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "VolumeVetor new fail");\r
+ return false;\r
+ }\r
+ }\r
+ VolumeVetor->SetPosition(213, 213,40,40);\r
+ VolumeVetor->SetSrc("/user/res/VolumeControlVector.bin");\r
+\r
if (listener == nullptr) {\r
listener = new VolumeSliderEventListener();\r
if (listener == nullptr) {\r
SetDraggable(true);\r
SetTouchable(true);\r
Add(progress);\r
+ Add(VolumeVetor);\r
ShowVolume();\r
\r
return true;\r