@@ -124,6 +124,7 @@ class MainActivity : ComponentActivity() {
124124 }
125125 startActivity(intent)
126126 }
127+
127128 MenuAction .REPORT -> {
128129 val intent = Intent (
129130 Intent .ACTION_SENDTO ,
@@ -150,60 +151,57 @@ class MainActivity : ComponentActivity() {
150151
151152 companion object {
152153 val menuItems = ArrayList <ContentItem <out DemoBase >>().apply {
153- add(0 , ContentItem (" Line Charts" ))
154- add(0 , ContentItem (" Line Charts" ))
155- add(1 , ContentItem (" Basic" , " Simple line chart." , LineChartActivity ::class .java))
156- add(2 , ContentItem (" Multiple" , " Show multiple data sets." , MultiLineChartActivity ::class .java))
157- add(3 , ContentItem (" Dual Axis" , " Line chart with dual y-axes." , LineChartDualAxisActivity ::class .java))
158- add(4 , ContentItem (" Inverted Axis" , " Inverted y-axis." , InvertedLineChartActivity ::class .java))
159- add(5 , ContentItem (" Cubic" , " Line chart with a cubic line shape." , CubicLineChartActivity ::class .java))
160- add(6 , ContentItem (" Colorful" , " Colorful line chart." , LineChartActivityColored ::class .java))
161- add(7 , ContentItem (" Performance" , " Render 30.000 data points smoothly." , PerformanceLineChart ::class .java))
162- add(8 , ContentItem (" Filled" , " Colored area between two lines." , FilledLineActivity ::class .java))
154+ add(ContentItem (" Line Charts" ))
155+ add(ContentItem (" Basic" , " Simple line chart." , LineChartActivity ::class .java))
156+ add(ContentItem (" Multiple" , " Show multiple data sets." , MultiLineChartActivity ::class .java))
157+ add(ContentItem (" Dual Axis" , " Line chart with dual y-axes." , LineChartDualAxisActivity ::class .java))
158+ add(ContentItem (" Inverted Axis" , " Inverted y-axis." , InvertedLineChartActivity ::class .java))
159+ add(ContentItem (" Cubic" , " Line chart with a cubic line shape." , CubicLineChartActivity ::class .java))
160+ add(ContentItem (" Colorful" , " Colorful line chart." , LineChartActivityColored ::class .java))
161+ add(ContentItem (" Performance" , " Render 30.000 data points smoothly." , PerformanceLineChart ::class .java))
162+ add(ContentItem (" Filled" , " Colored area between two lines." , FilledLineActivity ::class .java))
163163
164- add(9 , ContentItem (" Bar Charts" ))
165- add(10 , ContentItem (" Basic" , " Simple bar chart." , BarChartActivity ::class .java))
166- add(11 , ContentItem (" Basic 2" , " Variation of the simple bar chart." , AnotherBarActivity ::class .java))
167- add(12 , ContentItem (" Multiple" , " Show multiple data sets." , BarChartActivityMultiDataset ::class .java))
168- add(13 , ContentItem (" Horizontal" , " Render bar chart horizontally." , HorizontalBarChartActivity ::class .java))
169- add(14 , ContentItem (" Stacked" , " Stacked bar chart." , StackedBarActivity ::class .java))
170- add(15 , ContentItem (" Negative" , " Positive and negative values with unique colors." , BarChartPositiveNegative ::class .java))
171- // objects.add(16, ContentItem("Negative Horizontal", "demonstrates how to create a HorizontalBarChart with positive and negative values."))
172- add(17 , ContentItem (" Stacked 2" , " Stacked bar chart with negative values." , StackedBarActivityNegative ::class .java))
173- add(18 , ContentItem (" Sine" , " Sine function in bar chart format." , BarChartActivitySinus ::class .java))
164+ add(ContentItem (" Bar Charts" ))
165+ add(ContentItem (" Basic" , " Simple bar chart." , BarChartActivity ::class .java))
166+ add(ContentItem (" Basic 2" , " Variation of the simple bar chart." , AnotherBarActivity ::class .java))
167+ add(ContentItem (" Multiple" , " Show multiple data sets." , BarChartActivityMultiDataset ::class .java))
168+ add(ContentItem (" Horizontal" , " Render bar chart horizontally." , HorizontalBarChartActivity ::class .java))
169+ add(ContentItem (" Stacked" , " Stacked bar chart." , StackedBarActivity ::class .java))
170+ add(ContentItem (" Negative" , " Positive and negative values with unique colors." , BarChartPositiveNegative ::class .java))
171+ // objects.add(ContentItem("Negative Horizontal", "demonstrates how to create a HorizontalBarChart with positive and negative values."))
172+ add(ContentItem (" Stacked 2" , " Stacked bar chart with negative values." , StackedBarActivityNegative ::class .java))
173+ add(ContentItem (" Sine" , " Sine function in bar chart format." , BarChartActivitySinus ::class .java))
174174
175- add(19 , ContentItem (" Pie Charts" ))
176- add(20 , ContentItem (" Basic" , " Simple pie chart." , PieChartActivity ::class .java))
177- add(20 , ContentItem (" Basic" , " Rounded pie chart." , PieChartRoundedActivity ::class .java))
178- add(21 , ContentItem (" Value Lines" , " Stylish lines drawn outward from slices." , PiePolylineChartActivity ::class .java))
179- add(22 , ContentItem (" Half Pie" , " 180° (half) pie chart." , HalfPieChartActivity ::class .java))
175+ add(ContentItem (" Pie Charts" ))
176+ add(ContentItem (" Basic" , " Simple pie chart." , PieChartActivity ::class .java))
177+ add(ContentItem (" Basic" , " Rounded pie chart." , PieChartRoundedActivity ::class .java))
178+ add(ContentItem (" Value Lines" , " Stylish lines drawn outward from slices." , PiePolylineChartActivity ::class .java))
179+ add(ContentItem (" Half Pie" , " 180° (half) pie chart." , HalfPieChartActivity ::class .java))
180180 add(
181- 23 ,
182181 ContentItem (
183- " Specific positions" ,
184- " This demonstrates how to pass a list of specific positions for lines and labels on x and y axis" ,
182+ " Specific positions" , " This demonstrates how to pass a list of specific positions for lines and labels on x and y axis" ,
185183 SpecificPositionsLineChartActivity ::class .java
186184 )
187185 )
188186
189- add(24 , ContentItem (" Other Charts" ))
190- add(25 , ContentItem (" Combined Chart" , " Bar and line chart together." , CombinedChartActivity ::class .java))
191- add(26 , ContentItem (" Scatter Plot" , " Simple scatter plot." , ScatterChartActivity ::class .java))
192- add(27 , ContentItem (" Bubble Chart" , " Simple bubble chart." , BubbleChartActivity ::class .java))
193- add(28 , ContentItem (" Candlestick" , " Simple financial chart." , CandleStickChartActivity ::class .java))
194- add(29 , ContentItem (" Radar Chart" , " Simple web chart." , RadarChartActivity ::class .java))
187+ add(ContentItem (" Other Charts" ))
188+ add(ContentItem (" Combined Chart" , " Bar and line chart together." , CombinedChartActivity ::class .java))
189+ add(ContentItem (" Scatter Plot" , " Simple scatter plot." , ScatterChartActivity ::class .java))
190+ add(ContentItem (" Bubble Chart" , " Simple bubble chart." , BubbleChartActivity ::class .java))
191+ add(ContentItem (" Candlestick" , " Simple financial chart." , CandleStickChartActivity ::class .java))
192+ add(ContentItem (" Radar Chart" , " Simple web chart." , RadarChartActivity ::class .java))
195193
196- add(30 , ContentItem (" Scrolling Charts" ))
197- add(31 , ContentItem (" Multiple" , " Various types of charts as fragments." , ListViewMultiChartActivity ::class .java))
198- add(32 , ContentItem (" View Pager" , " Swipe through different charts." , ViewPagerSimpleChartDemo ::class .java))
199- add(33 , ContentItem (" Tall Bar Chart" , " Bars bigger than your screen!" , ScrollViewActivity ::class .java))
200- add(34 , ContentItem (" Many Bar Charts" , " More bars than your screen can handle!" , ListViewBarChartActivity ::class .java))
194+ add(ContentItem (" Scrolling Charts" ))
195+ add(ContentItem (" Multiple" , " Various types of charts as fragments." , ListViewMultiChartActivity ::class .java))
196+ add(ContentItem (" View Pager" , " Swipe through different charts." , ViewPagerSimpleChartDemo ::class .java))
197+ add(ContentItem (" Tall Bar Chart" , " Bars bigger than your screen!" , ScrollViewActivity ::class .java))
198+ add(ContentItem (" Many Bar Charts" , " More bars than your screen can handle!" , ListViewBarChartActivity ::class .java))
201199
202- add(35 , ContentItem (" Even More Line Charts" ))
203- add(36 , ContentItem (" Dynamic" , " Build a line chart by adding points and sets." , DynamicalAddingActivity ::class .java))
204- add(37 , ContentItem (" Realtime" , " Add data points in realtime." , RealtimeLineChartActivity ::class .java))
205- add(38 , ContentItem (" Hourly" , " Uses the current time to add a data point for each hour." , LineChartTimeActivity ::class .java))
206- // add(39, new ContentItem("Realm.io Examples", "See more examples that use Realm.io mobile database."));
200+ add(ContentItem (" Even More Line Charts" ))
201+ add(ContentItem (" Dynamic" , " Build a line chart by adding points and sets." , DynamicalAddingActivity ::class .java))
202+ add(ContentItem (" Realtime" , " Add data points in realtime." , RealtimeLineChartActivity ::class .java))
203+ add(ContentItem (" Hourly" , " Uses the current time to add a data point for each hour." , LineChartTimeActivity ::class .java))
204+ // add(new ContentItem("Realm.io Examples", "See more examples that use Realm.io mobile database."));
207205 }
208206 }
209207}
0 commit comments