How to make indentation in ListView?
How to make the horizontal padding around the edges of each ListView item, such as in "Google"?
(In the picture the red dots marked the places where you need to indent)
(Below is an example of how to do this)
June 5th 19 at 21:30
As to FALSE when UPDATE in MySQL, if a query was not performed because of invalid conditions?
Why the file does not open and loaded?
How to reduce the cost of developing such a terminal?
Does not see the function of jquery in wordpress, what to do?
How to organize huskies blog posts (express/mongoose)?
How cleverly traverse the port to access the LTE modem through the VPN?
How to implement two-way bindings between a component and a service?
How to create a new object in VueJS?
More answers about
"How to make indentation in ListView?"
June 5th 19 at 21:32
Throw ListView. Take RecyclerView. Implement ItemDecoration.
And ListView in any way? Just have all the application to alter..
commented on June 5th 19 at 21:35
the app is written very poorly. To switch from ListView to RecyclerView usually have to change two files.
commented on June 5th 19 at 21:38
this is my first app of course badly written)
commented on June 5th 19 at 21:41
, so you will benefit from rewriting.
commented on June 5th 19 at 21:44
As famously Denis Zagajewski blamed the app in the "very poorly written" because of the ListView. There is nothing wrong there for small lists. Moreover, they are out of the box does more than RecyclerView.
Daniel, show your item_layout, look that there Yes as.
commented on June 5th 19 at 21:47
Denis Zagajewski blamed the app in the "very poorly written" due to the fact that the transition to another widget need(application) to be completely rewritten. Soran, but Yes, this is a very poorly written app. And you're just incompetent. Or bring justification about the small lists.
if you have a goal anyhow quickly contrive to do something - continue in the same spirit. In 2018 you need a RecyclerView, I guarantee it.
commented on June 5th 19 at 21:50
you know why I invented the ListView, and why you need convertView?
commented on June 5th 19 at 21:53
and now come on, what about the performance and small lists? And that big, suddenly will slow down? ViewHolder pattern for ListView by this code, "no, not heard"? The question about what you came up with a ListView that is also the answer.
commented on June 5th 19 at 21:56
no , the code when using RecyclerView will be less and it will be clearer. And I know about you but I'm not sure. Your Faile with small lists, the performance and the code speaks for itself. I decide not fast, it is the result of reflection and work.
No "tasks" for the ListView does not exist, that old shit of a mammoth which should be buried as soon as possible. That's why I have every answer about the ListView will continue to advise you to dump him.
There is no reason to continue to use it. But there are the following reasons everywhere to use RecyclerView:
Uniformity. Convenience. Flexibility. Performance. Animation out of the box. ViewHolder out of the box. Decoration items from the box. The ability to change the layout randomly. Able to fumble the pool vyuha between different screens.
commented on June 5th 19 at 21:59
, soran, in adult development a little differently. Anyhow and ready to roll, so if necessary, separators can easily be 3 different in one list, and columns is a different number in different lines. What will you do with your AdapterView I am afraid to even imagine, apparently, wrapped in a sheet and crawl to the cemetery. Take my advice, and you'll have it all rules. I spend time you don't want, already.
commented on June 5th 19 at 22:02
yeah who told you that it spent more time?
About the code - the only way to add to viewfolder would violate local SRP. Knowledge of Kotlin nothing to do with. And these statements are even more convinced that the expert you no.
commented on June 5th 19 at 22:05
June 5th 19 at 21:34
No, this attribute is not responsive.
commented on June 5th 19 at 21:37
to write your answer or comment.
Find more questions by tags