I am developing an action plan for Android (simple form). I want to specify the indentation between the various editing texts in a linear layout depending on the screen size.
The larger the screen, the more I want to display the elements separated (to avoid scrolling).
It is clear? Thanks.
You can specify the sizes:
values:
<dimen name="padding">10dp</dimen>
values-sw400:
<dimen name="padding">14dp</dimen>
And so on.
Now you just need to specify the addition as follows:
android:padding="@dimen/padding"
Source: https://habr.com/ru/post/1500806/More articles:Why is C / C ++ "Hello World" in kilobytes? - javaWhat to send on serial ports - jsonnodejs + pause in websocket session - node.jsHTML background scroll effect - javascriptIIS7 Application Pools in C # - c #how to remove a list from a list (i.e. a sublist) if any element of this subscription is in another list? - performanceIs there a hook on git for post-reset? - gitset text for google + link with javascript - javascriptWhat determines the color of strings in jQuery datatable styles? - jqueryAnalysis of a huge (~ 100 mb) kml (xml) file that takes * hours * without any signs of actual parsing - ruby | fooobar.comAll Articles