Issue
I have one dimen
<dimen name="fab_margin">16dp</dimen>
I want plus fab_margin
, android:attr/actionBarSize
?
like this
<dimen name="fab_margin_fragment">(@dimen/fab_margin)+(?android:attr/actionBarSize)</dimen>
Solution
You can use programmatic way.
int getMargin= (int) getResources().getDimension(R.dimen.fab_margin)+(int) getResources().getDimension(R.dimen.fab_margin_fragment);
Answered By - IntelliJ Amiya
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.