android - Dynamic resource id for inflater.inflate -


i having dynamic layout below code.

        linearlayout=new linearlayout(sactivecontext);               linearlayout.setlayoutparams(new layoutparams(layoutparams.fill_parent,layoutparams.wrap_content));          linearlayout.setorientation(linearlayout.vertical);          customwebview webview=new customwebview(sactivecontext);         framelayout layout=webview.createwebview();                  (int = 0; < arraylist.size(); i++) {             if(tab.getposition()==i)             {                 webview.initwebview(arraylist.get(i));                 mwebviewlist.add(i, webview);                 break;             }         }         linearlayout.addview(layout); 

now, how can inflate linearlayout? please give suggestions.

you return linearlayout object @ return statement of oncreateview. or else can add linear layout object inflated view(myfragmentview) can inflate xml layout files , not dynamic layout.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -