How to create own Gallery View?
i want to view multiple images and scroll.
Thank you,
Rajesh Patil
As I understand correctly you need to create your custom Gallery view. You need to extend it from AdapterView. There is a great example of how to do that, but in custom ListView interpretation by SonyEricsson. You may use it to figure out how to create custom Gallery
Related
I want to create as per below image in that all blocks contains the image we can call it photo collage and its will also clickable. How can I make this using GridView or any other view or library.?
If anyone has any idea related to this then please suggest me the write way.
From what I understand from your question, you want to show multiple images in a grid view like pattern and they may have different sizes/aspect ratios? Right?
QuiltView can be used to achieve this.
I am creating a picture gallery for newly android release jellybeans.But i got to know from here is that gallery widget is deprecated and they suggested to use ViewPager or HorizontalScrollView.I decided to use HorizontalScrollView to create my gallery.
But after a while i found that we cant set adapter to HorizontalScrollView. Now I am confused how to create my gallery in jellybeans. Help me with your suggestions.Any help will be highly appreciated.
Thank you.
Here is an article and component that subclasses AdapterView for a horizontal ListView. It uses recycling, and standard AdapterView.OnItemClickListener. Note: It does not automatically "snap" to the center view.
Below is an image of GPS Essentials app, which I guess a lot uses.
I am interested in making a menu similar to this. How is such a menu (or what ever it is called) created.
My first thought was to use a ListView having elements containing an image and text-view in vertical orientation. But then I was wondering if there is any better, preferably an easier way to do it.
I would be very greatful if you could share your experience with me. Thank you.
GridView is the solution exactly. You have to actually define a custom adapter for the GridView.
Why custom adapter? Because you have to inflate a custom row (having ImageView and TextView) to every item in your GridView.
Hint: Search for the example with word "Android Gridview example", you will get many articles/tutorials.
use GridView. You can find documentation here http://developer.android.com/resources/tutorials/views/hello-gridview.html
In my application, I'm using a gridview to display images, but I want to display the text on the images. Is this possible? If so, how can I implement it?
Thanks.
Just give you a hint.
You must have seen "hello gridview" here: http://developer.android.com/resources/tutorials/views/hello-gridview.html
You just need to get a custom view (may be a LinearLayout) instead of a imageview in getview() in adapter.
Hope this help.
I have multiple ListViews and would like to add those to Gallery.
I tried with addView but it is not supported since Gallery view is an AdapterView.
Can someone let me know how to go about it?
Regards
Sunil
I have multiple ListViews and would
like to add those to Gallery.
That is unlikely to work. Either the Gallery or the ListView scrolling probably will not function.
I tried with addView but it is not
supported since Gallery view is an
AdapterView.
Correct.
Can someone let me know how to go
about it?
You will need to create an Adapter containing your ListViews, and hand that Adapter to your Gallery.
An example on how to use the Gallery class together with an Adapter can be found here. The adapter in this example provides images. You could provide your ListViews