...

drawable-hdpi里面存放高分辨率的图片,如WVGA(480x800),FWVGA(480x854)
drawable-mdpi里面存放中等分辨率的图片,如HVGA(320x480)
drawable-ldpi里面存放低分辨率的图片,如QVGA(240x320

 

private OnCheckedChangeListener onCheckedChangeListener=new OnCheckedChangeListener()
	{
		
		@Override
		public void onCheckedChanged(CompoundButton buttonView, boolean isChecked)
		{
			if (isChecked)
			{
				Toast.makeText(getApplicationContext(), "看见密码", Toast.LENGTH_SHORT).show();
				EDpassword.setTransformationMethod(HideReturnsTransformationMethod.getInstance()); 
			}
			else 
			{
				Toast.makeText(getApplicationContext(), "没看见密码", Toast.LENGTH_SHORT).show();
				EDpassword.setTransformationMethod(PasswordTransformationMethod.getInstance());  
			}
		}
	};


 

你可能感兴趣的:(...)