Create Grid collage in android - android

I am working on a collage maker app. I have made Free collage successfully. Now I want to make grid collage. I have array of Image urls and I want to show these images in grid template of more than one designs. So what should I do for this approach.I have to make Grid Template Like this or may be with angled inner edges.
I have made this by using Grid Layout, it is successfully made but problem arrive when I am trying to make it like second Image
Please Help me I am stucking here for long time, Thanks.

Begin with an example from Google. There are plenty of step by step examples: http://developer.android.com/guide/topics/ui/layout/gridview.html

Related

Displaying One or Multiple Photos in post like Instagram

I am creating a photo blog app using firebase. I am able to allow user to post one or multiple photos on the firebase database and I am also able to retrieve them successfully.
Above image is the bottom view of an instagram post.
Just like that I want some type of View or Layout. I already have a working layout which can show only one image with like, comment and share options.
If the user wants post one photo, the layout should show just one slide and if user wants to post multiple photos, it should create a so called Sliding View to display all images side by side.
How do I do this ?
If you want me to clarify anything in more detail, please let me know.
If you need to build something similar that you mentioned then take example from the following library.
View Pager Indicator
You need to use ViewPager along with CirclePageIndicator mentioned in the library.
ViewPager - images container
CirclePageIndicator - circle indicator
You will need to add another overlapping view, which will contain like, comments and other buttons.

Equivalent of web partial in Android

I am more familiar with web, but I am programming an Android app.
This is a beginner question, but I'm having trouble wrapping my head around reusable views in Android. On the web, I would create a partial view and pass parameters to be added via a templating language. What is the best way to do this on Android?
More specifically, I am trying to add a grid view where each slot of the grid has an image and a subtitle with a border. I want to dynamically load the image and subtitle from the database, and add an unknown number of images to the grid.
How could I create a view to hold the images and subtitles and then dynamically load them into the grid with different data?
Creating a GridView programatically:
http://www.codeproject.com/Questions/705639/how-to-create-gridview-in-android-programaticall
This should help you with the skeleton and you can add an ImageView and TextView as per your requirements.
How could I create a view to hold the images and subtitles and then dynamically load them into the grid with different data?
You need a GridView and an Adapter to load the items dynamically into your grid. I can't post the code actually here, because it would be a very long answer. But Here is a nice tutorial to get you started. In the example, there is a grid build with dynamic images showing step by step what you're looking for.

How to create clickable photo collage in android?

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.

Set images randomly in the grid in Android

I am using a version of the "Grid View" example from the Android Developers site: http://developer.android.com/resources/tutorials/views/hello-gridview.html And I would like to display images in reach grid randomly and the image position will change in each click. Can someone please give an example of how this might be accomplished (i.e. what needs to be edited)? Thanks!
You need to implement a custom ListAdapter, where you need to check which items are visible and select then a random image which is not visible. Bute note that a total random list will confuse your users. Better sort your images by random and visualizate them same in one instance.

Custom Adapter for Gallery View in Android

hi i want to split my gallery with 5 images in 2 rows.
Please let me know how to do this in android using Gallery View & custom adapter for Gallery view.
Is there any sample code available please share it, i have already checked the previous posts in this site.
Thanks
If you still need this and Pagination instead of scroll will work for you, you might look at: https://github.com/sfarooq/PaginatedGallery
I designed it using ViewPager so you can manipulate the adapter to send any kind of views you want including two row views.
If you must use scrolling galleries you could implement two separate gallery in a vertical orientation and send touch events from each to the other.

Categories

Resources