Code example for BitmapDrawable

Methods: setTileModeXY

0
//            Log.d("Style", "targt="+st.toString()+";color="+color+"; img="+imgSrc); 
            if(!imgSrc.equals("")) {
                //This is a background image source 
                BitmapDrawable bd = (BitmapDrawable) 
                        Util.getDrawableFromUrl(imgSrc, "bgimage");
                bd.setTileModeXY(Shader.TileMode.REPEAT, Shader.TileMode.MIRROR);
                if(bd!=null) {
                    view.setBackgroundDrawable(bd);
                } 
            } 
             
            switch (st) {
                //case BUTTON_BAR: 
                case BUTTON_PANEL:
                case TEXT_LABEL:
                case TEXT_DESCRIPTION:   
                case TEXT_EDIT:
                case TEXT_TITLE:
                case TEXT_SECTIONHEADER:
                    TextView tv = (TextView)view;
Stop searching for code, let great code find you!  Add Codota to your java IDE