R
R
Rinat2019-08-31 07:45:49
Android
Rinat, 2019-08-31 07:45:49

What is the best way to design for a project?

I am tormented by the question of how best to assemble the design. on xml or draw pictures?
xml is easy to manage. for example the background of buttons - the text can be different. The drawn background will stretch, and the xml will adjust. also, for example, create a dialog box where its header is a different color, and bady-content is limited or less, which leaves empty spaces.
How will this affect the speed of generating activities, fragments, RecyclerView ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Developer, 2019-08-31
@samodum

I'll upset you, but now the fashion for layout has begun right in the code, without XML-layout.
https://medium.com/@pedroabinajm/programmatic-layo...
Yes, it's tough. But fashion is fashion. Soon everyone will switch to this piz "child.
So learn kotlin and anko.
Regarding pictures. You need to get rid of PNG wherever possible and switch to vector, SVG.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question