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

Popular posts from this blog

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -