<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應(yīng)用 > android去除ImageButton白色邊框

          android去除ImageButton白色邊框

          作者: 時間:2016-10-08 來源:網(wǎng)絡(luò) 收藏

          android ImageButton默認(rèn)在圖片周圍添加了白色的邊框,很不好看,去掉它的方法:

          本文引用地址:http://www.ex-cimer.com/article/201610/305512.htm

          設(shè)置如下屬性:

          android:background=#00ffffff

          效果前后對比:

          1//android:adjustViewBounds=true
          2
          3//android:padding=0dip

          即可

          其他:

          1code>bitmap=((BitmapDrawable)(imgbt.getDrawable())).getBitmap();//得到ImageButton的圖片
          2
          3
          4if(bitmap.getPixel((int)(event.getX()),((int)event.getY()))==0){//判斷點擊處像素的顏色是否為0,0表示沒 //內(nèi)容/code>


          關(guān)鍵詞:

          評論


          相關(guān)推薦

          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();