Allow plugins to specify an icon for the nav drawer
(and add icons for bookmarks)
This commit is contained in:
parent
8a10848e15
commit
cb603ea7be
BIN
mobile/res/drawable-hdpi/ic_action_star.png
Normal file
BIN
mobile/res/drawable-hdpi/ic_action_star.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
BIN
mobile/res/drawable-mdpi/ic_action_star.png
Normal file
BIN
mobile/res/drawable-mdpi/ic_action_star.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
BIN
mobile/res/drawable-xhdpi/ic_action_star.png
Normal file
BIN
mobile/res/drawable-xhdpi/ic_action_star.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
BIN
mobile/res/drawable-xxhdpi/ic_action_star.png
Normal file
BIN
mobile/res/drawable-xxhdpi/ic_action_star.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
@ -169,8 +169,8 @@ public class IITC_NavigationHelper extends ActionBarDrawerToggle implements OnIt
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void addPane(String name, String label, String icon) {
|
public void addPane(String name, String label, String icon) {
|
||||||
// TODO handle icon
|
int resId = mIitc.getResources().getIdentifier(icon, "drawable", mIitc.getPackageName());
|
||||||
mNavigationAdapter.add(new Pane(name, label, 0));
|
mNavigationAdapter.add(new Pane(name, label, resId));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void closeDrawers() {
|
public void closeDrawers() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user