カスタマイズしたViewPagerを作成するにはどうすればよいですか?カスタムViewPager
public View getView(int position, View convertView, ViewGroup parent) {
View v = convertView;
if (v == null) {
LayoutInflater vi = (LayoutInflater)getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = vi.inflate(R.layout.the_layout, null);
}
CustomView cv = items.get(position);
if (cv != null) {
TextView text = (TextView) v.findViewById(R.id.text);
if (text != null) {
ticker.setText(cv.getText());
}