Is it possible to change a drawable on a button via java? Example; I have a button like this. <Button
I have some images in my drawable folder and they have landscape versions in drawable-land. However I want some of the landscape images to be shared, as it seems a waste to duplicate the file with a d
Is there a way to replace the scrollbar drawable in an application (i.e. I have a customized scrollbar view that I would like to use instead of the default gray scrollbar that comes with the Android f
I have tried to create a simple application that draws a png graphic where the screen is touched. The problem that I have is that only every other instance of the graphic I add is actually rendered. E
What is a more efficient methods for drawing circles on 开发者_开发问答a canvas. I can do it two ways:
I want to use a number of ShapeDrawables in my application, which are all similar, but with different colours etc. Obviously I could just define them all in separate xml files, but is there a more eff
I created a custom OverlayItem class so that I could essentially have one kind of OverlayItem whose Drawable marker would set itself depending on the state of some data that I pass into it.
I am presently using the following piece of code to load in images as drawable objects form a URL. Drawable drawable_from_url(String url, String src_name)
I am writing an Android app that includes an ImageView.The image to be included in the view resides on the local app directory of the emulator.The image is not being displayed in the view.The relavent
Where should I start an AnimationDrawable that needs to animate when the activity is shown? The developer guide recommends using onWindowFocusChanged, but this isn\'t always called when the activity