Which one layout is adding - Android? -
i created 2 resource layout
(layout
, layout-large
) .
how can find in code(programmatically) 1 layout
adding ?
as created 2 resource folder, 1 solution create these folder values too. values folder add this:
<resources> <bool name="islarge">false</bool> </resources>
and in values-large folder:
<resources> <bool name="islarge">true</bool> </resources>
then in activity:
boolean islarge = getresources().getboolean(r.bool.islarge); if (islarge) { // } else { // else }
Comments
Post a Comment