How to make indentation in ListView?

Good day!
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)
f1bgs4yQzkg.jpg

(Below is an example of how to do this)
RidLWWkedcc.jpg
June 5th 19 at 21:30
2 answers
June 5th 19 at 21:32
Throw ListView. Take RecyclerView. Implement ItemDecoration.
And ListView in any way? Just have all the application to alter.. - Donato 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.
Take CardView. - Art_Christians commented on June 5th 19 at 21:38
this is my first app of course badly written) - Donato commented on June 5th 19 at 21:41
, so you will benefit from rewriting. - Art_Christians 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. - otto16 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. - Art_Christians commented on June 5th 19 at 21:50
you know why I invented the ListView, and why you need convertView? - Art_Christians 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. - Art_Christians 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. - Art_Christians 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. - Art_Christians 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. - Art_Christians commented on June 5th 19 at 22:05
June 5th 19 at 21:34
padding?
No, this attribute is not responsive. - Donato commented on June 5th 19 at 21:37

Find more questions by tags JavaAndroid