Objective
Welcome everyone I share and recommend useful code Snippets ~ ~
Statement
Welcome reprint, but please keep the original source of the article:
CSDN:http://www.csdn.net
rainy season o mo away:http://blog.csdn.net/luckkof
Body
Define first: Rectangle.xml
<?xml version= "1.0" encoding= "Utf-8"? ><shapexmlns:android= "Http://schemas.android.com/apk/res/android" ><!--Interior Color--><solidandroid:color= "#00000000"/><!--edge Line Color--><strokeandroid:width= "1DP" Android:color= "#ff495a"/><!--the amplitude of the fillet--><cornersandroid:topleftradius= "0dip" android:toprightradius= " 0dip "android:bottomleftradius=" 0dip "android:bottomrightradius=" 0dip "/> </shape>
. XML Calls:
<linearlayout android:id= "@+id/linearlayout1" android:layout_width= "fill_parent" android:layout _height= "45DP" android:background= "@drawable/rectangle" android:orientation= "Horizontal" >
. Java Calls:
IMAGEADDBTN = (Button) Findviewbyid (R.ID.IMAGE_ADD_BTN); Imageaddbtn.setalpha (R.drawable.bgd_relatly_line);