I want to create a simple view like this. (red circle)
I searched on internet for Bundling in Recyclerview but I could not find any resources.
Can anyone tell me the name of this view or share any tutorial resources.
Can someone share an example of how to do it. Or any Tutorials on how to get this view . - Bounty question
In recyclerview you can do this with item decoration.
An ItemDecoration allows the application to add a special drawing and
layout offset to specific item views from the adapter's data set. This
can be useful for drawing dividers between items, highlights, visual
grouping boundaries and more.
All ItemDecorations are drawn in the order they were added, before the
item views (in onDraw()) and after the items (in onDrawOver(Canvas,
RecyclerView, RecyclerView.State).
refer here
or
you can design a custom layout and inflate it using getViewByType in
viewholder
I think you better to follow this videos, i am sure my side this videos gives you a perfect idea on Android Recyclerview and also provide a solution for problem.
Please follow this youtube link: https://www.youtube.com/watch?v=XhbsNO2_oDI
ItemDecorator from example below doesn't suite you. Try to use Expandable Listview, which helps you to adjust list, when user tap on image below list item, and expand size for another item, for example, chat messages in your image.
Use This Example!
Related
I want to make a CircularListView that will be coming from corner click of screen and only half list item should be visible before scrolling. And the item in list is in Dynamic nature - .
And I have used these libraries from github but not getting any efficient solution from any of them. These libraries are:
RamotionCircleMenu -> In this library custom layout is not possible.
HellocslCursorWheelLayout -> Here no customization is possible, Item Selection is poor.
JungHsuanCircularList -> When you add items in bulk the item overlaps, circle radius not get updated according to item count(still this one is better)
LukedeightonWheelview -> Only Drawable as item is allowed.
So please let me know if anyone is having solution for it. I want the solution for dynamic item count, custom layout as item and smooth scroll of List/RecyclerView.
I'm Using to this layout manager to show recycler view in android
https://github.com/AndroidDeveloper98/CircularRecyclerView
I have a question related to Android app UI implementation. The UI I want to implement is very similar to the Slideshare app UI, which I've attached below:
Apologies for the size of the image. But basically I want to implement a vertical list, and each item within the list is another horizontal list of sub-items.
My current plan of approach is implementing a vertical RecyclerView, and then implementing each item of the list as a horizontal RecyclerView (basically a 2-Dimensional RecyclerView).
Am I on the right track here? I apologise I cannot provide any code because I am still in the design phase. I do not want any code solutions but rather a guide or small tips as to how to approach implementing such UI.
Thank you for your time reading this question. Any tips would be highly appreciated!
You can use TwoWayView library to implement this scenario for bot horizontal and vertical listviews or you can use RecyclerView.
TwoWayView Library: https://github.com/lucasr/twoway-view/
TwoWayView Samples: https://github.com/lucasr/twoway-view/tree/master/sample
You can read a great tutorial about how to implement this on on this Github page.
You can take a look at VerticalHorizontalListView and twoway-view
and of course this link might be a help, which explains how to implement Dynamic Shelfview in Android.
I found this answer on SO :
Horizontal ScrollView in List View Item Android which explains the issue prefectly, you can take a look at that too. I hope this links help you ;)
Many apps have a side scrolling list of views: take the new Twitter highlights feature or even the introduction activity of pretty much every app out there.
The main behaviour I'm looking for is a list of views which contain a mixture of text and images, this list of view scroll horizontally instead of vertically & the views 'lock' so they are fully in view no partially.
Is there a built-in view that I'm unaware of (considering I have only been doing this for a few months now I wouldn't be surprised) or something else entirely
Optional request: along side it how would I support pagination style naviagtion
Is there a built-in view that I'm unaware of or something else entirely ?
Yes
You can use RecyclerView to show Horizontally Scrolling List . You can visit this link to implement RecyclerView .
And to add HORIZONTAL scrolling functionality use this link .
I am bit more concern of OOM on having a heavy UI on each item of a listview, example I have 100 items.
Below is the image that I wanted to practice and copy the UI layout. What would be the possible layout or how can I implement this type of UI. Each items are scrollable until the bottom, with separate contents but same layout. Please see my update below.
Update: I am planning to use card ListVIew, please guide me.
You can use simple listView or card ListView but make sure listView raw does not have many nested layout for avoiding nested hierarchy you should use Relative Layout in list raw
I think using a listview with custom row layout will be better for your app.This will help you to reuse the same layouts which are inflated when loading listview.Also please check the size of images you used in the rows.
i'm making an app that requires indefinite textviews and images. i'm trying to implement a Pulse News app UI but having a hard time implementing one. so i thought of an idea to make a UI like that with the use of textviews, imageview and horizontal scroll view.
textview string values are from parsed xml online and images or the imageviews will be images from a specific directory in the sdcard that my app is using.
can anyone give me ideas how can i do it without using an xml layout or is there any or other options or ways for doing this? thanks...
You can create a viewgroup with one textview and an image. Then it can be added dynamically to your layout many times. This can be done by creating objects in a loop. You can change the content in each viewgroup at the time of inflation.
though i dont know what exactly how pulse new app looks like, but by going through your question (horizontal scroll view in particular) I guess you want to implement a "Gallery" type implementation where in you can swipe left/right on page basis.
If my assumption is correct then you will like to see to ViewPager of android backward compatiblity pkg.