android-ui
android-ui copied to clipboard
Upload sample code
Can you upload the code from the sample apk so others can see how to use this library?
+1
How i'm using in my project :)
ActionView mHome = new ActionView(c);
mHome.setAction(new DrawerAction());
mHome.setColor(Color.WHITE);
mHome.setPadding(itemPadding, itemPadding, itemPadding, itemPadding);
mHome.setBackgroundResource(R.drawable.default_toolbar_action_bg);
mHome.setClickable(true);
mHome.setAction(new BackAction()); // animate to new state
Sample code to use Reveal Color View Demo link : https://gist.github.com/markushi/68ce8df77bed164b6275
I've built a repository for example that supports gradle: https://github.com/yongjhih/android-ui-example
I got it working with other menu items but not with the android.R.id.home one. java.lang.UnsupportedOperationException where I use item.setActionView( hamburgerView );
sample code please :-s