Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reference another dimen in dimen

Is it possible to use the reference of a dimension resource in another dimension? What i mean is something like this:

File dimen.xml:

<dimen name="test1">18sp</dimen>
<dimen name="test2">@dimen/test1</dimen>
like image 870
leuchtdiode Avatar asked Jul 25 '13 12:07

leuchtdiode


Video Answer


1 Answers

It works the way i posted

<dimen name="test1">18sp</dimen>
<dimen name="test2">@dimen/test1</dimen>
like image 188
leuchtdiode Avatar answered Sep 22 '22 15:09

leuchtdiode