Code example for BitmapDrawable

Methods: setAntiAlias

0
//			String[] dizi={"Tarayıcı", "Sosyal Aglar","Youtube","Gmail","Galeri","Oyunlar", "Wikipedia", "indirilenler","Ayarlar"}; 
//			Toast.makeText(getApplicationContext(), ""+dizi[position], Toast.LENGTH_LONG).show(); 
//		    position++; 
			// Make sure we set anti-aliasing otherwise we get jaggies 
			BitmapDrawable drawable = (BitmapDrawable) i.getDrawable();
			drawable.setAntiAlias(true);
			return i;
 
			// return mImages[position]; 
		} 
 
		/** 
		 * Returns the size (0.0f to 1.0f) of the views depending on the 
		 * 'offset' to the center. 
		 */ 
		public float getScale(boolean focused, int offset) {
			/* Formula: 1 / (2 ^ offset) */ 
			return Math 
					.max(0, 1.0f / (float) Math.pow(1 / 2, Math.abs(offset)));
		}