lecho.lib.hellocharts.util.Utils Java Examples
The following examples show how to use
lecho.lib.hellocharts.util.Utils.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BIGChart.java From xDrip-Experimental with GNU General Public License v3.0 | 4 votes |
protected void setColorBright() { if (getCurrentWatchMode() == WatchMode.INTERACTIVE) { mRelativeLayout.setBackgroundColor(Color.WHITE); if (sgvLevel == 1) { mSgv.setTextColor(Utils.COLOR_ORANGE); mDelta.setTextColor(Utils.COLOR_ORANGE); } else if (sgvLevel == 0) { mSgv.setTextColor(Color.BLACK); mDelta.setTextColor(Color.BLACK); } else if (sgvLevel == -1) { mSgv.setTextColor(Color.RED); mDelta.setTextColor(Color.RED); } if (ageLevel == 1) { mTimestamp.setTextColor(Color.BLACK); } else { mTimestamp.setTextColor(Color.RED); } mTime.setTextColor(Color.BLACK); if (chart != null) { highColor = Utils.COLOR_ORANGE; midColor = Color.BLUE; lowColor = Color.RED; singleLine = false; pointSize = 2; setupCharts(); } } else { mRelativeLayout.setBackgroundColor(Color.BLACK); if (sgvLevel == 1) { mSgv.setTextColor(Color.YELLOW); mDelta.setTextColor(Color.YELLOW); } else if (sgvLevel == 0) { mSgv.setTextColor(Color.WHITE); mDelta.setTextColor(Color.WHITE); } else if (sgvLevel == -1) { mSgv.setTextColor(Color.RED); mDelta.setTextColor(Color.RED); } mTimestamp.setTextColor(Color.WHITE); mTime.setTextColor(Color.WHITE); if (chart != null) { highColor = Color.YELLOW; midColor = Color.WHITE; lowColor = Color.RED; singleLine = true; pointSize = 2; setupCharts(); } } }
Example #2
Source File: Home.java From xDrip-Experimental with GNU General Public License v3.0 | 4 votes |
protected void setColorBright() { if (getCurrentWatchMode() == WatchMode.INTERACTIVE) { mRelativeLayout.setBackgroundColor(Color.WHITE); mLinearLayout.setBackgroundColor(Color.BLACK); if (sgvLevel == 1) { mSgv.setTextColor(Utils.COLOR_ORANGE); mDirection.setTextColor(Utils.COLOR_ORANGE); mDelta.setTextColor(Utils.COLOR_ORANGE); } else if (sgvLevel == 0) { mSgv.setTextColor(Color.BLACK); mDirection.setTextColor(Color.BLACK); mDelta.setTextColor(Color.BLACK); } else if (sgvLevel == -1) { mSgv.setTextColor(Color.RED); mDirection.setTextColor(Color.RED); mDelta.setTextColor(Color.RED); } if (ageLevel == 1) { mTimestamp.setTextColor(Color.WHITE); } else { mTimestamp.setTextColor(Color.RED); } if (batteryLevel == 1) { mUploaderBattery.setTextColor(Color.WHITE); } else { mUploaderBattery.setTextColor(Color.RED); } mRaw.setTextColor(Color.WHITE); mStatus.setTextColor(Color.WHITE); mTime.setTextColor(Color.BLACK); if (chart != null) { highColor = Utils.COLOR_ORANGE; midColor = Color.BLUE; lowColor = Color.RED; singleLine = false; pointSize = 2; setupCharts(); } } else { mRelativeLayout.setBackgroundColor(Color.BLACK); mLinearLayout.setBackgroundColor(Color.WHITE); if (sgvLevel == 1) { mSgv.setTextColor(Color.YELLOW); mDirection.setTextColor(Color.YELLOW); mDelta.setTextColor(Color.YELLOW); } else if (sgvLevel == 0) { mSgv.setTextColor(Color.WHITE); mDirection.setTextColor(Color.WHITE); mDelta.setTextColor(Color.WHITE); } else if (sgvLevel == -1) { mSgv.setTextColor(Color.RED); mDirection.setTextColor(Color.RED); mDelta.setTextColor(Color.RED); } mRaw.setTextColor(Color.BLACK); mStatus.setTextColor(Color.BLACK); mUploaderBattery.setTextColor(Color.BLACK); mTimestamp.setTextColor(Color.BLACK); mTime.setTextColor(Color.WHITE); if (chart != null) { highColor = Color.YELLOW; midColor = Color.WHITE; lowColor = Color.RED; singleLine = true; pointSize = 2; setupCharts(); } } }
Example #3
Source File: BIGChart.java From NightWatch with GNU General Public License v3.0 | 4 votes |
protected void setColorBright() { if (getCurrentWatchMode() == WatchMode.INTERACTIVE) { mRelativeLayout.setBackgroundColor(Color.WHITE); if (sgvLevel == 1) { mSgv.setTextColor(Utils.COLOR_ORANGE); mDelta.setTextColor(Utils.COLOR_ORANGE); } else if (sgvLevel == 0) { mSgv.setTextColor(Color.BLACK); mDelta.setTextColor(Color.BLACK); } else if (sgvLevel == -1) { mSgv.setTextColor(Color.RED); mDelta.setTextColor(Color.RED); } if (ageLevel == 1) { mTimestamp.setTextColor(Color.BLACK); } else { mTimestamp.setTextColor(Color.RED); } mTime.setTextColor(Color.BLACK); if (chart != null) { highColor = Utils.COLOR_ORANGE; midColor = Color.BLUE; lowColor = Color.RED; singleLine = false; pointSize = 2; setupCharts(); } } else { mRelativeLayout.setBackgroundColor(Color.BLACK); if (sgvLevel == 1) { mSgv.setTextColor(Color.YELLOW); mDelta.setTextColor(Color.YELLOW); } else if (sgvLevel == 0) { mSgv.setTextColor(Color.WHITE); mDelta.setTextColor(Color.WHITE); } else if (sgvLevel == -1) { mSgv.setTextColor(Color.RED); mDelta.setTextColor(Color.RED); } mTimestamp.setTextColor(Color.WHITE); mTime.setTextColor(Color.WHITE); if (chart != null) { highColor = Color.YELLOW; midColor = Color.WHITE; lowColor = Color.RED; singleLine = true; pointSize = 2; setupCharts(); } } }
Example #4
Source File: Home.java From NightWatch with GNU General Public License v3.0 | 4 votes |
protected void setColorBright() { if (getCurrentWatchMode() == WatchMode.INTERACTIVE) { mRelativeLayout.setBackgroundColor(Color.WHITE); mLinearLayout.setBackgroundColor(Color.BLACK); if (sgvLevel == 1) { mSgv.setTextColor(Utils.COLOR_ORANGE); mDirection.setTextColor(Utils.COLOR_ORANGE); mDelta.setTextColor(Utils.COLOR_ORANGE); } else if (sgvLevel == 0) { mSgv.setTextColor(Color.BLACK); mDirection.setTextColor(Color.BLACK); mDelta.setTextColor(Color.BLACK); } else if (sgvLevel == -1) { mSgv.setTextColor(Color.RED); mDirection.setTextColor(Color.RED); mDelta.setTextColor(Color.RED); } if (ageLevel == 1) { mTimestamp.setTextColor(Color.WHITE); } else { mTimestamp.setTextColor(Color.RED); } if (batteryLevel == 1) { mUploaderBattery.setTextColor(Color.WHITE); } else { mUploaderBattery.setTextColor(Color.RED); } mRaw.setTextColor(Color.WHITE); mTime.setTextColor(Color.BLACK); if (chart != null) { highColor = Utils.COLOR_ORANGE; midColor = Color.BLUE; lowColor = Color.RED; singleLine = false; pointSize = 2; setupCharts(); } } else { mRelativeLayout.setBackgroundColor(Color.BLACK); mLinearLayout.setBackgroundColor(Color.WHITE); if (sgvLevel == 1) { mSgv.setTextColor(Color.YELLOW); mDirection.setTextColor(Color.YELLOW); mDelta.setTextColor(Color.YELLOW); } else if (sgvLevel == 0) { mSgv.setTextColor(Color.WHITE); mDirection.setTextColor(Color.WHITE); mDelta.setTextColor(Color.WHITE); } else if (sgvLevel == -1) { mSgv.setTextColor(Color.RED); mDirection.setTextColor(Color.RED); mDelta.setTextColor(Color.RED); } mRaw.setTextColor(Color.BLACK); mUploaderBattery.setTextColor(Color.BLACK); mTimestamp.setTextColor(Color.BLACK); mTime.setTextColor(Color.WHITE); if (chart != null) { highColor = Color.YELLOW; midColor = Color.WHITE; lowColor = Color.RED; singleLine = true; pointSize = 2; setupCharts(); } } }
Example #5
Source File: BIGChart.java From NightWatch with GNU General Public License v3.0 | 4 votes |
protected void setColorBright() { if (getCurrentWatchMode() == WatchMode.INTERACTIVE) { mRelativeLayout.setBackgroundColor(Color.WHITE); if (sgvLevel == 1) { mSgv.setTextColor(Utils.COLOR_ORANGE); mDelta.setTextColor(Utils.COLOR_ORANGE); } else if (sgvLevel == 0) { mSgv.setTextColor(Color.BLACK); mDelta.setTextColor(Color.BLACK); } else if (sgvLevel == -1) { mSgv.setTextColor(Color.RED); mDelta.setTextColor(Color.RED); } if (ageLevel == 1) { mTimestamp.setTextColor(Color.BLACK); } else { mTimestamp.setTextColor(Color.RED); } mTime.setTextColor(Color.BLACK); if (chart != null) { highColor = Utils.COLOR_ORANGE; midColor = Color.BLUE; lowColor = Color.RED; singleLine = false; pointSize = 2; setupCharts(); } } else { mRelativeLayout.setBackgroundColor(Color.BLACK); if (sgvLevel == 1) { mSgv.setTextColor(Color.YELLOW); mDelta.setTextColor(Color.YELLOW); } else if (sgvLevel == 0) { mSgv.setTextColor(Color.WHITE); mDelta.setTextColor(Color.WHITE); } else if (sgvLevel == -1) { mSgv.setTextColor(Color.RED); mDelta.setTextColor(Color.RED); } mTimestamp.setTextColor(Color.WHITE); mTime.setTextColor(Color.WHITE); if (chart != null) { highColor = Color.YELLOW; midColor = Color.WHITE; lowColor = Color.RED; singleLine = true; pointSize = 2; setupCharts(); } } }
Example #6
Source File: Home.java From NightWatch with GNU General Public License v3.0 | 4 votes |
protected void setColorBright() { if (getCurrentWatchMode() == WatchMode.INTERACTIVE) { mRelativeLayout.setBackgroundColor(Color.WHITE); mLinearLayout.setBackgroundColor(Color.BLACK); if (sgvLevel == 1) { mSgv.setTextColor(Utils.COLOR_ORANGE); mDirection.setTextColor(Utils.COLOR_ORANGE); mDelta.setTextColor(Utils.COLOR_ORANGE); } else if (sgvLevel == 0) { mSgv.setTextColor(Color.BLACK); mDirection.setTextColor(Color.BLACK); mDelta.setTextColor(Color.BLACK); } else if (sgvLevel == -1) { mSgv.setTextColor(Color.RED); mDirection.setTextColor(Color.RED); mDelta.setTextColor(Color.RED); } if (ageLevel == 1) { mTimestamp.setTextColor(Color.WHITE); } else { mTimestamp.setTextColor(Color.RED); } if (batteryLevel == 1) { mUploaderBattery.setTextColor(Color.WHITE); } else { mUploaderBattery.setTextColor(Color.RED); } mRaw.setTextColor(Color.WHITE); mTime.setTextColor(Color.BLACK); if (chart != null) { highColor = Utils.COLOR_ORANGE; midColor = Color.BLUE; lowColor = Color.RED; singleLine = false; pointSize = 2; setupCharts(); } } else { mRelativeLayout.setBackgroundColor(Color.BLACK); mLinearLayout.setBackgroundColor(Color.WHITE); if (sgvLevel == 1) { mSgv.setTextColor(Color.YELLOW); mDirection.setTextColor(Color.YELLOW); mDelta.setTextColor(Color.YELLOW); } else if (sgvLevel == 0) { mSgv.setTextColor(Color.WHITE); mDirection.setTextColor(Color.WHITE); mDelta.setTextColor(Color.WHITE); } else if (sgvLevel == -1) { mSgv.setTextColor(Color.RED); mDirection.setTextColor(Color.RED); mDelta.setTextColor(Color.RED); } mRaw.setTextColor(Color.BLACK); mUploaderBattery.setTextColor(Color.BLACK); mTimestamp.setTextColor(Color.BLACK); mTime.setTextColor(Color.WHITE); if (chart != null) { highColor = Color.YELLOW; midColor = Color.WHITE; lowColor = Color.RED; singleLine = true; pointSize = 2; setupCharts(); } } }