protected android.view.View | createView(int position, android.view.ViewGroup parent, int desiredHeight)
TextView result = new ExpandWhenSelectedView(parent.getContext(), desiredHeight);
result.setHeight(desiredHeight);
result.setFocusable(mItemsFocusable);
result.setText(getValueAtPosition(position));
final AbsListView.LayoutParams lp = new AbsListView.LayoutParams(
ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT);
result.setLayoutParams(lp);
return result;
|