2014-01-23 82 views

回答

1

我試試這個代碼&工作的權利:

BitmapDrawable bg =(BitmapDrawable)getResources().getDrawable(R.drawable.ic_launcher); // get the image as bitmap drawable 
bg.setTileModeXY(TileMode.REPEAT, TileMode.CLAMP); // set the TileMode. 
getActionBar().setBackgroundDrawable(bg);