I have made few Gallery modules by using GridView i have used this tutorial: http://www.androidhive.info/2012/02/android-gridview-layout-tutorial/,
but now this time i want to make it more custom for my usage, i want to Categories Images, Please see below Screen Shot
I will be use static images under specific Categories
How to make this kind of Image Gallery:
I have never tried, but i have found this sample code, and please try to custom it as you like:
http://blog.blundell-apps.com/infinite-scrolling-gallery/
you can do it by implementing Jeff Shrkey's SeperatedListadapter
http://jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/
and you can
Look 1
Look 2
There isn’t an easy way of creating these separated lists, so I’ve put
together SeparatedListAdapter which does it quickly. To summarize,
we’re creating a new BaseAdapter that can contain several other
Adapters, each with their own section headers.
Create a Layout having a TextView and custom ListView. in each listItem have a GridView. and Load GridItems.
The TextView is for the Category Name.
Basically you must combine, the Custom ListView Implementation and GridView Implementation to achieve your objective. You can find Separate Tutorials for doing the same in the same androidhive website. But, you must work on combining them into one.
Related
My problem is simple: I need to make a layout similar to android.R.layout.simple_expandable_list_item_1 which can fit more than one textview in the layout, as well as show the little '>' symbol that indicates that the tab is expandable.
How can this best be accomplished? My first thought was to use the layout as a background of a linear layout with two textviews in it, but I can't seem to make that work.
Vogella has a pretty good tutorial on how to achieve custom list views through Adapters.
Basically, what you do is you create a Layout with the looks you want for the list items and then you extend an adapter (ArrayAdapter for instance), see section 4. Then, in your activity, you create an instance of your Adapter implementation and populate it from an Array containing the data for the list.
Also have a look at the Developers site for how to make the list scroll smoothly with the ViewHolder pattern.
And if you feel you need more info on the expandable part maybe the hive can help.
I wonder if there is a tutorial or example code how the effect below achieved in Android, or if someone published an adapter already for this... Basically based on the number of results returned the screen is populated with boxes, and as the finger swipes down more boxes will load on demand until the results run out.
This is a GridView. And you can use your custom Load More GridView. This is a custom ListView example of the same. You can implement your own custom GridView similar to this.
What you are looking for is a Lazy List Adapter.
There is a great implementation for it. You can check it here. All what you need next is to create the layout of your list rows, i.e the boxes.
I have some data in my data base and i want to display it in android phone.I want to display my data on Grid-view because there is continuous variation in my data therefore i want to display in android like asp.net gridivew.Please anyone help me to do this or any example code to do this
You need to have two things for the Gridview:
Use Gridview component in a layout.
Inflate the elements in a getView method and set elements position by position to the Gridview items.
You can follow this link to understand it:
http://android-coding.blogspot.in/2011/09/simple-gridview-example.html
You are on the right track as you have decided yo use a dynamic view for your varying data. You can use any one of the dynamic view(list view, grid view, gallery, etc) depending on the kind of data you need to display.
If you are not familiar with these dynamic views then you should first go through some tutorials on implementation of these views. First try with a basic program for understanding the concepts. Once you are clear with the concepts then all you need to do is to replace the underneath data with the data fetched from the data base.
There are lots of tutorial available on net. Here are some links:
GridView tutorial
ListView tutorial
Feel free to discuss in case there is any doubt.
Good Morning All,
I am creating an application to display List of applications with their data usage.
I want my list to look similar to Traffic Counter Pro on android Market
I have also added the print-screen on my box.net as SOF does allow me to upload image
So Can someone direct me how to create ListView like this?
My second Question related to this how to create a tab style Activity.
Two examples that helped me a lot:
http://www.codemobiles.com/forum/viewtopic.php?t=876
and
http://android-developers.blogspot.com/2009/02/android-layout-tricks-1.html
i hope they are usefull to you.
You have to use custom ListView to embed images and format texts as given in the listview.
check out this example or this example or this example or even this example that gives you good understanding on listviews.
Good luck.
This is ListView which items consist of 4 Views objects, look through the tutorial of how to create ListViews and through the tutorial of how to create TabActivitys. And also use links suggested by #parag.
If you observe the screen shot carefully you can identify that group of these fields are available as list item.
They are
Application Icon
Application Name
Data Uploaded
Data Downloaded
Total Data Usage
So you have to create a layout with these fields as children with appropriate position and Use this custom layout as child layout for ListView.
I hope it may help you.
I want to have more than one dynamic listview with title in one signle activity.each list item has the image and it's name.i have to do like below image.Please suggest any solution.
Thanks,
you have two options:
i) either partition screen in two parts using weight attribute and use different listviews.
or
ii) you can take a look at good tutorial here for an idea.
one more concept if you find easy is using MergeAdapter