QVDev Blog

profile for QVDev on Stack Exchange, a network of free, community-driven Q&A sites
Custom Android Libraries


Started playing around creating libraries for Android. The first useful library I made is a custom ListView and GridView. The purpose is to have some animation to indicate the top or bottom of the scrolling. To use it add the .jar file to you’re libraries can be downloaded at the bottom, and define you’re xml layout as follow:

//ListView
qvdev.utils.libraries.lists.KinecticListView ...
//GridView
qvdev.utils.libraries.lists.KinecticGridView ...

And then in in code you can do simply the following.

private void test()
{
 mListContent = (KinecticListView) findViewById(R.id.content_list);
 mListContent.setAdapter(mListAdapter);
        mListContent.setBouncing(true); //For bouncing animation
        mListContent.setKinectic(true); //For kinectic animation      
}

Source code can be found here: QVListLibraries on GitHub

comments powered by Disqus
Back Home
Web Analytics