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

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -