How to make layout like google play home? - android

How to make layout like this? Its looks like listview with many gridviews or listview of many different layouts. I have no idea how should i make this. On scrolling its get totally changed and also it have different more button colors. Please help me if anyone have solution.

This question is so straight forward! Don't post such kind of questions before you dig and analyze.
If I'm designing this then this how I do. (This is just a sample of static design). But Google did lot's of work here and its a dynamic content.
First the parent layout will be android.support.design.widget.CoordinateLayout and there is ScrollView or NestedScrollView as child.
Then comes SearchBar. There is a separate documentation for that. Kindly go through.
Third TableLayout with 2 columns and 3 rows which holds Buttons
Fourth is custom ViewHolder with title, subtitle and button and custom CardView at bottom of the title contains ImageView and ToolBar below with Menu.
And all these cards will have its own components etc.,

Related

Android custom layout with different number of childs in row

I have been developing android for a while and I have been facing many similar layouts to the one in screenshot (in both iOS and Android)
So what I would like to achieve is the different number of childs in each row.
Well, first I would like to ask is there a specific name for this layout type, it is not gridview although very close to it.
The structure seems like it can be populated with an adapter since all child buttons look alike
Any help, suggestion, solution or example library is much appreciated.
Taken from Foursquare for Android
Since there is a chance of more than two childs (as you said) therefore what i think is that you can't accommodate so many childs as they would not be visible unless the listview row is horizontally scrollable.......I think you can use gallery widget as an item of listview and then you can have different childs in each row... You can google about the gallery widget, instead of images add your custom layout as gallery item.

Android: Layout used by wechat

In WeChat, it uses white sections for different things as you can see in below image there are three white sections in it and each item is separated by a black line:
I can suspect this is not a ListView as one might think in first glance.
Question: Does anyone know is this some built-in component that can be used or how to go about creating similar sections ?
I would say a linearlayout inside a scrollview with your custom listview and custom adapter is the most straightforward solution.
Each time the view is inflated you check the shared preference and fill in the info accordingly in your adapter. And on item click you open corresponding fragment/activity that do something. Then you issue a callback to refresh this settings view.
Might not be the most elegant way to do it. But I think this one is easy and clear.
I guess its a preferences activity/fragment but you can create it with a listview, linearlayouts or a combination of a scrollview and a linearlayout.
You have too many solutions ;)

Android Programming Design for Netflix Movie Landing Style

I'm trying to develop something that has a similar concept to how Netflix is currently working on Android... But I need help with ideas for the implementation... Here is what I am trying to accomplish:
Naturally this screams to me:
ExpandableListView where the Category Names are the Groups and the movies in each category are the children. Now here is where it gets tricky; Netflix is currently using a paging theme for scrolling horizontally; and there is a little bit of a preview of the next page of movies (starred and outlined in yellow).
What do you think is a good way to code this?
I currently just have an ExpandableListView and each child is a horizontal scrollview with a linear layout; and I just add each "movie" to the linear layout inside the horizontal scrollview.. however I'd like to do something that reuses cells / is more efficient on system memory.
I'd like to use a ViewPager for each of the children and use a FragmentStatePagerAdapter as the adapter. Now here are my problems:
1) In this case the movies fill the screen proportionally; I will not know the width of the screen so how can I adjust the elements in the page so that it could look as nice as Netflix does
2) How can I setup a preview for the next page?
3) Should I be worried about the ExpandableListView stealing focus from the ViewPager children?
Am I thinking about this right or should I try something entirely different to Accomplish this?
Thanks for all of your help!
here are my findings from using uianimatorviewer as per request: #MinceMan

How can I make a listview with more than a title?

I would like to have a special listview with a title, couple of sub-categories, and a picture. The picture below is a rough idea of how I would like to lay it out. I am very new to android so keep in mind that details really helps me. Thank you in advance.
You can create an xml layout that is used for each ListView item. If you haven't yet, read through Common Layout Objects for an introduction to the different layout types. There are also a "Hello layout" tutorial for each layout type, linked from that page.
In this case, you could use a horizontal LinearLayout with a vertical LinearLayout and an ImageView inside of it.
To bind your objects to the views within your ListView item, use a SimpleAdapter. You can find a number of tutorials on SimpleAdapters if you search around, for example.

ListView forms part of an activity, rather than the activity?

For my next application, I'd like a ListView to form part of the app. Specifically, I'd like it to be the top half of the screen. Having looked through the documentation, I've only been able to find full screen list views, ie with the list taking up the full screen.
Is there any way of doing ListViews differently? I know there must be, but I'm unsure how to implement them myself. Does anyone have any pointers?
Just put the ListView in a container, like a LinearLayout or RelativeLayout, along with peer widgets. Like you see here.

Categories

Resources