Code example for AlphaAnimation

Methods: setDuration, setRepeatMode, startNow

0
		as.startNow();
	} 
	 
	 
	protected void fadeOut(TextView textView) {
		AlphaAnimation fade = new AlphaAnimation(1.0f, 0.0f);
		fade.setDuration(1000);
		fade.setRepeatMode(Animation.REVERSE);
		textView.setAnimation(fade);
		fade.startNow();
	} 
 
	/** 
	 * 获取图片 
	 * @param packName 
	 * @param imgPackName 
	 * @return 
	 */ 
	public Bitmap getImg(String packName, String imgPackName) {
		int idpack = getResources().getIdentifier("com.example.myforg:drawable/"+packName,null,null);
		int idimg = getResources().getIdentifier("com.example.myforg:drawable/"+packName+"_txt",null,null);