Code example for ViewFlipper

Methods: addView, measure

0
	/** 
	 * �����ı� 
	 * @param mText 
	 */ 
	public void addText(String mText) {
		mViewFlipper.measure(0, 0);
		TextView mTextView = new TextView(getContext());
		mTextView.setText(mText);
		mTextView.setTextColor(Color.WHITE);
		mTextView.setGravity(Gravity.CENTER);
		mTextView.setShadowLayer(2, 0, 0, Color.BLACK);
//		mTextView.setEllipsize(TruncateAt.MARQUEE); 
//		mTextView.setSingleLine(); 
		LayoutParams lp = new LayoutParams(LayoutParams.FILL_PARENT,
				LayoutParams.FILL_PARENT);
		lp.gravity = Gravity.CENTER;
		mTextView.setLayoutParams(lp);
		mViewFlipper.addView(mTextView);
	} 
 
	//�޸��ı� 
	public void setText(String[] mText) {
		for (int i = 0; i < mViewFlipper.getChildCount(); i++) {