2016-04-16 67 views

回答

0

嘗試在setBackgroundResource

使用可拉伸的說法就像這樣:

Button myButton = (Button) View.findViewById(R.id.myButton); 

myButton.setBackgroundResource(R.drawable.myBackground);