Android shape 矩形边框

一、前言:

先定义:rectangle.xml



        
        
        
        
        
        
     

xml调用:

       

java调用:

   imageAddBtn = (Button) findViewById(R.id.image_add_btn);
           imageAddBtn.setAlpha(R.drawable.bgd_relatly_line);

你可能感兴趣的:(Android shape 矩形边框)