Methods Summary |
---|
protected android.view.View | createView(int position, android.view.ViewGroup parent, int desiredHeight)
final Context context = parent.getContext();
if (position == 0) {
return ListItemFactory.horizontalButtonSlots(
context, desiredHeight, Slot.Left, Slot.Right);
} else if (position == 1) {
return ListItemFactory.horizontalButtonSlots(
context, desiredHeight, Slot.Middle);
} else {
throw new IllegalArgumentException("expecting position 0 or 1");
}
|
public android.widget.Button | getBottomMiddleButton()
return (Button) ((ViewGroup) getListView().getChildAt(1)).getChildAt(1);
|
public android.widget.Button | getTopLeftButton()
return (Button) ((ViewGroup) getListView().getChildAt(0)).getChildAt(0);
|
public android.widget.Button | getTopRightButton()
return (Button) ((ViewGroup) getListView().getChildAt(0)).getChildAt(2);
|
protected void | init(Params params)
params.setItemsFocusable(true)
.setNumItems(2)
.setItemScreenSizeFactor(0.2)
.setMustFillScreen(false);
|