I am new to android, I have arranged five LinearLayouts in a horizontal way, if I click the first first LinearLayout it will expand and the other layouts remain in the same position, please help me.
This is the layout design :
As the way you stated, I suggest you to use ExpandableListView
You can see for tutorial HERE
Since you're new, you're gonna have to learn anyway. Since the functionality you're looking for can be easily implemented using a Horizontal ListView, I suggest you try this approach rather than using five LinearLayouts. ListViews have extensive controls. I recommend this implementation from experience : HorizontalVariableListView. Hope this helps!
Related
How to create Horizontal listview that has maximum of 3 row and more column it depends on the data just like in this picture
Link:https://i.stack.imgur.com/cUJjB.jpg
This is my concept don't mind the design i just want to know how to create that kind of list view
You can try FlexLayout.
FlexLayout is similar to the Xamarin.Forms StackLayout in that it can
arrange its children horizontally and vertically in a stack. However,
the FlexLayout is also capable of wrapping its children if there are
too many to fit in a single row or column, and also has many options
for orientation, alignment, and adapting to various screen sizes.
More information can be found in the official documentation.
Set the ItemsPanel of the ListView to a horizontal StackPanel.
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"></StackPanel>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
From this question.
Edit: This solution may actually not work for you. If it doesn't work, take a look at this library. It might help you.
I am trying to create a program with some kind of list which is dropped down when you are clicking in the desired category and reveal some items in there.
I am new to layouts and XML editing, so I would love to have a tip where to start with.
I tried RelativeLayout but then I am stacked.
I don't want you to write the code for me, just some suggestions for what Layout is better to use and I will do my research for that. Thanks.
Use ExpandableListView class, with a custom view for the children :-)
I'm trying to make the duolingo lesson list for fun because im a big fan of the app, im a beginner programmer.
basically id like your opinion on how you think they did it.
here is what it looks like
https://s-media-cache-ak0.pinimg.com/236x/a3/a8/65/a3a865c47153078e7004b74652af7757.jpg
I think it might be a scroll view and linear layout, then perhaps a class for each icon/progress/name combo that will change based on progress
I think a table layout might be an easier solution.
Check it out here: https://developer.android.com/guide/topics/ui/layout/grid.html
I figured out how to do it, you need to use a scrollView followed by a linearlayout.
Then you can programatically add in relative layouts as rows and in those relative layouts make another square relative layout and in that relative layout you stack up the stuff like image/text/progress
I need to swipe between my two almost identic but separated layouts. Like just swipe screen by fingertip and the picture will change and some text will change too... thats all. :) But, isn't there a problem, when I'm using RelativeLayout at both of them?
Spartacus Hello
Bro use pager view for horizontal swipe, here is a simple exapmle of pager view:-
Check it out:-
If you found any issue regarding this please let me know i love to help you,
Spartacus Thanks:- :)
Is there a way to implement List View in Android, with a horizontal scroll? I've come across this library: https://github.com/MeetMe/Android-HorizontalListView . I'm wondering if there's a native way of doing it. I want to implement something similar to Amazon's android app's horizontal Scroll view on Home screen. Any suggestions?
I think that you are looking for this , let me know if it helps.
Yes, now in new versions of Android(Lollipop) you can implement horizontal listviews using new RecyclerView library.
This can help you.