Array
(
    [0] => WP_Term Object
        (
            [term_id] => 21
            [name] => Android
            [slug] => android
            [term_group] => 0
            [term_taxonomy_id] => 21
            [taxonomy] => category
            [description] => 
            [parent] => 0
            [count] => 66
            [filter] => raw
            [cat_ID] => 21
            [category_count] => 66
            [category_description] => 
            [cat_name] => Android
            [category_nicename] => android
            [category_parent] => 0
        )

    [1] => WP_Term Object
        (
            [term_id] => 22
            [name] => Android Library
            [slug] => android-library
            [term_group] => 0
            [term_taxonomy_id] => 22
            [taxonomy] => category
            [description] => 
            [parent] => 0
            [count] => 52
            [filter] => raw
            [cat_ID] => 22
            [category_count] => 52
            [category_description] => 
            [cat_name] => Android Library
            [category_nicename] => android-library
            [category_parent] => 0
        )

    [2] => WP_Term Object
        (
            [term_id] => 2
            [name] => Featured
            [slug] => featured
            [term_group] => 0
            [term_taxonomy_id] => 2
            [taxonomy] => category
            [description] => It is list of posts given by Editorial hand-picked. May be you enjoy all of this articles.
            [parent] => 0
            [count] => 61
            [filter] => raw
            [cat_ID] => 2
            [category_count] => 61
            [category_description] => It is list of posts given by Editorial hand-picked. May be you enjoy all of this articles.
            [cat_name] => Featured
            [category_nicename] => featured
            [category_parent] => 0
        )

)
///////////

Animating Sidebar Android

0
36
Animating Sidebar Android
Animating Sidebar Android

You can see that cool sidebar animations in your Android contact app with animating sidebar features and if you also want to implement that cool feature in your application then you’re at right place.

In this animation library  a SiderBar base on Android that has a wave animation. Lets dive in implementation of this library.

You can download Animating Sidebar Android project and run the demo.

Demo : Animating Sidebar Android
Demo : Animating Sidebar Android

To use,you should write like this in your layout

<com.allenliu.sidebar.SideBar
android:layout_alignParentRight="true"
android:textColor="@color/colorAccent"
android:textSize="15sp"
android:paddingRight="10dp"
sidebar:scaleTime="1"
android:layout_width="200dp"
android:id="@+id/bar"
android:layout_height="match_parent" />

After this ,you can add a setOnStrSelectCallBack,like this

bar.setOnStrSelectCallBack(new ISideBarSelectCallBack() {
        @Override
        public void onSelectStr(int index, String selectStr) {
            Toast.makeText(SideBarDemoActivity.this,selectStr,Toast.LENGTH_SHORT).show();
        }
    });

There are some other methods to apply:

setDataResource(String[] data)
setScaleTime(int scale)
setScaleItemCount(int scaleItemCount)

Hope you like this article. Please comment us with your suggestions.

Share your thoughts

Loading Facebook Comments ...
Loading Disqus Comments ...