if (index < 3) { return getContentChildAt(index); } else { LinearLayout ll = getContentChildAt(3); return (Button) ll.getChildAt(index - 3); }
return mNumButtons;
final int numButtonsInSubLayout = getNumButtons() - 3; params.addButtons(3, "top-level", mButtonHeightFactor) .addVerticalLLOfButtons("embedded", numButtonsInSubLayout, numButtonsInSubLayout * mButtonHeightFactor);