This demo shows two way to achieve Direction Pad by use the Widget of GridView orScrollView.
DemoGridView is hosted in the following web site
https://github.com/michaelye/DemoGridView
If you think the Android project DemoGridView listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of DemoGridView.
Item | Value |
---|---|
Java File Count | 2 |
Supported screen sizes | [hdpi, xhdpi] |
Target SDK Version | 7 |
Minimum SDK Version | 5 |
Activity Count | 2 |
jar files used | android-support-v4.jar |
There are 16 image files in DemoGridView. The names of the image files are listed as follows.
ic_action_search.png main_icon_addlist.png main_icon_bg_normal.png main_icon_bg_selected.png main_icon_company.png main_icon_manage.png main_icon_myrecord.png main_icon_placard.png main_icon_record.png main_icon_set.png main_icon_workbench.png main_icon_zxl.png title_btn_back_normal.9.png title_btn_back_selected.9.png title_btn_rect_normal.9.png title_btn_rect_selected.9.png
The following screenshort is generated from the image listed above.
DemoGridView has the following Java source files.
com.michael.demo.gridview.CommonActivity.java com.michael.demo.gridview.MainActivity.java