Hello. To save time, can I fill styles with basic features? Width, height, indents and margins (margin), font size, color, and so on. Then assign the desired style to the elements.

<resourse> <style name="Big_letter"> <item name="android:paddingLeft">15dp</item> <item name="android:paddingRight">15dp</item> <item name="android:TextSize">55sp</<item> </style> <style name="Small_letter> <item name="android:paddingLeft">10dp</item> <item name="android:paddingRight">10dp</item> <item name="android:TextSize">35sp</<item> </style> </resourse> <Button style="Big_letter" android:text="Big" android:id="@+id/btn_big"/> <Button style="Small_letter" android:text="Small" android:id="@+id/btn_sml"/> Я пробывал так сделать, приложение "выбивает" хотя студия не подчёркивает красным. Спасибо. 
  • Attach the error output in the logs. And so far it is clear that you were oppressed in the attribute: android:TextSize . It should be like this: android:textSize - JuriySPb
  • Yes, I fixed it, it works. The logs complained about a string in Java code, which at first glance was not related to the problem of style. - CoffeJava
  • Here it is: setContentView (R.layout.activity_main); - CoffeJava
  • I still do not understand whether you have some kind of problem and if there is something where and what. - YurySPb
  • There is no problem, the question was whether it would be possible in principle. Thank you for your attention. - CoffeJava

1 answer 1

Yes it is possible. One-time determination of characteristics (margins, padings, fonts, etc.) and their subsequent connection to the necessary element will be great for saving me time.