├── .classpath ├── .project ├── .settings └── org.eclipse.core.resources.prefs ├── AndroidManifest.xml ├── README.md ├── bin ├── AndroidManifest.xml └── R.txt ├── ic_launcher-web.png ├── libs └── android-support-v4.jar ├── proguard-project.txt ├── project.properties ├── res ├── drawable-hdpi │ ├── filled_box.xml │ ├── ic_launcher.png │ ├── wheel_bg.xml │ └── wheel_val.xml ├── drawable-mdpi │ └── ic_launcher.png ├── drawable-xhdpi │ └── ic_launcher.png ├── drawable-xxhdpi │ └── ic_launcher.png ├── layout │ ├── activity_main.xml │ └── areawheel.xml ├── values-w820dp │ └── dimens.xml └── values │ ├── arrays.xml │ ├── dimens.xml │ ├── strings.xml │ └── styles.xml └── src └── com └── yzr └── areawheel ├── AreaWheel.java ├── MainActivity.java ├── OnWheelChangedListener.java ├── OnWheelScrollListener.java ├── ScreenInfo.java ├── ShengWheelAdapter.java ├── ShiWheelAdapter.java ├── WheelAdapter.java └── WheelView.java /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | AreaWheel 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/com/yzr/areawheel/AreaWheel.java=UTF-8 3 | encoding//src/com/yzr/areawheel/ScreenInfo.java=UTF-8 4 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 16 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | AreaWheel 2 | ========= 3 | 4 | 基于android-wheel修改的省市二级联动滑轮控件 5 | 6 | 基本功能 7 | ----------------------------------- 8 | 显示Dialog样式滑轮控件,通过滑动选择省市,点击title显示。 9 | 10 | ###修改了WheelView的样式、颜色、大小,并添加了部分中文注释 11 | 12 | ###实现AreaWheel显示省市数据 13 | -------------------------------------------------------------------------------- /bin/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 16 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /bin/R.txt: -------------------------------------------------------------------------------- 1 | int anim abc_fade_in 0x7f040000 2 | int anim abc_fade_out 0x7f040001 3 | int anim abc_slide_in_bottom 0x7f040002 4 | int anim abc_slide_in_top 0x7f040003 5 | int anim abc_slide_out_bottom 0x7f040004 6 | int anim abc_slide_out_top 0x7f040005 7 | int array anhui_province_item 0x7f0c000c 8 | int array aomen_province_item 0x7f0c0021 9 | int array beijin_province_item 0x7f0c0001 10 | int array chongqing_province_item 0x7f0c0016 11 | int array fujian_province_item 0x7f0c000d 12 | int array gansu_province_item 0x7f0c001c 13 | int array guangdong_province_item 0x7f0c0013 14 | int array guangxi_province_item 0x7f0c0014 15 | int array guizhou_province_item 0x7f0c0018 16 | int array hainan_province_item 0x7f0c0015 17 | int array heibei_province_item 0x7f0c0003 18 | int array heilongjiang_province_item 0x7f0c0008 19 | int array henan_province_item 0x7f0c0010 20 | int array hongkong_province_item 0x7f0c0020 21 | int array hubei_province_item 0x7f0c0011 22 | int array hunan_province_item 0x7f0c0012 23 | int array jiangsu_province_item 0x7f0c000a 24 | int array jiangxi_province_item 0x7f0c000e 25 | int array jilin_province_item 0x7f0c0007 26 | int array liaoning_province_item 0x7f0c0006 27 | int array neimenggu_province_item 0x7f0c0005 28 | int array ningxia_province_item 0x7f0c001e 29 | int array province_item 0x7f0c0000 30 | int array qinghai_province_item 0x7f0c001d 31 | int array shandong_province_item 0x7f0c000f 32 | int array shanghai_province_item 0x7f0c0009 33 | int array shanxi1_province_item 0x7f0c0004 34 | int array shanxi2_province_item 0x7f0c001b 35 | int array sichuan_province_item 0x7f0c0017 36 | int array taiwan_province_item 0x7f0c0022 37 | int array tianjin_province_item 0x7f0c0002 38 | int array xinjiang_province_item 0x7f0c001f 39 | int array xizang_province_item 0x7f0c001a 40 | int array yunnan_province_item 0x7f0c0019 41 | int array zhejiang_province_item 0x7f0c000b 42 | int attr actionBarDivider 0x7f01000f 43 | int attr actionBarItemBackground 0x7f010010 44 | int attr actionBarSize 0x7f01000e 45 | int attr actionBarSplitStyle 0x7f01000c 46 | int attr actionBarStyle 0x7f01000b 47 | int attr actionBarTabBarStyle 0x7f010008 48 | int attr actionBarTabStyle 0x7f010007 49 | int attr actionBarTabTextStyle 0x7f010009 50 | int attr actionBarWidgetTheme 0x7f01000d 51 | int attr actionButtonStyle 0x7f010016 52 | int attr actionDropDownStyle 0x7f010047 53 | int attr actionLayout 0x7f01004e 54 | int attr actionMenuTextAppearance 0x7f010011 55 | int attr actionMenuTextColor 0x7f010012 56 | int attr actionModeBackground 0x7f01003c 57 | int attr actionModeCloseButtonStyle 0x7f01003b 58 | int attr actionModeCloseDrawable 0x7f01003e 59 | int attr actionModeCopyDrawable 0x7f010040 60 | int attr actionModeCutDrawable 0x7f01003f 61 | int attr actionModeFindDrawable 0x7f010044 62 | int attr actionModePasteDrawable 0x7f010041 63 | int attr actionModePopupWindowStyle 0x7f010046 64 | int attr actionModeSelectAllDrawable 0x7f010042 65 | int attr actionModeShareDrawable 0x7f010043 66 | int attr actionModeSplitBackground 0x7f01003d 67 | int attr actionModeStyle 0x7f01003a 68 | int attr actionModeWebSearchDrawable 0x7f010045 69 | int attr actionOverflowButtonStyle 0x7f01000a 70 | int attr actionProviderClass 0x7f010050 71 | int attr actionViewClass 0x7f01004f 72 | int attr activityChooserViewStyle 0x7f01006c 73 | int attr background 0x7f01002f 74 | int attr backgroundSplit 0x7f010031 75 | int attr backgroundStacked 0x7f010030 76 | int attr buttonBarButtonStyle 0x7f010018 77 | int attr buttonBarStyle 0x7f010017 78 | int attr customNavigationLayout 0x7f010032 79 | int attr disableChildrenWhenDisabled 0x7f010054 80 | int attr displayOptions 0x7f010028 81 | int attr divider 0x7f01002e 82 | int attr dividerHorizontal 0x7f01001b 83 | int attr dividerPadding 0x7f010056 84 | int attr dividerVertical 0x7f01001a 85 | int attr dropDownListViewStyle 0x7f010021 86 | int attr dropdownListPreferredItemHeight 0x7f010048 87 | int attr expandActivityOverflowButtonDrawable 0x7f01006b 88 | int attr height 0x7f010026 89 | int attr homeAsUpIndicator 0x7f010013 90 | int attr homeLayout 0x7f010033 91 | int attr icon 0x7f01002c 92 | int attr iconifiedByDefault 0x7f01005a 93 | int attr indeterminateProgressStyle 0x7f010035 94 | int attr initialActivityCount 0x7f01006a 95 | int attr isLightTheme 0x7f010059 96 | int attr itemPadding 0x7f010037 97 | int attr listChoiceBackgroundIndicator 0x7f01004c 98 | int attr listPopupWindowStyle 0x7f010022 99 | int attr listPreferredItemHeight 0x7f01001c 100 | int attr listPreferredItemHeightLarge 0x7f01001e 101 | int attr listPreferredItemHeightSmall 0x7f01001d 102 | int attr listPreferredItemPaddingLeft 0x7f01001f 103 | int attr listPreferredItemPaddingRight 0x7f010020 104 | int attr logo 0x7f01002d 105 | int attr navigationMode 0x7f010027 106 | int attr paddingEnd 0x7f010039 107 | int attr paddingStart 0x7f010038 108 | int attr panelMenuListTheme 0x7f01004b 109 | int attr panelMenuListWidth 0x7f01004a 110 | int attr popupMenuStyle 0x7f010049 111 | int attr popupPromptView 0x7f010053 112 | int attr progressBarPadding 0x7f010036 113 | int attr progressBarStyle 0x7f010034 114 | int attr prompt 0x7f010051 115 | int attr queryHint 0x7f01005b 116 | int attr searchDropdownBackground 0x7f01005c 117 | int attr searchResultListItemHeight 0x7f010065 118 | int attr searchViewAutoCompleteTextView 0x7f010069 119 | int attr searchViewCloseIcon 0x7f01005d 120 | int attr searchViewEditQuery 0x7f010061 121 | int attr searchViewEditQueryBackground 0x7f010062 122 | int attr searchViewGoIcon 0x7f01005e 123 | int attr searchViewSearchIcon 0x7f01005f 124 | int attr searchViewTextField 0x7f010063 125 | int attr searchViewTextFieldRight 0x7f010064 126 | int attr searchViewVoiceIcon 0x7f010060 127 | int attr selectableItemBackground 0x7f010019 128 | int attr showAsAction 0x7f01004d 129 | int attr showDividers 0x7f010055 130 | int attr spinnerDropDownItemStyle 0x7f010058 131 | int attr spinnerMode 0x7f010052 132 | int attr spinnerStyle 0x7f010057 133 | int attr subtitle 0x7f010029 134 | int attr subtitleTextStyle 0x7f01002b 135 | int attr textAllCaps 0x7f01006d 136 | int attr textAppearanceLargePopupMenu 0x7f010014 137 | int attr textAppearanceListItem 0x7f010023 138 | int attr textAppearanceListItemSmall 0x7f010024 139 | int attr textAppearanceSearchResultSubtitle 0x7f010067 140 | int attr textAppearanceSearchResultTitle 0x7f010066 141 | int attr textAppearanceSmallPopupMenu 0x7f010015 142 | int attr textColorSearchUrl 0x7f010068 143 | int attr title 0x7f010025 144 | int attr titleTextStyle 0x7f01002a 145 | int attr windowActionBar 0x7f010000 146 | int attr windowActionBarOverlay 0x7f010001 147 | int attr windowFixedHeightMajor 0x7f010006 148 | int attr windowFixedHeightMinor 0x7f010004 149 | int attr windowFixedWidthMajor 0x7f010003 150 | int attr windowFixedWidthMinor 0x7f010005 151 | int attr windowSplitActionBar 0x7f010002 152 | int bool abc_action_bar_embed_tabs_pre_jb 0x7f060000 153 | int bool abc_action_bar_expanded_action_views_exclusive 0x7f060001 154 | int bool abc_config_actionMenuItemAllCaps 0x7f060005 155 | int bool abc_config_allowActionMenuItemTextWithIcon 0x7f060004 156 | int bool abc_config_showMenuShortcutsWhenKeyboardPresent 0x7f060003 157 | int bool abc_split_action_bar_is_narrow 0x7f060002 158 | int color abc_search_url_text_holo 0x7f070003 159 | int color abc_search_url_text_normal 0x7f070000 160 | int color abc_search_url_text_pressed 0x7f070002 161 | int color abc_search_url_text_selected 0x7f070001 162 | int dimen abc_action_bar_default_height 0x7f080002 163 | int dimen abc_action_bar_icon_vertical_padding 0x7f080003 164 | int dimen abc_action_bar_progress_bar_size 0x7f08000a 165 | int dimen abc_action_bar_stacked_max_height 0x7f080009 166 | int dimen abc_action_bar_stacked_tab_max_width 0x7f080001 167 | int dimen abc_action_bar_subtitle_bottom_margin 0x7f080007 168 | int dimen abc_action_bar_subtitle_text_size 0x7f080005 169 | int dimen abc_action_bar_subtitle_top_margin 0x7f080006 170 | int dimen abc_action_bar_title_text_size 0x7f080004 171 | int dimen abc_action_button_min_width 0x7f080008 172 | int dimen abc_config_prefDialogWidth 0x7f080000 173 | int dimen abc_dropdownitem_icon_width 0x7f080010 174 | int dimen abc_dropdownitem_text_padding_left 0x7f08000e 175 | int dimen abc_dropdownitem_text_padding_right 0x7f08000f 176 | int dimen abc_panel_menu_list_width 0x7f08000b 177 | int dimen abc_search_view_preferred_width 0x7f08000d 178 | int dimen abc_search_view_text_min_width 0x7f08000c 179 | int dimen activity_horizontal_margin 0x7f080015 180 | int dimen activity_vertical_margin 0x7f080016 181 | int dimen dialog_fixed_height_major 0x7f080013 182 | int dimen dialog_fixed_height_minor 0x7f080014 183 | int dimen dialog_fixed_width_major 0x7f080011 184 | int dimen dialog_fixed_width_minor 0x7f080012 185 | int drawable abc_ab_bottom_solid_dark_holo 0x7f020000 186 | int drawable abc_ab_bottom_solid_light_holo 0x7f020001 187 | int drawable abc_ab_bottom_transparent_dark_holo 0x7f020002 188 | int drawable abc_ab_bottom_transparent_light_holo 0x7f020003 189 | int drawable abc_ab_share_pack_holo_dark 0x7f020004 190 | int drawable abc_ab_share_pack_holo_light 0x7f020005 191 | int drawable abc_ab_solid_dark_holo 0x7f020006 192 | int drawable abc_ab_solid_light_holo 0x7f020007 193 | int drawable abc_ab_stacked_solid_dark_holo 0x7f020008 194 | int drawable abc_ab_stacked_solid_light_holo 0x7f020009 195 | int drawable abc_ab_stacked_transparent_dark_holo 0x7f02000a 196 | int drawable abc_ab_stacked_transparent_light_holo 0x7f02000b 197 | int drawable abc_ab_transparent_dark_holo 0x7f02000c 198 | int drawable abc_ab_transparent_light_holo 0x7f02000d 199 | int drawable abc_cab_background_bottom_holo_dark 0x7f02000e 200 | int drawable abc_cab_background_bottom_holo_light 0x7f02000f 201 | int drawable abc_cab_background_top_holo_dark 0x7f020010 202 | int drawable abc_cab_background_top_holo_light 0x7f020011 203 | int drawable abc_ic_ab_back_holo_dark 0x7f020012 204 | int drawable abc_ic_ab_back_holo_light 0x7f020013 205 | int drawable abc_ic_cab_done_holo_dark 0x7f020014 206 | int drawable abc_ic_cab_done_holo_light 0x7f020015 207 | int drawable abc_ic_clear 0x7f020016 208 | int drawable abc_ic_clear_disabled 0x7f020017 209 | int drawable abc_ic_clear_holo_light 0x7f020018 210 | int drawable abc_ic_clear_normal 0x7f020019 211 | int drawable abc_ic_clear_search_api_disabled_holo_light 0x7f02001a 212 | int drawable abc_ic_clear_search_api_holo_light 0x7f02001b 213 | int drawable abc_ic_commit_search_api_holo_dark 0x7f02001c 214 | int drawable abc_ic_commit_search_api_holo_light 0x7f02001d 215 | int drawable abc_ic_go 0x7f02001e 216 | int drawable abc_ic_go_search_api_holo_light 0x7f02001f 217 | int drawable abc_ic_menu_moreoverflow_normal_holo_dark 0x7f020020 218 | int drawable abc_ic_menu_moreoverflow_normal_holo_light 0x7f020021 219 | int drawable abc_ic_menu_share_holo_dark 0x7f020022 220 | int drawable abc_ic_menu_share_holo_light 0x7f020023 221 | int drawable abc_ic_search 0x7f020024 222 | int drawable abc_ic_search_api_holo_light 0x7f020025 223 | int drawable abc_ic_voice_search 0x7f020026 224 | int drawable abc_ic_voice_search_api_holo_light 0x7f020027 225 | int drawable abc_item_background_holo_dark 0x7f020028 226 | int drawable abc_item_background_holo_light 0x7f020029 227 | int drawable abc_list_divider_holo_dark 0x7f02002a 228 | int drawable abc_list_divider_holo_light 0x7f02002b 229 | int drawable abc_list_focused_holo 0x7f02002c 230 | int drawable abc_list_longpressed_holo 0x7f02002d 231 | int drawable abc_list_pressed_holo_dark 0x7f02002e 232 | int drawable abc_list_pressed_holo_light 0x7f02002f 233 | int drawable abc_list_selector_background_transition_holo_dark 0x7f020030 234 | int drawable abc_list_selector_background_transition_holo_light 0x7f020031 235 | int drawable abc_list_selector_disabled_holo_dark 0x7f020032 236 | int drawable abc_list_selector_disabled_holo_light 0x7f020033 237 | int drawable abc_list_selector_holo_dark 0x7f020034 238 | int drawable abc_list_selector_holo_light 0x7f020035 239 | int drawable abc_menu_dropdown_panel_holo_dark 0x7f020036 240 | int drawable abc_menu_dropdown_panel_holo_light 0x7f020037 241 | int drawable abc_menu_hardkey_panel_holo_dark 0x7f020038 242 | int drawable abc_menu_hardkey_panel_holo_light 0x7f020039 243 | int drawable abc_search_dropdown_dark 0x7f02003a 244 | int drawable abc_search_dropdown_light 0x7f02003b 245 | int drawable abc_spinner_ab_default_holo_dark 0x7f02003c 246 | int drawable abc_spinner_ab_default_holo_light 0x7f02003d 247 | int drawable abc_spinner_ab_disabled_holo_dark 0x7f02003e 248 | int drawable abc_spinner_ab_disabled_holo_light 0x7f02003f 249 | int drawable abc_spinner_ab_focused_holo_dark 0x7f020040 250 | int drawable abc_spinner_ab_focused_holo_light 0x7f020041 251 | int drawable abc_spinner_ab_holo_dark 0x7f020042 252 | int drawable abc_spinner_ab_holo_light 0x7f020043 253 | int drawable abc_spinner_ab_pressed_holo_dark 0x7f020044 254 | int drawable abc_spinner_ab_pressed_holo_light 0x7f020045 255 | int drawable abc_tab_indicator_ab_holo 0x7f020046 256 | int drawable abc_tab_selected_focused_holo 0x7f020047 257 | int drawable abc_tab_selected_holo 0x7f020048 258 | int drawable abc_tab_selected_pressed_holo 0x7f020049 259 | int drawable abc_tab_unselected_pressed_holo 0x7f02004a 260 | int drawable abc_textfield_search_default_holo_dark 0x7f02004b 261 | int drawable abc_textfield_search_default_holo_light 0x7f02004c 262 | int drawable abc_textfield_search_right_default_holo_dark 0x7f02004d 263 | int drawable abc_textfield_search_right_default_holo_light 0x7f02004e 264 | int drawable abc_textfield_search_right_selected_holo_dark 0x7f02004f 265 | int drawable abc_textfield_search_right_selected_holo_light 0x7f020050 266 | int drawable abc_textfield_search_selected_holo_dark 0x7f020051 267 | int drawable abc_textfield_search_selected_holo_light 0x7f020052 268 | int drawable abc_textfield_searchview_holo_dark 0x7f020053 269 | int drawable abc_textfield_searchview_holo_light 0x7f020054 270 | int drawable abc_textfield_searchview_right_holo_dark 0x7f020055 271 | int drawable abc_textfield_searchview_right_holo_light 0x7f020056 272 | int drawable filled_box 0x7f020057 273 | int drawable ic_launcher 0x7f020058 274 | int drawable wheel_bg 0x7f020059 275 | int drawable wheel_val 0x7f02005a 276 | int id action_bar 0x7f05001c 277 | int id action_bar_activity_content 0x7f050015 278 | int id action_bar_container 0x7f05001b 279 | int id action_bar_overlay_layout 0x7f05001f 280 | int id action_bar_root 0x7f05001a 281 | int id action_bar_subtitle 0x7f050023 282 | int id action_bar_title 0x7f050022 283 | int id action_context_bar 0x7f05001d 284 | int id action_menu_divider 0x7f050016 285 | int id action_menu_presenter 0x7f050017 286 | int id action_mode_close_button 0x7f050024 287 | int id action_settings 0x7f050040 288 | int id activity_chooser_view_content 0x7f050025 289 | int id always 0x7f05000b 290 | int id beginning 0x7f050011 291 | int id checkbox 0x7f05002d 292 | int id collapseActionView 0x7f05000d 293 | int id default_activity_button 0x7f050028 294 | int id dialog 0x7f05000e 295 | int id disableHome 0x7f050008 296 | int id dropdown 0x7f05000f 297 | int id edit_query 0x7f050030 298 | int id end 0x7f050013 299 | int id expand_activities_button 0x7f050026 300 | int id expanded_menu 0x7f05002c 301 | int id home 0x7f050014 302 | int id homeAsUp 0x7f050005 303 | int id icon 0x7f05002a 304 | int id ifRoom 0x7f05000a 305 | int id image 0x7f050027 306 | int id listMode 0x7f050001 307 | int id list_item 0x7f050029 308 | int id middle 0x7f050012 309 | int id month 0x7f05003f 310 | int id myArea 0x7f05003c 311 | int id never 0x7f050009 312 | int id none 0x7f050010 313 | int id normal 0x7f050000 314 | int id progress_circular 0x7f050018 315 | int id progress_horizontal 0x7f050019 316 | int id province 0x7f05003e 317 | int id radio 0x7f05002f 318 | int id search_badge 0x7f050032 319 | int id search_bar 0x7f050031 320 | int id search_button 0x7f050033 321 | int id search_close_btn 0x7f050038 322 | int id search_edit_frame 0x7f050034 323 | int id search_go_btn 0x7f05003a 324 | int id search_mag_icon 0x7f050035 325 | int id search_plate 0x7f050036 326 | int id search_src_text 0x7f050037 327 | int id search_voice_btn 0x7f05003b 328 | int id shortcut 0x7f05002e 329 | int id showCustom 0x7f050007 330 | int id showHome 0x7f050004 331 | int id showTitle 0x7f050006 332 | int id split_action_bar 0x7f05001e 333 | int id submit_area 0x7f050039 334 | int id tabMode 0x7f050002 335 | int id timePicker1 0x7f05003d 336 | int id title 0x7f05002b 337 | int id top_action_bar 0x7f050020 338 | int id up 0x7f050021 339 | int id useLogo 0x7f050003 340 | int id withText 0x7f05000c 341 | int integer abc_max_action_buttons 0x7f090000 342 | int layout abc_action_bar_decor 0x7f030000 343 | int layout abc_action_bar_decor_include 0x7f030001 344 | int layout abc_action_bar_decor_overlay 0x7f030002 345 | int layout abc_action_bar_home 0x7f030003 346 | int layout abc_action_bar_tab 0x7f030004 347 | int layout abc_action_bar_tabbar 0x7f030005 348 | int layout abc_action_bar_title_item 0x7f030006 349 | int layout abc_action_bar_view_list_nav_layout 0x7f030007 350 | int layout abc_action_menu_item_layout 0x7f030008 351 | int layout abc_action_menu_layout 0x7f030009 352 | int layout abc_action_mode_bar 0x7f03000a 353 | int layout abc_action_mode_close_item 0x7f03000b 354 | int layout abc_activity_chooser_view 0x7f03000c 355 | int layout abc_activity_chooser_view_include 0x7f03000d 356 | int layout abc_activity_chooser_view_list_item 0x7f03000e 357 | int layout abc_expanded_menu_layout 0x7f03000f 358 | int layout abc_list_menu_item_checkbox 0x7f030010 359 | int layout abc_list_menu_item_icon 0x7f030011 360 | int layout abc_list_menu_item_layout 0x7f030012 361 | int layout abc_list_menu_item_radio 0x7f030013 362 | int layout abc_popup_menu_item_layout 0x7f030014 363 | int layout abc_search_dropdown_item_icons_2line 0x7f030015 364 | int layout abc_search_view 0x7f030016 365 | int layout abc_simple_decor 0x7f030017 366 | int layout activity_main 0x7f030018 367 | int layout areawheel 0x7f030019 368 | int layout support_simple_spinner_dropdown_item 0x7f03001a 369 | int menu main 0x7f0d0000 370 | int string abc_action_bar_home_description 0x7f0a0001 371 | int string abc_action_bar_up_description 0x7f0a0002 372 | int string abc_action_menu_overflow_description 0x7f0a0003 373 | int string abc_action_mode_done 0x7f0a0000 374 | int string abc_activity_chooser_view_see_all 0x7f0a000a 375 | int string abc_activitychooserview_choose_application 0x7f0a0009 376 | int string abc_searchview_description_clear 0x7f0a0006 377 | int string abc_searchview_description_query 0x7f0a0005 378 | int string abc_searchview_description_search 0x7f0a0004 379 | int string abc_searchview_description_submit 0x7f0a0007 380 | int string abc_searchview_description_voice 0x7f0a0008 381 | int string abc_shareactionprovider_share_with 0x7f0a000c 382 | int string abc_shareactionprovider_share_with_application 0x7f0a000b 383 | int string action_settings 0x7f0a000f 384 | int string app_name 0x7f0a000d 385 | int string hello_world 0x7f0a000e 386 | int style AppBaseTheme 0x7f0b008b 387 | int style AppTheme 0x7f0b008c 388 | int style TextAppearance_AppCompat_Base_CompactMenu_Dialog 0x7f0b0063 389 | int style TextAppearance_AppCompat_Base_SearchResult 0x7f0b006d 390 | int style TextAppearance_AppCompat_Base_SearchResult_Subtitle 0x7f0b006f 391 | int style TextAppearance_AppCompat_Base_SearchResult_Title 0x7f0b006e 392 | int style TextAppearance_AppCompat_Base_Widget_PopupMenu_Large 0x7f0b0069 393 | int style TextAppearance_AppCompat_Base_Widget_PopupMenu_Small 0x7f0b006a 394 | int style TextAppearance_AppCompat_Light_Base_SearchResult 0x7f0b0070 395 | int style TextAppearance_AppCompat_Light_Base_SearchResult_Subtitle 0x7f0b0072 396 | int style TextAppearance_AppCompat_Light_Base_SearchResult_Title 0x7f0b0071 397 | int style TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Large 0x7f0b006b 398 | int style TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Small 0x7f0b006c 399 | int style TextAppearance_AppCompat_Light_SearchResult_Subtitle 0x7f0b0035 400 | int style TextAppearance_AppCompat_Light_SearchResult_Title 0x7f0b0034 401 | int style TextAppearance_AppCompat_Light_Widget_PopupMenu_Large 0x7f0b0030 402 | int style TextAppearance_AppCompat_Light_Widget_PopupMenu_Small 0x7f0b0031 403 | int style TextAppearance_AppCompat_SearchResult_Subtitle 0x7f0b0033 404 | int style TextAppearance_AppCompat_SearchResult_Title 0x7f0b0032 405 | int style TextAppearance_AppCompat_Widget_ActionBar_Menu 0x7f0b001a 406 | int style TextAppearance_AppCompat_Widget_ActionBar_Subtitle 0x7f0b0006 407 | int style TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse 0x7f0b0008 408 | int style TextAppearance_AppCompat_Widget_ActionBar_Title 0x7f0b0005 409 | int style TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse 0x7f0b0007 410 | int style TextAppearance_AppCompat_Widget_ActionMode_Subtitle 0x7f0b001e 411 | int style TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse 0x7f0b0020 412 | int style TextAppearance_AppCompat_Widget_ActionMode_Title 0x7f0b001d 413 | int style TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse 0x7f0b001f 414 | int style TextAppearance_AppCompat_Widget_Base_ActionBar_Menu 0x7f0b0054 415 | int style TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle 0x7f0b0056 416 | int style TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle_Inverse 0x7f0b0058 417 | int style TextAppearance_AppCompat_Widget_Base_ActionBar_Title 0x7f0b0055 418 | int style TextAppearance_AppCompat_Widget_Base_ActionBar_Title_Inverse 0x7f0b0057 419 | int style TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle 0x7f0b0051 420 | int style TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle_Inverse 0x7f0b0053 421 | int style TextAppearance_AppCompat_Widget_Base_ActionMode_Title 0x7f0b0050 422 | int style TextAppearance_AppCompat_Widget_Base_ActionMode_Title_Inverse 0x7f0b0052 423 | int style TextAppearance_AppCompat_Widget_Base_DropDownItem 0x7f0b0061 424 | int style TextAppearance_AppCompat_Widget_DropDownItem 0x7f0b0021 425 | int style TextAppearance_AppCompat_Widget_PopupMenu_Large 0x7f0b002e 426 | int style TextAppearance_AppCompat_Widget_PopupMenu_Small 0x7f0b002f 427 | int style TextAppearance_Widget_AppCompat_Base_ExpandedMenu_Item 0x7f0b0062 428 | int style TextAppearance_Widget_AppCompat_ExpandedMenu_Item 0x7f0b0028 429 | int style Theme_AppCompat 0x7f0b0077 430 | int style Theme_AppCompat_Base_CompactMenu 0x7f0b0083 431 | int style Theme_AppCompat_Base_CompactMenu_Dialog 0x7f0b0084 432 | int style Theme_AppCompat_CompactMenu 0x7f0b007c 433 | int style Theme_AppCompat_CompactMenu_Dialog 0x7f0b007d 434 | int style Theme_AppCompat_DialogWhenLarge 0x7f0b007a 435 | int style Theme_AppCompat_Light 0x7f0b0078 436 | int style Theme_AppCompat_Light_DarkActionBar 0x7f0b0079 437 | int style Theme_AppCompat_Light_DialogWhenLarge 0x7f0b007b 438 | int style Theme_Base 0x7f0b007e 439 | int style Theme_Base_AppCompat 0x7f0b0080 440 | int style Theme_Base_AppCompat_Dialog_FixedSize 0x7f0b0087 441 | int style Theme_Base_AppCompat_Dialog_Light_FixedSize 0x7f0b0088 442 | int style Theme_Base_AppCompat_DialogWhenLarge 0x7f0b0085 443 | int style Theme_Base_AppCompat_DialogWhenLarge_Base 0x7f0b0089 444 | int style Theme_Base_AppCompat_Light 0x7f0b0081 445 | int style Theme_Base_AppCompat_Light_DarkActionBar 0x7f0b0082 446 | int style Theme_Base_AppCompat_Light_DialogWhenLarge 0x7f0b0086 447 | int style Theme_Base_AppCompat_Light_DialogWhenLarge_Base 0x7f0b008a 448 | int style Theme_Base_Light 0x7f0b007f 449 | int style Theme_CustomDialog 0x7f0b008d 450 | int style Widget_AppCompat_ActionBar 0x7f0b0000 451 | int style Widget_AppCompat_ActionBar_Solid 0x7f0b0002 452 | int style Widget_AppCompat_ActionBar_TabBar 0x7f0b0011 453 | int style Widget_AppCompat_ActionBar_TabText 0x7f0b0017 454 | int style Widget_AppCompat_ActionBar_TabView 0x7f0b0014 455 | int style Widget_AppCompat_ActionButton 0x7f0b000b 456 | int style Widget_AppCompat_ActionButton_CloseMode 0x7f0b000d 457 | int style Widget_AppCompat_ActionButton_Overflow 0x7f0b000f 458 | int style Widget_AppCompat_ActionMode 0x7f0b001b 459 | int style Widget_AppCompat_ActivityChooserView 0x7f0b0038 460 | int style Widget_AppCompat_AutoCompleteTextView 0x7f0b0036 461 | int style Widget_AppCompat_Base_ActionBar 0x7f0b003a 462 | int style Widget_AppCompat_Base_ActionBar_Solid 0x7f0b003c 463 | int style Widget_AppCompat_Base_ActionBar_TabBar 0x7f0b0045 464 | int style Widget_AppCompat_Base_ActionBar_TabText 0x7f0b004b 465 | int style Widget_AppCompat_Base_ActionBar_TabView 0x7f0b0048 466 | int style Widget_AppCompat_Base_ActionButton 0x7f0b003f 467 | int style Widget_AppCompat_Base_ActionButton_CloseMode 0x7f0b0041 468 | int style Widget_AppCompat_Base_ActionButton_Overflow 0x7f0b0043 469 | int style Widget_AppCompat_Base_ActionMode 0x7f0b004e 470 | int style Widget_AppCompat_Base_ActivityChooserView 0x7f0b0075 471 | int style Widget_AppCompat_Base_AutoCompleteTextView 0x7f0b0073 472 | int style Widget_AppCompat_Base_DropDownItem_Spinner 0x7f0b005d 473 | int style Widget_AppCompat_Base_ListPopupWindow 0x7f0b0065 474 | int style Widget_AppCompat_Base_ListView_DropDown 0x7f0b005f 475 | int style Widget_AppCompat_Base_ListView_Menu 0x7f0b0064 476 | int style Widget_AppCompat_Base_PopupMenu 0x7f0b0067 477 | int style Widget_AppCompat_Base_ProgressBar 0x7f0b005a 478 | int style Widget_AppCompat_Base_ProgressBar_Horizontal 0x7f0b0059 479 | int style Widget_AppCompat_Base_Spinner 0x7f0b005b 480 | int style Widget_AppCompat_DropDownItem_Spinner 0x7f0b0024 481 | int style Widget_AppCompat_Light_ActionBar 0x7f0b0001 482 | int style Widget_AppCompat_Light_ActionBar_Solid 0x7f0b0003 483 | int style Widget_AppCompat_Light_ActionBar_Solid_Inverse 0x7f0b0004 484 | int style Widget_AppCompat_Light_ActionBar_TabBar 0x7f0b0012 485 | int style Widget_AppCompat_Light_ActionBar_TabBar_Inverse 0x7f0b0013 486 | int style Widget_AppCompat_Light_ActionBar_TabText 0x7f0b0018 487 | int style Widget_AppCompat_Light_ActionBar_TabText_Inverse 0x7f0b0019 488 | int style Widget_AppCompat_Light_ActionBar_TabView 0x7f0b0015 489 | int style Widget_AppCompat_Light_ActionBar_TabView_Inverse 0x7f0b0016 490 | int style Widget_AppCompat_Light_ActionButton 0x7f0b000c 491 | int style Widget_AppCompat_Light_ActionButton_CloseMode 0x7f0b000e 492 | int style Widget_AppCompat_Light_ActionButton_Overflow 0x7f0b0010 493 | int style Widget_AppCompat_Light_ActionMode_Inverse 0x7f0b001c 494 | int style Widget_AppCompat_Light_ActivityChooserView 0x7f0b0039 495 | int style Widget_AppCompat_Light_AutoCompleteTextView 0x7f0b0037 496 | int style Widget_AppCompat_Light_Base_ActionBar 0x7f0b003b 497 | int style Widget_AppCompat_Light_Base_ActionBar_Solid 0x7f0b003d 498 | int style Widget_AppCompat_Light_Base_ActionBar_Solid_Inverse 0x7f0b003e 499 | int style Widget_AppCompat_Light_Base_ActionBar_TabBar 0x7f0b0046 500 | int style Widget_AppCompat_Light_Base_ActionBar_TabBar_Inverse 0x7f0b0047 501 | int style Widget_AppCompat_Light_Base_ActionBar_TabText 0x7f0b004c 502 | int style Widget_AppCompat_Light_Base_ActionBar_TabText_Inverse 0x7f0b004d 503 | int style Widget_AppCompat_Light_Base_ActionBar_TabView 0x7f0b0049 504 | int style Widget_AppCompat_Light_Base_ActionBar_TabView_Inverse 0x7f0b004a 505 | int style Widget_AppCompat_Light_Base_ActionButton 0x7f0b0040 506 | int style Widget_AppCompat_Light_Base_ActionButton_CloseMode 0x7f0b0042 507 | int style Widget_AppCompat_Light_Base_ActionButton_Overflow 0x7f0b0044 508 | int style Widget_AppCompat_Light_Base_ActionMode_Inverse 0x7f0b004f 509 | int style Widget_AppCompat_Light_Base_ActivityChooserView 0x7f0b0076 510 | int style Widget_AppCompat_Light_Base_AutoCompleteTextView 0x7f0b0074 511 | int style Widget_AppCompat_Light_Base_DropDownItem_Spinner 0x7f0b005e 512 | int style Widget_AppCompat_Light_Base_ListPopupWindow 0x7f0b0066 513 | int style Widget_AppCompat_Light_Base_ListView_DropDown 0x7f0b0060 514 | int style Widget_AppCompat_Light_Base_PopupMenu 0x7f0b0068 515 | int style Widget_AppCompat_Light_Base_Spinner 0x7f0b005c 516 | int style Widget_AppCompat_Light_DropDownItem_Spinner 0x7f0b0025 517 | int style Widget_AppCompat_Light_ListPopupWindow 0x7f0b002a 518 | int style Widget_AppCompat_Light_ListView_DropDown 0x7f0b0027 519 | int style Widget_AppCompat_Light_PopupMenu 0x7f0b002c 520 | int style Widget_AppCompat_Light_Spinner_DropDown_ActionBar 0x7f0b0023 521 | int style Widget_AppCompat_ListPopupWindow 0x7f0b0029 522 | int style Widget_AppCompat_ListView_DropDown 0x7f0b0026 523 | int style Widget_AppCompat_ListView_Menu 0x7f0b002d 524 | int style Widget_AppCompat_PopupMenu 0x7f0b002b 525 | int style Widget_AppCompat_ProgressBar 0x7f0b000a 526 | int style Widget_AppCompat_ProgressBar_Horizontal 0x7f0b0009 527 | int style Widget_AppCompat_Spinner_DropDown_ActionBar 0x7f0b0022 528 | int[] styleable ActionBar { 0x7f010025, 0x7f010026, 0x7f010027, 0x7f010028, 0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031, 0x7f010032, 0x7f010033, 0x7f010034, 0x7f010035, 0x7f010036, 0x7f010037 } 529 | int styleable ActionBar_background 10 530 | int styleable ActionBar_backgroundSplit 12 531 | int styleable ActionBar_backgroundStacked 11 532 | int styleable ActionBar_customNavigationLayout 13 533 | int styleable ActionBar_displayOptions 3 534 | int styleable ActionBar_divider 9 535 | int styleable ActionBar_height 1 536 | int styleable ActionBar_homeLayout 14 537 | int styleable ActionBar_icon 7 538 | int styleable ActionBar_indeterminateProgressStyle 16 539 | int styleable ActionBar_itemPadding 18 540 | int styleable ActionBar_logo 8 541 | int styleable ActionBar_navigationMode 2 542 | int styleable ActionBar_progressBarPadding 17 543 | int styleable ActionBar_progressBarStyle 15 544 | int styleable ActionBar_subtitle 4 545 | int styleable ActionBar_subtitleTextStyle 6 546 | int styleable ActionBar_title 0 547 | int styleable ActionBar_titleTextStyle 5 548 | int[] styleable ActionBarLayout { 0x010100b3 } 549 | int styleable ActionBarLayout_android_layout_gravity 0 550 | int[] styleable ActionBarWindow { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006 } 551 | int styleable ActionBarWindow_windowActionBar 0 552 | int styleable ActionBarWindow_windowActionBarOverlay 1 553 | int styleable ActionBarWindow_windowFixedHeightMajor 6 554 | int styleable ActionBarWindow_windowFixedHeightMinor 4 555 | int styleable ActionBarWindow_windowFixedWidthMajor 3 556 | int styleable ActionBarWindow_windowFixedWidthMinor 5 557 | int styleable ActionBarWindow_windowSplitActionBar 2 558 | int[] styleable ActionMenuItemView { 0x0101013f } 559 | int styleable ActionMenuItemView_android_minWidth 0 560 | int[] styleable ActionMenuView { } 561 | int[] styleable ActionMode { 0x7f010026, 0x7f01002a, 0x7f01002b, 0x7f01002f, 0x7f010031 } 562 | int styleable ActionMode_background 3 563 | int styleable ActionMode_backgroundSplit 4 564 | int styleable ActionMode_height 0 565 | int styleable ActionMode_subtitleTextStyle 2 566 | int styleable ActionMode_titleTextStyle 1 567 | int[] styleable ActivityChooserView { 0x7f01006a, 0x7f01006b } 568 | int styleable ActivityChooserView_expandActivityOverflowButtonDrawable 1 569 | int styleable ActivityChooserView_initialActivityCount 0 570 | int[] styleable CompatTextView { 0x7f01006d } 571 | int styleable CompatTextView_textAllCaps 0 572 | int[] styleable LinearLayoutICS { 0x7f01002e, 0x7f010055, 0x7f010056 } 573 | int styleable LinearLayoutICS_divider 0 574 | int styleable LinearLayoutICS_dividerPadding 2 575 | int styleable LinearLayoutICS_showDividers 1 576 | int[] styleable MenuGroup { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 } 577 | int styleable MenuGroup_android_checkableBehavior 5 578 | int styleable MenuGroup_android_enabled 0 579 | int styleable MenuGroup_android_id 1 580 | int styleable MenuGroup_android_menuCategory 3 581 | int styleable MenuGroup_android_orderInCategory 4 582 | int styleable MenuGroup_android_visible 2 583 | int[] styleable MenuItem { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050 } 584 | int styleable MenuItem_actionLayout 14 585 | int styleable MenuItem_actionProviderClass 16 586 | int styleable MenuItem_actionViewClass 15 587 | int styleable MenuItem_android_alphabeticShortcut 9 588 | int styleable MenuItem_android_checkable 11 589 | int styleable MenuItem_android_checked 3 590 | int styleable MenuItem_android_enabled 1 591 | int styleable MenuItem_android_icon 0 592 | int styleable MenuItem_android_id 2 593 | int styleable MenuItem_android_menuCategory 5 594 | int styleable MenuItem_android_numericShortcut 10 595 | int styleable MenuItem_android_onClick 12 596 | int styleable MenuItem_android_orderInCategory 6 597 | int styleable MenuItem_android_title 7 598 | int styleable MenuItem_android_titleCondensed 8 599 | int styleable MenuItem_android_visible 4 600 | int styleable MenuItem_showAsAction 13 601 | int[] styleable MenuView { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x01010435 } 602 | int styleable MenuView_android_headerBackground 4 603 | int styleable MenuView_android_horizontalDivider 2 604 | int styleable MenuView_android_itemBackground 5 605 | int styleable MenuView_android_itemIconDisabledAlpha 6 606 | int styleable MenuView_android_itemTextAppearance 1 607 | int styleable MenuView_android_preserveIconSpacing 7 608 | int styleable MenuView_android_verticalDivider 3 609 | int styleable MenuView_android_windowAnimationStyle 0 610 | int[] styleable SearchView { 0x0101011f, 0x01010220, 0x01010264, 0x7f01005a, 0x7f01005b } 611 | int styleable SearchView_android_imeOptions 2 612 | int styleable SearchView_android_inputType 1 613 | int styleable SearchView_android_maxWidth 0 614 | int styleable SearchView_iconifiedByDefault 3 615 | int styleable SearchView_queryHint 4 616 | int[] styleable Spinner { 0x010100af, 0x01010175, 0x01010176, 0x01010262, 0x010102ac, 0x010102ad, 0x7f010051, 0x7f010052, 0x7f010053, 0x7f010054 } 617 | int styleable Spinner_android_dropDownHorizontalOffset 4 618 | int styleable Spinner_android_dropDownSelector 1 619 | int styleable Spinner_android_dropDownVerticalOffset 5 620 | int styleable Spinner_android_dropDownWidth 3 621 | int styleable Spinner_android_gravity 0 622 | int styleable Spinner_android_popupBackground 2 623 | int styleable Spinner_disableChildrenWhenDisabled 9 624 | int styleable Spinner_popupPromptView 8 625 | int styleable Spinner_prompt 6 626 | int styleable Spinner_spinnerMode 7 627 | int[] styleable Theme { 0x7f010047, 0x7f010048, 0x7f010049, 0x7f01004a, 0x7f01004b, 0x7f01004c } 628 | int styleable Theme_actionDropDownStyle 0 629 | int styleable Theme_dropdownListPreferredItemHeight 1 630 | int styleable Theme_listChoiceBackgroundIndicator 5 631 | int styleable Theme_panelMenuListTheme 4 632 | int styleable Theme_panelMenuListWidth 3 633 | int styleable Theme_popupMenuStyle 2 634 | int[] styleable View { 0x010100da, 0x7f010038, 0x7f010039 } 635 | int styleable View_android_focusable 0 636 | int styleable View_paddingEnd 2 637 | int styleable View_paddingStart 1 638 | -------------------------------------------------------------------------------- /ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yzr007/AreaWheel/d20822b8bda915926cc0d1587cc7815596ff9e62/ic_launcher-web.png -------------------------------------------------------------------------------- /libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yzr007/AreaWheel/d20822b8bda915926cc0d1587cc7815596ff9e62/libs/android-support-v4.jar -------------------------------------------------------------------------------- /proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-19 15 | android.library=false 16 | -------------------------------------------------------------------------------- /res/drawable-hdpi/filled_box.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yzr007/AreaWheel/d20822b8bda915926cc0d1587cc7815596ff9e62/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-hdpi/wheel_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /res/drawable-hdpi/wheel_val.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yzr007/AreaWheel/d20822b8bda915926cc0d1587cc7815596ff9e62/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yzr007/AreaWheel/d20822b8bda915926cc0d1587cc7815596ff9e62/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yzr007/AreaWheel/d20822b8bda915926cc0d1587cc7815596ff9e62/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 12 | 13 | 20 | 21 | 22 | 30 | 31 | -------------------------------------------------------------------------------- /res/layout/areawheel.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 12 | 13 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 64dp 9 | 10 | 11 | -------------------------------------------------------------------------------- /res/values/arrays.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 北京 8 | 天津 9 | 河北 10 | 山西 11 | 内蒙古 12 | 辽宁 13 | 吉林 14 | 黑龙江 15 | 上海 16 | 江苏 17 | 浙江 18 | 安徽 19 | 福建 20 | 江西 21 | 山东 22 | 河南 23 | 湖北 24 | 湖南 25 | 广东 26 | 广西 27 | 海南 28 | 重庆 29 | 四川 30 | 贵州 31 | 云南 32 | 西藏 33 | 陕西 34 | 甘肃 35 | 青海 36 | 宁夏 37 | 新疆 38 | 香港 39 | 澳门 40 | 台湾 41 | 42 | 43 | 44 | 45 | 北京辖区 46 | 北京辖县 47 | 48 | 49 | 天津辖区 50 | 天津辖县 51 | 52 | 53 | 石家庄 54 | 唐山 55 | 秦皇岛 56 | 邯郸 57 | 邢台 58 | 保定 59 | 张家口 60 | 承德 61 | 沧州 62 | 廊坊 63 | 衡水 64 | 65 | 66 | 太原 67 | 大同 68 | 阳泉 69 | 长治 70 | 晋城 71 | 朔州 72 | 晋中 73 | 运城 74 | 忻州 75 | 临汾 76 | 吕梁 77 | 78 | 79 | 呼和浩特 80 | 包头 81 | 乌海 82 | 赤峰 83 | 通辽 84 | 鄂尔多斯 85 | 呼伦贝尔 86 | 巴彦淖尔 87 | 乌兰察布 88 | 兴安盟 89 | 锡林郭勒盟 90 | 阿拉善盟 91 | 92 | 93 | 沈阳 94 | 大连 95 | 鞍山 96 | 抚顺 97 | 本溪 98 | 丹东 99 | 锦州 100 | 营口 101 | 阜新 102 | 辽阳 103 | 盘锦 104 | 铁岭 105 | 朝阳 106 | 葫芦岛 107 | 108 | 109 | 长春 110 | 吉林 111 | 四平 112 | 辽源 113 | 通化 114 | 白山 115 | 松原 116 | 白城 117 | 延边 118 | 119 | 120 | 哈尔滨 121 | 齐齐哈尔 122 | 鸡西 123 | 鹤岗 124 | 双鸭山 125 | 大庆 126 | 伊春 127 | 佳木斯 128 | 七台河 129 | 牡丹江 130 | 黑河 131 | 绥化 132 | 大兴安岭 133 | 134 | 135 | 上海辖区 136 | 上海辖县 137 | 138 | 139 | 南京 140 | 无锡 141 | 徐州 142 | 常州 143 | 苏州 144 | 南通 145 | 连云港 146 | 淮安 147 | 盐城 148 | 扬州 149 | 镇江 150 | 泰州 151 | 宿迁 152 | 153 | 154 | 杭州 155 | 宁波 156 | 温州 157 | 嘉兴 158 | 湖州 159 | 绍兴 160 | 金华 161 | 衢州 162 | 舟山 163 | 台州 164 | 丽水 165 | 166 | 167 | 合肥 168 | 芜湖 169 | 蚌埠 170 | 淮南 171 | 马鞍山 172 | 淮北 173 | 铜陵 174 | 安庆 175 | 黄山 176 | 滁州 177 | 阜阳 178 | 宿州 179 | 巢湖 180 | 六安 181 | 亳州 182 | 池州 183 | 宣城 184 | 185 | 186 | 福州 187 | 厦门 188 | 莆田 189 | 三明 190 | 泉州 191 | 漳州 192 | 南平 193 | 龙岩 194 | 宁德 195 | 196 | 197 | 南昌 198 | 景德镇 199 | 萍乡 200 | 九江 201 | 新余 202 | 鹰潭 203 | 赣州 204 | 吉安 205 | 宜春 206 | 抚州 207 | 上饶 208 | 209 | 210 | 济南 211 | 青岛 212 | 淄博 213 | 枣庄 214 | 东营 215 | 烟台 216 | 潍坊 217 | 济宁 218 | 泰安 219 | 威海 220 | 日照 221 | 莱芜 222 | 临沂 223 | 德州 224 | 聊城 225 | 滨州 226 | 荷泽 227 | 228 | 229 | 郑州 230 | 开封 231 | 洛阳 232 | 平顶山 233 | 安阳 234 | 鹤壁 235 | 新乡 236 | 焦作 237 | 濮阳 238 | 许昌 239 | 漯河 240 | 三门峡 241 | 南阳 242 | 商丘 243 | 信阳 244 | 周口 245 | 驻马店 246 | 247 | 248 | 武汉 249 | 黄石 250 | 十堰 251 | 宜昌 252 | 襄樊 253 | 鄂州 254 | 荆门 255 | 孝感 256 | 荆州 257 | 黄冈 258 | 咸宁 259 | 随州 260 | 恩施 261 | 神农架 262 | 263 | 264 | 长沙 265 | 株洲 266 | 湘潭 267 | 衡阳 268 | 邵阳 269 | 岳阳 270 | 常德 271 | 张家界 272 | 益阳 273 | 郴州 274 | 永州 275 | 怀化 276 | 娄底 277 | 湘西 278 | 279 | 280 | 广州 281 | 韶关 282 | 深圳 283 | 珠海 284 | 汕头 285 | 佛山 286 | 江门 287 | 湛江 288 | 茂名 289 | 肇庆 290 | 惠州 291 | 梅州 292 | 汕尾 293 | 河源 294 | 阳江 295 | 清远 296 | 东莞 297 | 中山 298 | 潮州 299 | 揭阳 300 | 云浮 301 | 302 | 303 | 南宁 304 | 柳州 305 | 桂林 306 | 梧州 307 | 北海 308 | 防城港 309 | 钦州 310 | 贵港 311 | 玉林 312 | 百色 313 | 贺州 314 | 河池 315 | 来宾 316 | 崇左 317 | 318 | 319 | 海口 320 | 三亚 321 | 322 | 323 | 重庆辖区 324 | 重庆辖县 325 | 重庆辖市 326 | 327 | 328 | 成都 329 | 自贡 330 | 攀枝花 331 | 泸州 332 | 德阳 333 | 绵阳 334 | 广元 335 | 遂宁 336 | 内江 337 | 乐山 338 | 南充 339 | 眉山 340 | 宜宾 341 | 广安 342 | 达州 343 | 雅安 344 | 巴中 345 | 资阳 346 | 阿坝 347 | 甘孜 348 | 凉山 349 | 350 | 351 | 贵阳 352 | 六盘水 353 | 遵义 354 | 安顺 355 | 铜仁 356 | 黔西南 357 | 毕节 358 | 黔东南 359 | 黔南 360 | 361 | 362 | 昆明 363 | 曲靖 364 | 玉溪 365 | 保山 366 | 昭通 367 | 丽江 368 | 思茅 369 | 临沧 370 | 楚雄 371 | 红河 372 | 文山 373 | 西双版纳 374 | 大理 375 | 德宏 376 | 怒江 377 | 迪庆 378 | 379 | 380 | 拉萨 381 | 昌都 382 | 山南 383 | 日喀则 384 | 那曲 385 | 阿里 386 | 林芝 387 | 388 | 389 | 西安 390 | 铜川 391 | 宝鸡 392 | 咸阳 393 | 渭南 394 | 延安 395 | 汉中 396 | 榆林 397 | 安康 398 | 商洛 399 | 400 | 401 | 兰州 402 | 嘉峪关 403 | 金昌 404 | 白银 405 | 天水 406 | 武威 407 | 张掖 408 | 平凉 409 | 酒泉 410 | 庆阳 411 | 定西 412 | 陇南 413 | 临夏 414 | 甘南 415 | 416 | 417 | 西宁 418 | 海东 419 | 海北 420 | 黄南 421 | 海南 422 | 果洛 423 | 玉树 424 | 海西 425 | 426 | 427 | 银川 428 | 石嘴山 429 | 吴忠 430 | 固原 431 | 中卫 432 | 433 | 434 | 乌鲁木齐 435 | 克拉玛依 436 | 吐鲁番 437 | 哈密 438 | 昌吉 439 | 博尔塔拉 440 | 巴音郭楞 441 | 阿克苏 442 | 克孜勒苏 443 | 喀什 444 | 和田 445 | 伊犁 446 | 塔城 447 | 阿勒泰 448 | 石河子 449 | 阿拉尔 450 | 图木舒克 451 | 五家渠 452 | 453 | 454 | 香港 455 | 456 | 457 | 澳门 458 | 459 | 460 | 台湾 461 | 台湾 462 | 463 | -------------------------------------------------------------------------------- /res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16dp 5 | 16dp 6 | 7 | 8 | -------------------------------------------------------------------------------- /res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AreaWheel 5 | Hello world! 6 | Settings 7 | 8 | 9 | -------------------------------------------------------------------------------- /res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | 23 | 24 | -------------------------------------------------------------------------------- /src/com/yzr/areawheel/AreaWheel.java: -------------------------------------------------------------------------------- 1 | package com.yzr.areawheel; 2 | 3 | import android.content.Context; 4 | import android.view.View; 5 | 6 | /** 7 | * 省市二级联动轮子控件 8 | * 9 | * @author yzr E-mail: yangzr1990@gmail.com 10 | * @version 创建时间:2014年7月2日 上午11:01:03 11 | */ 12 | public class AreaWheel { 13 | 14 | private View view; 15 | private WheelView wv_province; 16 | private WheelView wv_city; 17 | public int screenheight; 18 | private Context context; 19 | /** 20 | * 城市列表 21 | */ 22 | private final int[] ARRAY_CITY = new int[] { R.array.beijin_province_item, 23 | R.array.tianjin_province_item, R.array.heibei_province_item, 24 | R.array.shanxi1_province_item, R.array.neimenggu_province_item, 25 | R.array.liaoning_province_item, R.array.jilin_province_item, 26 | R.array.heilongjiang_province_item, R.array.shanghai_province_item, 27 | R.array.jiangsu_province_item, R.array.zhejiang_province_item, 28 | R.array.anhui_province_item, R.array.fujian_province_item, 29 | R.array.jiangxi_province_item, R.array.shandong_province_item, 30 | R.array.henan_province_item, R.array.hubei_province_item, 31 | R.array.hunan_province_item, R.array.guangdong_province_item, 32 | R.array.guangxi_province_item, R.array.hainan_province_item, 33 | R.array.chongqing_province_item, R.array.sichuan_province_item, 34 | R.array.guizhou_province_item, R.array.yunnan_province_item, 35 | R.array.xizang_province_item, R.array.shanxi2_province_item, 36 | R.array.gansu_province_item, R.array.qinghai_province_item, 37 | R.array.ningxia_province_item, R.array.xinjiang_province_item, 38 | R.array.hongkong_province_item, R.array.aomen_province_item, 39 | R.array.taiwan_province_item }; 40 | 41 | public View getView() { 42 | return view; 43 | } 44 | 45 | public void setView(View view) { 46 | this.view = view; 47 | } 48 | 49 | public AreaWheel(Context context, View view) { 50 | super(); 51 | this.view = view; 52 | this.context = context; 53 | setView(view); 54 | } 55 | 56 | /** 57 | * 初始化 58 | * 59 | * @author yzr E-mail: yangzr1990@gmail.com 60 | * @version 创建时间:2014年7月3日 上午10:48:30 61 | * 62 | */ 63 | public void initAreaPicker() { 64 | 65 | // 省 66 | wv_province = (WheelView) view.findViewById(R.id.province); 67 | wv_province.setAdapter(new ShengWheelAdapter(context));// 设置省的显示数据 68 | wv_province.setCyclic(true);// 可循环滚动 69 | wv_province.setLabel("省");// 添加文字 70 | wv_province.setCurrentItem(0);// 初始化时显示的数据 起始位置 71 | 72 | // 市 73 | wv_city = (WheelView) view.findViewById(R.id.month); 74 | wv_city.setAdapter(new ShiWheelAdapter(context, 75 | R.array.beijin_province_item)); 76 | wv_city.setCyclic(false); 77 | wv_city.setLabel("市"); 78 | wv_city.setCurrentItem(0); 79 | 80 | // 添加省监听 确定市item 81 | OnWheelChangedListener wheelListener_provnce = new OnWheelChangedListener() { 82 | public void onChanged(WheelView wheel, int oldValue, int newValue) { 83 | 84 | wv_city.setShiAdapter(new ShiWheelAdapter(context, 85 | ARRAY_CITY[newValue])); 86 | 87 | } 88 | }; 89 | 90 | wv_province.addChangingListener(wheelListener_provnce); 91 | 92 | // 根据屏幕密度来指定选择器字体的大小 93 | int textSize = 0; 94 | 95 | textSize = (screenheight / 100) * 4; 96 | wv_province.TEXT_SIZE = textSize; 97 | wv_city.TEXT_SIZE = textSize; 98 | 99 | } 100 | 101 | public String getArea() { 102 | return wv_province.getAdapter().getItem(wv_province.getCurrentItem())+" "+ 103 | wv_city.getAdapter().getItem(wv_city.getCurrentItem()); 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /src/com/yzr/areawheel/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.yzr.areawheel; 2 | 3 | 4 | import android.annotation.SuppressLint; 5 | import android.app.Activity; 6 | import android.os.Bundle; 7 | import android.view.Gravity; 8 | import android.view.LayoutInflater; 9 | import android.view.View; 10 | import android.view.View.OnClickListener; 11 | import android.view.Window; 12 | import android.widget.LinearLayout; 13 | import android.widget.Toast; 14 | 15 | public class MainActivity extends Activity implements OnClickListener { 16 | 17 | AreaWheel areaWheel; 18 | 19 | @SuppressLint("NewApi") 20 | @Override 21 | protected void onCreate(Bundle savedInstanceState) { 22 | super.onCreate(savedInstanceState); 23 | requestWindowFeature(Window.FEATURE_NO_TITLE); 24 | this.setFinishOnTouchOutside(false); 25 | LinearLayout ll = (LinearLayout) this.getLayoutInflater().inflate( 26 | R.layout.activity_main, null); 27 | LayoutInflater inflater = LayoutInflater.from(this); 28 | final View timepickerview = inflater.inflate(R.layout.areawheel, null); 29 | ScreenInfo screenInfo = new ScreenInfo(this); 30 | areaWheel = new AreaWheel(this, timepickerview); 31 | areaWheel.screenheight = screenInfo.getHeight(); 32 | 33 | areaWheel.initAreaPicker(); 34 | ll.addView(timepickerview); 35 | setContentView(ll); 36 | findViewById(R.id.myArea).setOnClickListener(this); 37 | getWindow().setGravity(Gravity.BOTTOM); 38 | } 39 | 40 | @Override 41 | public void onClick(View v) { 42 | if (v.getId()==R.id.myArea) { 43 | 44 | Toast.makeText(this, areaWheel.getArea(), Toast.LENGTH_SHORT).show(); 45 | 46 | } 47 | 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/com/yzr/areawheel/OnWheelChangedListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Yuri Kanivets 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.yzr.areawheel; 18 | 19 | /** 20 | * Wheel changed listener interface. 21 | *

The currentItemChanged() method is called whenever current wheel positions is changed: 22 | *

  • New Wheel position is set 23 | *
  • Wheel view is scrolled 24 | */ 25 | public interface OnWheelChangedListener { 26 | /** 27 | * Callback method to be invoked when current item changed 28 | * @param wheel the wheel view whose state has changed 29 | * @param oldValue the old value of current item 30 | * @param newValue the new value of current item 31 | */ 32 | void onChanged(WheelView wheel, int oldValue, int newValue); 33 | } 34 | -------------------------------------------------------------------------------- /src/com/yzr/areawheel/OnWheelScrollListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Yuri Kanivets 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.yzr.areawheel; 18 | 19 | /** 20 | * Wheel scrolled listener interface. 21 | */ 22 | public interface OnWheelScrollListener { 23 | /** 24 | * Callback method to be invoked when scrolling started. 25 | * @param wheel the wheel view whose state has changed. 26 | */ 27 | void onScrollingStarted(WheelView wheel); 28 | 29 | /** 30 | * Callback method to be invoked when scrolling ended. 31 | * @param wheel the wheel view whose state has changed. 32 | */ 33 | void onScrollingFinished(WheelView wheel); 34 | } 35 | -------------------------------------------------------------------------------- /src/com/yzr/areawheel/ScreenInfo.java: -------------------------------------------------------------------------------- 1 | package com.yzr.areawheel; 2 | 3 | import android.app.Activity; 4 | import android.util.DisplayMetrics; 5 | 6 | /** 7 | * 获取宽度以320为基准的相对宽高 8 | * @author yzr 9 | * 10 | */ 11 | public class ScreenInfo { 12 | private Activity activity; 13 | 14 | private int width; 15 | 16 | private int height; 17 | //硬件宽与320的密度比例 18 | private float density; 19 | 20 | private int densityDpi; 21 | public Activity getActivity() { 22 | return activity; 23 | } 24 | 25 | public void setActivity(Activity activity) { 26 | this.activity = activity; 27 | } 28 | 29 | public int getWidth() { 30 | return width; 31 | } 32 | 33 | public void setWidth(int width) { 34 | this.width = width; 35 | } 36 | 37 | public int getHeight() { 38 | return height; 39 | } 40 | 41 | public void setHeight(int height) { 42 | this.height = height; 43 | } 44 | 45 | public float getDensity() { 46 | return density; 47 | } 48 | 49 | public void setDensity(float density) { 50 | this.density = density; 51 | } 52 | 53 | public int getDensityDpi() { 54 | return densityDpi; 55 | } 56 | 57 | public void setDensityDpi(int densityDpi) { 58 | this.densityDpi = densityDpi; 59 | } 60 | 61 | public ScreenInfo(Activity activity){ 62 | this.activity = activity; 63 | ini(); 64 | } 65 | 66 | private void ini(){ 67 | DisplayMetrics metric = new DisplayMetrics(); 68 | activity.getWindowManager().getDefaultDisplay().getMetrics(metric); 69 | width = metric.widthPixels; 70 | height = metric.heightPixels; 71 | density = metric.density; 72 | densityDpi = metric.densityDpi; 73 | } 74 | 75 | 76 | } 77 | -------------------------------------------------------------------------------- /src/com/yzr/areawheel/ShengWheelAdapter.java: -------------------------------------------------------------------------------- 1 | package com.yzr.areawheel; 2 | 3 | import java.util.Arrays; 4 | import java.util.List; 5 | 6 | import android.content.Context; 7 | 8 | public class ShengWheelAdapter implements WheelAdapter { 9 | /** 10 | * ʡ 11 | */ 12 | private List items_p; 13 | public ShengWheelAdapter(Context context) { 14 | this.items_p = Arrays.asList(context.getResources().getStringArray(R.array.province_item)); 15 | } 16 | 17 | @Override 18 | public int getItemsCount() { 19 | // TODO Auto-generated method stub 20 | return items_p==null?0:items_p.size(); 21 | } 22 | 23 | @Override 24 | public String getItem(int index) { 25 | // TODO Auto-generated method stub 26 | return items_p.get(index); 27 | } 28 | 29 | @Override 30 | public int getMaximumLength() { 31 | // TODO Auto-generated method stub 32 | return 0; 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/com/yzr/areawheel/ShiWheelAdapter.java: -------------------------------------------------------------------------------- 1 | package com.yzr.areawheel; 2 | 3 | import java.util.Arrays; 4 | import java.util.List; 5 | 6 | import android.content.Context; 7 | 8 | 9 | public class ShiWheelAdapter implements WheelAdapter { 10 | private List items_c; 11 | public ShiWheelAdapter(Context context,int ArrayId) { 12 | this.items_c = Arrays.asList(context.getResources().getStringArray(ArrayId)); 13 | } 14 | 15 | @Override 16 | public int getItemsCount() { 17 | // TODO Auto-generated method stub 18 | return items_c==null?0:items_c.size(); 19 | } 20 | 21 | @Override 22 | public String getItem(int index) { 23 | // TODO Auto-generated method stub 24 | if(index>=items_c.size()){ 25 | index=items_c.size()-1; 26 | } 27 | return items_c.get(index); 28 | } 29 | 30 | @Override 31 | public int getMaximumLength() { 32 | // TODO Auto-generated method stub 33 | return 0; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/com/yzr/areawheel/WheelAdapter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Yuri Kanivets 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.yzr.areawheel; 18 | 19 | public interface WheelAdapter { 20 | /** 21 | * Gets items count 22 | * @return the count of wheel items 23 | */ 24 | public int getItemsCount(); 25 | 26 | /** 27 | * Gets a wheel item by index. 28 | * 29 | * @param index the item index 30 | * @return the wheel item text or null 31 | */ 32 | public String getItem(int index); 33 | 34 | /** 35 | * Gets maximum item length. It is used to determine the wheel width. 36 | * If -1 is returned there will be used the default wheel width. 37 | * 38 | * @return the maximum item length or -1 39 | */ 40 | public int getMaximumLength(); 41 | } 42 | -------------------------------------------------------------------------------- /src/com/yzr/areawheel/WheelView.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yzr007/AreaWheel/d20822b8bda915926cc0d1587cc7815596ff9e62/src/com/yzr/areawheel/WheelView.java --------------------------------------------------------------------------------