File tree Expand file tree Collapse file tree
androidplot-core/src/main Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,25 +145,25 @@ public enum BorderStyle {
145145 */
146146 public enum RenderMode {
147147 /**
148- * Use a second thread and an off-screen buffer to do drawing. This is the preferred method
149- * of drawing dynamic data and static data that consists of a large number of points. This mode
150- * provides more efficient CPU utilization at the cost of increased memory usage. As of
151- * version 0.5.1 this is the default RenderMode.
148+ * Do everything in the primary thread. This is the preferred method of drawing static charts
149+ * and dynamic data that consists of a small number of points. This mode uses less memory at
150+ * the cost of poor CPU utilization.
152151 *
153- * XML value: use_background_thread
152+ * XML value: use_main_thread
154153 * @since 0.5.1
155154 */
156- USE_BACKGROUND_THREAD ,
155+ USE_MAIN_THREAD ,
157156
158157 /**
159- * Do everything in the primary thread. This is the preferred method of drawing static charts
160- * and dynamic data that consists of a small number of points. This mode uses less memory at
161- * the cost of poor CPU utilization.
158+ * Use a second thread and an off-screen buffer to do drawing. This is the preferred method
159+ * of drawing dynamic data and static data that consists of a large number of points. This mode
160+ * provides more efficient CPU utilization at the cost of increased memory usage. As of
161+ * version 0.5.1 this is the default RenderMode.
162162 *
163- * XML value: use_main_thread
163+ * XML value: use_background_thread
164164 * @since 0.5.1
165165 */
166- USE_MAIN_THREAD
166+ USE_BACKGROUND_THREAD
167167 }
168168 private BoxModel boxModel = new BoxModel ();
169169
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ Supported Elements:
3030<resources >
3131
3232 <attr name =" renderMode" format =" enum" >
33- <enum name =" use_background_thread" value =" 0" />
3433 <enum name =" use_main_thread" value =" 0" />
34+ <enum name =" use_background_thread" value =" 1" />
3535 </attr >
3636
3737 <attr name =" previewMode" format =" enum" >
You can’t perform that action at this time.
0 commit comments