Rounded corners on dynamicly set ImageView in widget?
问题 I have a widget with a config activity, where the user can select a color for the background of the widget from a color picker. I am using the method below where I have an ImageView and create a Bitmap which I dynamically set on the ImageView. http://konsentia.com/2011/03/dynamically-changing-the-background-color-in-android-widgets/ public static Bitmap getBackground (int bgcolor) { try { Bitmap.Config config = Bitmap.Config.ARGB_8888; // Bitmap.Config.ARGB_8888 Bitmap.Config.ARGB_4444 to be