2626import com .xxmassdeveloper .mpchartexample .CandleStickChartActivity ;
2727import com .xxmassdeveloper .mpchartexample .CubicLineChartActivity ;
2828import com .xxmassdeveloper .mpchartexample .DynamicalAddingActivity ;
29+ import com .xxmassdeveloper .mpchartexample .HorizontalBarChartActivity ;
2930import com .xxmassdeveloper .mpchartexample .InvertedLineChartActivity ;
3031import com .xxmassdeveloper .mpchartexample .LineChartActivity1 ;
3132import com .xxmassdeveloper .mpchartexample .LineChartActivity2 ;
@@ -59,7 +60,8 @@ protected void onCreate(Bundle savedInstanceState) {
5960
6061 objects .add (new ContentItem ("Line Chart 1" , "A simple demonstration of the linechart." ));
6162 objects .add (new ContentItem ("Line Chart 2" , "Another simple demonstration of the linechart." ));
62- objects .add (new ContentItem ("Bar Chart" , "A simple demonstration of the bar chart." ));
63+ objects .add (new ContentItem ("Bar Chart" , "A simple demonstration of the bar chart." ));
64+ objects .add (new ContentItem ("Horizontal Bar Chart" , "A simple demonstration of the horizontal bar chart." ));
6365 objects .add (new ContentItem ("Pie Chart" , "A simple demonstration of the pie chart." ));
6466 objects .add (new ContentItem ("Scatter Chart" , "A simple demonstration of the scatter chart." ));
6567 objects .add (new ContentItem ("Stacked Bar Chart" ,
@@ -122,35 +124,39 @@ public void onItemClick(AdapterView<?> av, View v, int pos, long arg3) {
122124 i = new Intent (this , LineChartActivity2 .class );
123125 startActivity (i );
124126 break ;
125- case 2 :
126- i = new Intent (this , BarChartActivity .class );
127- startActivity (i );
128- break ;
129- case 3 :
127+ case 2 :
128+ i = new Intent (this , BarChartActivity .class );
129+ startActivity (i );
130+ break ;
131+ case 3 :
132+ i = new Intent (this , HorizontalBarChartActivity .class );
133+ startActivity (i );
134+ break ;
135+ case 4 :
130136 i = new Intent (this , PieChartActivity .class );
131137 startActivity (i );
132138 break ;
133- case 4 :
139+ case 5 :
134140 i = new Intent (this , ScatterChartActivity .class );
135141 startActivity (i );
136142 break ;
137- case 5 :
143+ case 6 :
138144 i = new Intent (this , StackedBarActivity .class );
139145 startActivity (i );
140146 break ;
141- case 6 :
147+ case 7 :
142148 i = new Intent (this , AnotherBarActivity .class );
143149 startActivity (i );
144150 break ;
145- case 7 :
151+ case 8 :
146152 i = new Intent (this , MultiLineChartActivity .class );
147153 startActivity (i );
148154 break ;
149- case 8 :
155+ case 9 :
150156 i = new Intent (this , BarChartActivityMultiDataset .class );
151157 startActivity (i );
152158 break ;
153- case 9 :
159+ case 10 :
154160// i = new Intent(this, DrawChartActivity.class);
155161// startActivity(i);
156162
@@ -160,39 +166,39 @@ public void onItemClick(AdapterView<?> av, View v, int pos, long arg3) {
160166 b .setPositiveButton ("OK" , null );
161167 b .create ().show ();
162168 break ;
163- case 10 :
169+ case 11 :
164170 i = new Intent (this , SimpleChartDemo .class );
165171 startActivity (i );
166172 break ;
167- case 11 :
173+ case 12 :
168174 i = new Intent (this , ListViewBarChartActivity .class );
169175 startActivity (i );
170176 break ;
171- case 12 :
177+ case 13 :
172178 i = new Intent (this , ListViewMultiChartActivity .class );
173179 startActivity (i );
174180 break ;
175- case 13 :
181+ case 14 :
176182 i = new Intent (this , InvertedLineChartActivity .class );
177183 startActivity (i );
178184 break ;
179- case 14 :
185+ case 15 :
180186 i = new Intent (this , CandleStickChartActivity .class );
181187 startActivity (i );
182188 break ;
183- case 15 :
189+ case 16 :
184190 i = new Intent (this , CubicLineChartActivity .class );
185191 startActivity (i );
186192 break ;
187- case 16 :
193+ case 17 :
188194 i = new Intent (this , RadarChartActivitry .class );
189195 startActivity (i );
190196 break ;
191- case 17 :
197+ case 18 :
192198 i = new Intent (this , LineChartActivityColored .class );
193199 startActivity (i );
194200 break ;
195- case 18 :
201+ case 19 :
196202 i = new Intent (this , DynamicalAddingActivity .class );
197203 startActivity (i );
198204 break ;
0 commit comments