Code example for LinearLayout

Methods: getChildAtgetChildCount

0
    int getChildIndex(View v) {
        return mContentView.indexOfChild(v);
    } 
 
    View getSelectedTab() {
        if ((mSelected >= 0) && (mSelected < mContentView.getChildCount())) {
            return mContentView.getChildAt(mSelected);
        } else { 
            return null; 
        } 
    } 
 
    void clearTabs() { 
        mContentView.removeAllViews();
    } 
 
    void addTab(View tab) {
        mContentView.addView(tab);
        tab.setActivated(false);
    } 
Contextual code suggestions in your IDE  Get Codota for Java