android - Adding dynamic content in Linear Layout -


i'm working on android app, when user taps on icon, layout defined (for now) in main layout slides information.

the problem have icons of different types, when 1 clicks on 1 type of icon or another, information in pop should different (there different objects different structures behind icons).

what possibilities have? programmatic way not seem elegant enough. there templating frameworks in android? please provide examples, too.

you sub-class icons (that means types shown each icon), having each 1 it's own fragment sub-class, can use different layout on fragment.

here more info fragments


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -