aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-11-09 12:40:15 -0800
committerScott Jackson <daneren2005@gmail.com>2013-11-09 12:40:15 -0800
commitf018b56985ff12a63b21cefe302421bb5f0c2209 (patch)
treed6837ac2f85dd2426a50b430797a9fa91b6245d3
parent37aa807311067eb7fc6e6ded74e640411ab1b920 (diff)
downloaddsub-f018b56985ff12a63b21cefe302421bb5f0c2209.tar.gz
dsub-f018b56985ff12a63b21cefe302421bb5f0c2209.tar.bz2
dsub-f018b56985ff12a63b21cefe302421bb5f0c2209.zip
Added icons to the drawer
-rw-r--r--res/drawable-hdpi/ic_action_volume_dark.pngbin0 -> 1365 bytes
-rw-r--r--res/drawable-hdpi/ic_action_volume_light.pngbin0 -> 1550 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_bookmark_dark.pngbin0 -> 1087 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_bookmark_light.pngbin0 -> 1292 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_home_dark.pngbin0 -> 916 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_home_light.pngbin0 -> 992 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_library_dark.pngbin0 -> 617 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_library_light.pngbin0 -> 696 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_playlist_dark.pngbin0 -> 457 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_playlist_light.pngbin0 -> 496 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_podcast_dark.pngbin0 -> 1167 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_podcast_light.pngbin0 -> 1410 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_refresh_dark.pngbin0 -> 1139 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_refresh_light.pngbin0 -> 1351 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_remove_dark.pngbin0 -> 898 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_remove_light.pngbin0 -> 1090 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_save_dark.pngbin0 -> 553 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_save_light.pngbin0 -> 631 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_search_dark.pngbin0 -> 1071 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_search_light.pngbin0 -> 1271 bytes
-rw-r--r--res/drawable-hdpi/main_offline_dark.pngbin0 -> 631 bytes
-rw-r--r--res/drawable-mdpi/ic_action_volume_dark.pngbin0 -> 820 bytes
-rw-r--r--res/drawable-mdpi/ic_action_volume_light.pngbin0 -> 974 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_bookmark_dark.pngbin0 -> 658 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_bookmark_light.pngbin0 -> 782 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_chat_dark.pngbin0 -> 277 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_chat_light.pngbin0 -> 311 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_chat_send_dark.pngbin0 -> 366 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_chat_send_light.pngbin0 -> 394 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_home_dark.pngbin0 -> 550 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_home_light.pngbin0 -> 656 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_library_dark.pngbin0 -> 420 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_library_light.pngbin0 -> 492 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_playlist_dark.pngbin0 -> 315 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_playlist_light.pngbin0 -> 364 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_podcast_dark.pngbin0 -> 750 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_podcast_light.pngbin0 -> 862 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_refresh_dark.pngbin0 -> 748 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_refresh_light.pngbin0 -> 914 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_remove_dark.pngbin0 -> 576 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_remove_light.pngbin0 -> 689 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_save_dark.pngbin0 -> 406 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_save_light.pngbin0 -> 481 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_search_dark.pngbin0 -> 655 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_search_light.pngbin0 -> 794 bytes
-rw-r--r--res/drawable-mdpi/main_offline_dark.pngbin0 -> 408 bytes
-rw-r--r--res/drawable-mdpi/main_offline_light.pngbin0 -> 456 bytes
-rw-r--r--res/drawable-xhdpi/ic_action_volume_dark.pngbin0 -> 1916 bytes
-rw-r--r--res/drawable-xhdpi/ic_action_volume_light.pngbin0 -> 2180 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_bookmark_dark.pngbin0 -> 1442 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_bookmark_light.pngbin0 -> 1665 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_chat_dark.pngbin0 -> 472 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_chat_light.pngbin0 -> 517 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_chat_send_dark.pngbin0 -> 743 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_chat_send_light.pngbin0 -> 799 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_home_dark.pngbin0 -> 1225 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_home_light.pngbin0 -> 1360 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_library_dark.pngbin0 -> 820 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_library_light.pngbin0 -> 980 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_playlist_dark.pngbin0 -> 508 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_playlist_light.pngbin0 -> 555 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_podcast_dark.pngbin0 -> 1553 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_podcast_light.pngbin0 -> 1787 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_refresh_dark.pngbin0 -> 1520 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_refresh_light.pngbin0 -> 1802 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_remove_dark.pngbin0 -> 1146 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_remove_light.pngbin0 -> 1394 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_save_dark.pngbin0 -> 644 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_save_light.pngbin0 -> 735 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_search_dark.pngbin0 -> 1445 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_search_light.pngbin0 -> 1701 bytes
-rw-r--r--res/drawable-xhdpi/main_offline_dark.pngbin0 -> 818 bytes
-rw-r--r--res/drawable-xhdpi/main_offline_light.pngbin0 -> 976 bytes
-rw-r--r--res/drawable-xxhdpi/ic_action_volume_dark.pngbin0 -> 3148 bytes
-rw-r--r--res/drawable-xxhdpi/ic_action_volume_light.pngbin0 -> 3473 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_bookmark_dark.pngbin0 -> 2194 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_bookmark_light.pngbin0 -> 2474 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_chat_dark.pngbin0 -> 723 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_chat_light.pngbin0 -> 771 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_chat_send_dark.pngbin0 -> 1326 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_chat_send_light.pngbin0 -> 1608 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_home_dark.pngbin0 -> 1998 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_home_light.pngbin0 -> 2249 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_library_dark.pngbin0 -> 1357 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_library_light.pngbin0 -> 1579 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_playlist_dark.pngbin0 -> 783 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_playlist_light.pngbin0 -> 840 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_podcast_dark.pngbin0 -> 2439 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_podcast_light.pngbin0 -> 2798 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_refresh_dark.pngbin0 -> 2453 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_refresh_light.pngbin0 -> 2952 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_remove_dark.pngbin0 -> 1843 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_remove_light.pngbin0 -> 2164 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_save_dark.pngbin0 -> 977 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_save_light.pngbin0 -> 1076 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_search_dark.pngbin0 -> 2258 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_search_light.pngbin0 -> 2571 bytes
-rw-r--r--res/drawable-xxhdpi/main_offline_dark.pngbin0 -> 1265 bytes
-rw-r--r--res/drawable-xxhdpi/main_offline_light.pngbin0 -> 1466 bytes
-rw-r--r--res/layout/drawer_list_item.xml24
-rw-r--r--res/values/arrays.xml9
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicActivity.java26
-rw-r--r--src/github/daneren2005/dsub/view/DrawerAdapter.java68
103 files changed, 116 insertions, 11 deletions
diff --git a/res/drawable-hdpi/ic_action_volume_dark.png b/res/drawable-hdpi/ic_action_volume_dark.png
new file mode 100644
index 00000000..62550655
--- /dev/null
+++ b/res/drawable-hdpi/ic_action_volume_dark.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_action_volume_light.png b/res/drawable-hdpi/ic_action_volume_light.png
new file mode 100644
index 00000000..1b1d182c
--- /dev/null
+++ b/res/drawable-hdpi/ic_action_volume_light.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_bookmark_dark.png b/res/drawable-hdpi/ic_menu_bookmark_dark.png
new file mode 100644
index 00000000..e7cd08e4
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_bookmark_dark.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_bookmark_light.png b/res/drawable-hdpi/ic_menu_bookmark_light.png
new file mode 100644
index 00000000..fdb46da3
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_bookmark_light.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_home_dark.png b/res/drawable-hdpi/ic_menu_home_dark.png
new file mode 100644
index 00000000..8f391ffd
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_home_dark.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_home_light.png b/res/drawable-hdpi/ic_menu_home_light.png
new file mode 100644
index 00000000..813cfa8a
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_home_light.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_library_dark.png b/res/drawable-hdpi/ic_menu_library_dark.png
new file mode 100644
index 00000000..717cb3e1
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_library_dark.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_library_light.png b/res/drawable-hdpi/ic_menu_library_light.png
new file mode 100644
index 00000000..17a45d77
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_library_light.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_playlist_dark.png b/res/drawable-hdpi/ic_menu_playlist_dark.png
new file mode 100644
index 00000000..8e3babc7
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_playlist_dark.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_playlist_light.png b/res/drawable-hdpi/ic_menu_playlist_light.png
new file mode 100644
index 00000000..4131dba4
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_playlist_light.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_podcast_dark.png b/res/drawable-hdpi/ic_menu_podcast_dark.png
new file mode 100644
index 00000000..d1d62d03
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_podcast_dark.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_podcast_light.png b/res/drawable-hdpi/ic_menu_podcast_light.png
new file mode 100644
index 00000000..4ce1b787
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_podcast_light.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_refresh_dark.png b/res/drawable-hdpi/ic_menu_refresh_dark.png
new file mode 100644
index 00000000..2795cfa9
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_refresh_dark.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_refresh_light.png b/res/drawable-hdpi/ic_menu_refresh_light.png
new file mode 100644
index 00000000..86d1b042
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_refresh_light.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_remove_dark.png b/res/drawable-hdpi/ic_menu_remove_dark.png
new file mode 100644
index 00000000..878b378a
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_remove_dark.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_remove_light.png b/res/drawable-hdpi/ic_menu_remove_light.png
new file mode 100644
index 00000000..ece5ad8d
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_remove_light.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_save_dark.png b/res/drawable-hdpi/ic_menu_save_dark.png
new file mode 100644
index 00000000..b80828bf
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_save_dark.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_save_light.png b/res/drawable-hdpi/ic_menu_save_light.png
new file mode 100644
index 00000000..a3a5e23a
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_save_light.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_search_dark.png b/res/drawable-hdpi/ic_menu_search_dark.png
new file mode 100644
index 00000000..ef2b3013
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_search_dark.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_search_light.png b/res/drawable-hdpi/ic_menu_search_light.png
new file mode 100644
index 00000000..756937df
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_search_light.png
Binary files differ
diff --git a/res/drawable-hdpi/main_offline_dark.png b/res/drawable-hdpi/main_offline_dark.png
new file mode 100644
index 00000000..a594530d
--- /dev/null
+++ b/res/drawable-hdpi/main_offline_dark.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_action_volume_dark.png b/res/drawable-mdpi/ic_action_volume_dark.png
new file mode 100644
index 00000000..2b5f1d11
--- /dev/null
+++ b/res/drawable-mdpi/ic_action_volume_dark.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_action_volume_light.png b/res/drawable-mdpi/ic_action_volume_light.png
new file mode 100644
index 00000000..47071ccf
--- /dev/null
+++ b/res/drawable-mdpi/ic_action_volume_light.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_bookmark_dark.png b/res/drawable-mdpi/ic_menu_bookmark_dark.png
new file mode 100644
index 00000000..3360f37e
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_bookmark_dark.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_bookmark_light.png b/res/drawable-mdpi/ic_menu_bookmark_light.png
new file mode 100644
index 00000000..b4d916fb
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_bookmark_light.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_chat_dark.png b/res/drawable-mdpi/ic_menu_chat_dark.png
new file mode 100644
index 00000000..74d98888
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_chat_dark.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_chat_light.png b/res/drawable-mdpi/ic_menu_chat_light.png
new file mode 100644
index 00000000..468c1220
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_chat_light.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_chat_send_dark.png b/res/drawable-mdpi/ic_menu_chat_send_dark.png
new file mode 100644
index 00000000..91db4a4a
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_chat_send_dark.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_chat_send_light.png b/res/drawable-mdpi/ic_menu_chat_send_light.png
new file mode 100644
index 00000000..f2a3e724
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_chat_send_light.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_home_dark.png b/res/drawable-mdpi/ic_menu_home_dark.png
new file mode 100644
index 00000000..7be15b95
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_home_dark.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_home_light.png b/res/drawable-mdpi/ic_menu_home_light.png
new file mode 100644
index 00000000..715ffcc3
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_home_light.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_library_dark.png b/res/drawable-mdpi/ic_menu_library_dark.png
new file mode 100644
index 00000000..0102d7ad
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_library_dark.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_library_light.png b/res/drawable-mdpi/ic_menu_library_light.png
new file mode 100644
index 00000000..a30b4d39
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_library_light.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_playlist_dark.png b/res/drawable-mdpi/ic_menu_playlist_dark.png
new file mode 100644
index 00000000..ebf00427
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_playlist_dark.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_playlist_light.png b/res/drawable-mdpi/ic_menu_playlist_light.png
new file mode 100644
index 00000000..e248a488
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_playlist_light.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_podcast_dark.png b/res/drawable-mdpi/ic_menu_podcast_dark.png
new file mode 100644
index 00000000..ad69156a
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_podcast_dark.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_podcast_light.png b/res/drawable-mdpi/ic_menu_podcast_light.png
new file mode 100644
index 00000000..c15cb03f
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_podcast_light.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_refresh_dark.png b/res/drawable-mdpi/ic_menu_refresh_dark.png
new file mode 100644
index 00000000..554c07dc
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_refresh_dark.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_refresh_light.png b/res/drawable-mdpi/ic_menu_refresh_light.png
new file mode 100644
index 00000000..a2d90c16
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_refresh_light.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_remove_dark.png b/res/drawable-mdpi/ic_menu_remove_dark.png
new file mode 100644
index 00000000..5ba24546
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_remove_dark.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_remove_light.png b/res/drawable-mdpi/ic_menu_remove_light.png
new file mode 100644
index 00000000..93483b6c
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_remove_light.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_save_dark.png b/res/drawable-mdpi/ic_menu_save_dark.png
new file mode 100644
index 00000000..89aa17cc
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_save_dark.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_save_light.png b/res/drawable-mdpi/ic_menu_save_light.png
new file mode 100644
index 00000000..dcb3a2f6
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_save_light.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_search_dark.png b/res/drawable-mdpi/ic_menu_search_dark.png
new file mode 100644
index 00000000..076085c5
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_search_dark.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_search_light.png b/res/drawable-mdpi/ic_menu_search_light.png
new file mode 100644
index 00000000..026c8498
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_search_light.png
Binary files differ
diff --git a/res/drawable-mdpi/main_offline_dark.png b/res/drawable-mdpi/main_offline_dark.png
new file mode 100644
index 00000000..4990fb8e
--- /dev/null
+++ b/res/drawable-mdpi/main_offline_dark.png
Binary files differ
diff --git a/res/drawable-mdpi/main_offline_light.png b/res/drawable-mdpi/main_offline_light.png
new file mode 100644
index 00000000..e70ec1c2
--- /dev/null
+++ b/res/drawable-mdpi/main_offline_light.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_action_volume_dark.png b/res/drawable-xhdpi/ic_action_volume_dark.png
new file mode 100644
index 00000000..400de38b
--- /dev/null
+++ b/res/drawable-xhdpi/ic_action_volume_dark.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_action_volume_light.png b/res/drawable-xhdpi/ic_action_volume_light.png
new file mode 100644
index 00000000..9a1128c1
--- /dev/null
+++ b/res/drawable-xhdpi/ic_action_volume_light.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_bookmark_dark.png b/res/drawable-xhdpi/ic_menu_bookmark_dark.png
new file mode 100644
index 00000000..18f71365
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_bookmark_dark.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_bookmark_light.png b/res/drawable-xhdpi/ic_menu_bookmark_light.png
new file mode 100644
index 00000000..d5776317
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_bookmark_light.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_chat_dark.png b/res/drawable-xhdpi/ic_menu_chat_dark.png
new file mode 100644
index 00000000..28318219
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_chat_dark.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_chat_light.png b/res/drawable-xhdpi/ic_menu_chat_light.png
new file mode 100644
index 00000000..dcc95dcb
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_chat_light.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_chat_send_dark.png b/res/drawable-xhdpi/ic_menu_chat_send_dark.png
new file mode 100644
index 00000000..c0a5a3eb
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_chat_send_dark.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_chat_send_light.png b/res/drawable-xhdpi/ic_menu_chat_send_light.png
new file mode 100644
index 00000000..f9c3b9bb
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_chat_send_light.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_home_dark.png b/res/drawable-xhdpi/ic_menu_home_dark.png
new file mode 100644
index 00000000..2c2b9912
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_home_dark.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_home_light.png b/res/drawable-xhdpi/ic_menu_home_light.png
new file mode 100644
index 00000000..156c58c9
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_home_light.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_library_dark.png b/res/drawable-xhdpi/ic_menu_library_dark.png
new file mode 100644
index 00000000..b1612f65
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_library_dark.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_library_light.png b/res/drawable-xhdpi/ic_menu_library_light.png
new file mode 100644
index 00000000..1f93c8f2
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_library_light.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_playlist_dark.png b/res/drawable-xhdpi/ic_menu_playlist_dark.png
new file mode 100644
index 00000000..fd6cd498
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_playlist_dark.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_playlist_light.png b/res/drawable-xhdpi/ic_menu_playlist_light.png
new file mode 100644
index 00000000..e7e510d0
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_playlist_light.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_podcast_dark.png b/res/drawable-xhdpi/ic_menu_podcast_dark.png
new file mode 100644
index 00000000..40469b46
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_podcast_dark.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_podcast_light.png b/res/drawable-xhdpi/ic_menu_podcast_light.png
new file mode 100644
index 00000000..3748526a
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_podcast_light.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_refresh_dark.png b/res/drawable-xhdpi/ic_menu_refresh_dark.png
new file mode 100644
index 00000000..b6801006
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_refresh_dark.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_refresh_light.png b/res/drawable-xhdpi/ic_menu_refresh_light.png
new file mode 100644
index 00000000..38943f82
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_refresh_light.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_remove_dark.png b/res/drawable-xhdpi/ic_menu_remove_dark.png
new file mode 100644
index 00000000..09ce75e2
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_remove_dark.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_remove_light.png b/res/drawable-xhdpi/ic_menu_remove_light.png
new file mode 100644
index 00000000..94f7c8c1
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_remove_light.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_save_dark.png b/res/drawable-xhdpi/ic_menu_save_dark.png
new file mode 100644
index 00000000..1612fd0a
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_save_dark.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_save_light.png b/res/drawable-xhdpi/ic_menu_save_light.png
new file mode 100644
index 00000000..5dcd75d7
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_save_light.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_search_dark.png b/res/drawable-xhdpi/ic_menu_search_dark.png
new file mode 100644
index 00000000..1ae3dff0
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_search_dark.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_search_light.png b/res/drawable-xhdpi/ic_menu_search_light.png
new file mode 100644
index 00000000..705074bd
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_search_light.png
Binary files differ
diff --git a/res/drawable-xhdpi/main_offline_dark.png b/res/drawable-xhdpi/main_offline_dark.png
new file mode 100644
index 00000000..231e4715
--- /dev/null
+++ b/res/drawable-xhdpi/main_offline_dark.png
Binary files differ
diff --git a/res/drawable-xhdpi/main_offline_light.png b/res/drawable-xhdpi/main_offline_light.png
new file mode 100644
index 00000000..87937fcb
--- /dev/null
+++ b/res/drawable-xhdpi/main_offline_light.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_action_volume_dark.png b/res/drawable-xxhdpi/ic_action_volume_dark.png
new file mode 100644
index 00000000..7991a65d
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_action_volume_dark.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_action_volume_light.png b/res/drawable-xxhdpi/ic_action_volume_light.png
new file mode 100644
index 00000000..8dfbf3f5
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_action_volume_light.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_bookmark_dark.png b/res/drawable-xxhdpi/ic_menu_bookmark_dark.png
new file mode 100644
index 00000000..2523e14c
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_bookmark_dark.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_bookmark_light.png b/res/drawable-xxhdpi/ic_menu_bookmark_light.png
new file mode 100644
index 00000000..9e8c4591
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_bookmark_light.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_chat_dark.png b/res/drawable-xxhdpi/ic_menu_chat_dark.png
new file mode 100644
index 00000000..60efb47d
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_chat_dark.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_chat_light.png b/res/drawable-xxhdpi/ic_menu_chat_light.png
new file mode 100644
index 00000000..02c89560
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_chat_light.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_chat_send_dark.png b/res/drawable-xxhdpi/ic_menu_chat_send_dark.png
new file mode 100644
index 00000000..b86ca3d3
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_chat_send_dark.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_chat_send_light.png b/res/drawable-xxhdpi/ic_menu_chat_send_light.png
new file mode 100644
index 00000000..048b8aac
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_chat_send_light.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_home_dark.png b/res/drawable-xxhdpi/ic_menu_home_dark.png
new file mode 100644
index 00000000..15f458e7
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_home_dark.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_home_light.png b/res/drawable-xxhdpi/ic_menu_home_light.png
new file mode 100644
index 00000000..765386c4
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_home_light.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_library_dark.png b/res/drawable-xxhdpi/ic_menu_library_dark.png
new file mode 100644
index 00000000..02a4f3f2
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_library_dark.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_library_light.png b/res/drawable-xxhdpi/ic_menu_library_light.png
new file mode 100644
index 00000000..52ce8203
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_library_light.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_playlist_dark.png b/res/drawable-xxhdpi/ic_menu_playlist_dark.png
new file mode 100644
index 00000000..2c955eee
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_playlist_dark.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_playlist_light.png b/res/drawable-xxhdpi/ic_menu_playlist_light.png
new file mode 100644
index 00000000..d1877328
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_playlist_light.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_podcast_dark.png b/res/drawable-xxhdpi/ic_menu_podcast_dark.png
new file mode 100644
index 00000000..a748dc60
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_podcast_dark.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_podcast_light.png b/res/drawable-xxhdpi/ic_menu_podcast_light.png
new file mode 100644
index 00000000..efa7b037
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_podcast_light.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_refresh_dark.png b/res/drawable-xxhdpi/ic_menu_refresh_dark.png
new file mode 100644
index 00000000..0e5616bd
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_refresh_dark.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_refresh_light.png b/res/drawable-xxhdpi/ic_menu_refresh_light.png
new file mode 100644
index 00000000..7dea70df
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_refresh_light.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_remove_dark.png b/res/drawable-xxhdpi/ic_menu_remove_dark.png
new file mode 100644
index 00000000..d5952ea0
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_remove_dark.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_remove_light.png b/res/drawable-xxhdpi/ic_menu_remove_light.png
new file mode 100644
index 00000000..c814869e
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_remove_light.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_save_dark.png b/res/drawable-xxhdpi/ic_menu_save_dark.png
new file mode 100644
index 00000000..acb264ec
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_save_dark.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_save_light.png b/res/drawable-xxhdpi/ic_menu_save_light.png
new file mode 100644
index 00000000..fcd18ccd
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_save_light.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_search_dark.png b/res/drawable-xxhdpi/ic_menu_search_dark.png
new file mode 100644
index 00000000..500ac03a
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_search_dark.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_search_light.png b/res/drawable-xxhdpi/ic_menu_search_light.png
new file mode 100644
index 00000000..fa64f9e8
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_search_light.png
Binary files differ
diff --git a/res/drawable-xxhdpi/main_offline_dark.png b/res/drawable-xxhdpi/main_offline_dark.png
new file mode 100644
index 00000000..c415e0a5
--- /dev/null
+++ b/res/drawable-xxhdpi/main_offline_dark.png
Binary files differ
diff --git a/res/drawable-xxhdpi/main_offline_light.png b/res/drawable-xxhdpi/main_offline_light.png
new file mode 100644
index 00000000..b7e1c380
--- /dev/null
+++ b/res/drawable-xxhdpi/main_offline_light.png
Binary files differ
diff --git a/res/layout/drawer_list_item.xml b/res/layout/drawer_list_item.xml
new file mode 100644
index 00000000..608affea
--- /dev/null
+++ b/res/layout/drawer_list_item.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="2dip"
+ android:paddingBottom="3dip">
+
+ <ImageView
+ android:id="@+id/drawer_icon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="left|center_vertical"
+ android:paddingTop="1dip"
+ android:paddingBottom="1dip"
+ android:paddingRight="6dip"/>
+
+ <TextView
+ android:id="@+id/drawer_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:singleLine="true"/>
+</LinearLayout> \ No newline at end of file
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 21b500d2..adc60c9e 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -18,6 +18,15 @@
<item>Chat</item>
</string-array>
+ <array name="drawerItemIcons">
+ <item>@drawable/ic_menu_home_dark</item>
+ <item>@drawable/ic_menu_library_dark</item>
+ <item>@drawable/ic_menu_playlist_dark</item>
+ <item>@drawable/ic_menu_podcast_dark</item>
+ <item>@drawable/ic_menu_bookmark_dark</item>
+ <item>@drawable/ic_menu_chat_dark</item>
+ </array>
+
<string-array name="themeValues">
<item>light</item>
<item>dark</item>
diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
index 71b2b790..3c884683 100644
--- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java
+++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
@@ -22,6 +22,7 @@ import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
+import android.content.res.TypedArray;
import android.media.AudioManager;
import android.os.Build;
import android.os.Bundle;
@@ -58,10 +59,14 @@ import github.daneren2005.dsub.service.DownloadServiceImpl;
import github.daneren2005.dsub.util.Constants;
import github.daneren2005.dsub.util.ImageLoader;
import github.daneren2005.dsub.util.Util;
+import github.daneren2005.dsub.view.DrawerAdapter;
+
import java.io.File;
import java.io.PrintWriter;
+import java.util.AbstractList;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Iterator;
import java.util.List;
public class SubsonicActivity extends ActionBarActivity implements OnItemSelectedListener {
@@ -376,11 +381,18 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
int alreadyRemoved = 0;
List<String> drawerItemsList = new ArrayList<String>(Arrays.asList(drawerItems));
List<String> drawerItemsDescriptionsList = new ArrayList<String>(Arrays.asList(drawerItemsDescriptions));
+ List<Integer> drawerItemsIconsList = new ArrayList<Integer>();
+
+ TypedArray typedArray = getResources().obtainTypedArray(R.array.drawerItemIcons);
+ for(int i = 0; i < drawerItemsList.size(); i++) {
+ drawerItemsIconsList.add(typedArray.getResourceId(i, 0));
+ }
// Selectively remove podcast listing [3]
if(!podcastsEnabled) {
drawerItemsList.remove(3 - alreadyRemoved);
drawerItemsDescriptionsList.remove(3 - alreadyRemoved);
+ drawerItemsIconsList.remove(3 - alreadyRemoved);
alreadyRemoved++;
}
@@ -388,6 +400,7 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
if(!bookmarksEnabled) {
drawerItemsList.remove(4 - alreadyRemoved);
drawerItemsDescriptionsList.remove(4 - alreadyRemoved);
+ drawerItemsIconsList.remove(4 - alreadyRemoved);
alreadyRemoved++;
}
@@ -395,6 +408,7 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
if(!chatEnabled) {
drawerItemsList.remove(5 - alreadyRemoved);
drawerItemsDescriptionsList.remove(5 - alreadyRemoved);
+ drawerItemsIconsList.remove(5 - alreadyRemoved);
alreadyRemoved++;
}
@@ -404,23 +418,13 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
drawerItemsDescriptions = drawerItemsDescriptionsList.toArray(new String[0]);
}
- drawerList.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, drawerItems));
+ drawerList.setAdapter(new DrawerAdapter(this, drawerItemsList, drawerItemsIconsList));
enabledItems[0] = podcastsEnabled;
enabledItems[1] = bookmarksEnabled;
enabledItems[2] = chatEnabled;
}
}
- public void startActivity(Class t) {
- Intent intent = new Intent();
- intent.setClass(SubsonicActivity.this, t);
- intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
- startActivity(intent);
- if(this.getClass() != SubsonicFragmentActivity.class) {
- finish();
- }
- drawer.closeDrawers();
- }
public void startFragmentActivity(String fragmentType) {
Intent intent = new Intent();
intent.setClass(SubsonicActivity.this, SubsonicFragmentActivity.class);
diff --git a/src/github/daneren2005/dsub/view/DrawerAdapter.java b/src/github/daneren2005/dsub/view/DrawerAdapter.java
new file mode 100644
index 00000000..d3639373
--- /dev/null
+++ b/src/github/daneren2005/dsub/view/DrawerAdapter.java
@@ -0,0 +1,68 @@
+/*
+ This file is part of Subsonic.
+
+ Subsonic is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ Subsonic is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
+
+ Copyright 2009 (C) Sindre Mehus
+*/
+package github.daneren2005.dsub.view;
+
+import android.content.Context;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ArrayAdapter;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import java.util.List;
+
+import github.daneren2005.dsub.R;
+
+/**
+ * Created by Scott on 11/8/13.
+ */
+public class DrawerAdapter extends ArrayAdapter<String> {
+ private static String TAG = DrawerAdapter.class.getSimpleName();
+ private Context context;
+ private List<String> items;
+ private List<Integer> icons;
+
+ public DrawerAdapter(Context context, List<String> items, List<Integer> icons) {
+ super(context, R.layout.drawer_list_item, items);
+
+ this.context = context;
+ this.items = items;
+ this.icons = icons;
+ }
+
+ @Override
+ public View getView(int position, View convertView, ViewGroup parent) {
+ String item = items.get(position);
+ Integer icon = icons.get(position);
+
+ if(convertView == null) {
+ convertView = LayoutInflater.from(context).inflate(R.layout.drawer_list_item, null);
+ }
+
+ TextView textView = (TextView) convertView.findViewById(R.id.drawer_name);
+ textView.setText(item);
+ ImageView iconView = (ImageView) convertView.findViewById(R.id.drawer_icon);
+ Log.d(TAG, "icon: " + icon);
+ iconView.setImageResource(icon);
+
+ return convertView;
+ }
+}