android-ui icon indicating copy to clipboard operation
android-ui copied to clipboard

Upload sample code

Open AOrobator opened this issue 10 years ago • 6 comments

Can you upload the code from the sample apk so others can see how to use this library?

AOrobator avatar Oct 06 '14 20:10 AOrobator

+1

robbypond avatar Oct 07 '14 13:10 robbypond

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

ozodrukh avatar Oct 07 '14 18:10 ozodrukh

Sample code to use Reveal Color View Demo link : https://gist.github.com/markushi/68ce8df77bed164b6275

clarkshu1016 avatar Oct 08 '14 07:10 clarkshu1016

I've built a repository for example that supports gradle: https://github.com/yongjhih/android-ui-example

yongjhih avatar Oct 09 '14 07:10 yongjhih

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 );

jonasborggren avatar Oct 11 '14 17:10 jonasborggren

sample code please :-s

abbasalim avatar Nov 24 '14 07:11 abbasalim