Organizational Research By

Surprising Reserch Topic

android scale a drawable or background image


android scale a drawable or background image  using -'android'

On a layout I want to scale the background image (keeping its aspect ratio) to the space allocated when the page gets created. Anyone have any idea how to do this?

I am using layout.setBackgroundDrawable() and am using a BitmapDrawable to setGravity for clipping and filling, but don't see any option for scaling.
    

asked Sep 15, 2015 by SonPainter
0 votes
40 views



Related Hot Questions

10 Answers

0 votes
NULL
answered Sep 15, 2015 by TosHammond
0 votes
NULL
answered Sep 15, 2015 by TaniaWieckez
0 votes
NULL
answered Sep 15, 2015 by RosP55
0 votes
NULL
answered Sep 15, 2015 by ReedHobartjr
0 votes
NULL
answered Sep 15, 2015 by PoppyWenznxy
0 votes
NULL
answered Sep 15, 2015 by ITHLet
0 votes
NULL
answered Sep 15, 2015 by MarcoOddiek
0 votes
NULL
answered Sep 15, 2015 by Monty37Cuvjv
0 votes
NULL
answered Sep 15, 2015 by KatImz
0 votes
NULL
answered Sep 15, 2015 by WilBracker

...