Android - homescreen appwidget transparency - android

I have an application that publishes a homescreen widget. The widget has portions that are transparent. I have recently updated to API 10 and latest ADT (10), and now my Appwidget has lost it's transparency. Has anyone encountered this and have you found a fix?
My widget is a PNG-24 with transparency info, it is 100x100 pixels - might that be the issue? It has been working well previously. I am testing on Android 2.2 device (HTC Incredible) as well as on emulator 2.1.
Thanks!

Duh! I had the color changed in the layout wrapping the widget element from #0000 to #000000 which is obviously not transparent.

Related

Android view elements appear black (only on OnePlus 6 with Android Pie)

I'm working on an MVVM Android application. When I run the app on an OnePlus 6 with Android Pie all views appear in a sort of "dark theme". All the CardViews, Spinners and Dialogs through the app have a black background out of nowhere.
I made a new app with a CardView and let it run on the OnePlus6. That app was normal with a white CardView background.
I also tried to build the app on lots of different phones but only on the OnePlus 6 this sudden "dark theme" appears.
The OnePlus 6 uses the light theme, so that can not be the problem.
Does anyone know where this comes from? What code can I upload to make things extra clear?
one plus 6 has his own theme engine so you have first to installs themes to the mobile using for example : "substratum" then it will be better.
The problem is with the develop options on the phone. I tried to turn that off and on and for a while it worked in the normal way.
I don't know why it turns to black but it has to do with the Developer Options.

Android EditText tinting issues on API 22

I'm having a weird issue on Android 5.1 (API level 22) where if i use a controlColorNormal and controlColorActivated that reference a colour resource that is overridden in the land folder, when the device is rotated, the EditText background (the underline) is not tinted with the correct land colour, but with the base variant (or the other way around, if the app is started in land orientation).
This works fine on Android 5.0.x and lower, it's just misbehaving on 5.1.
Here is a PoC project with a more in-depth description and some screenshots: https://github.com/rock3r/EditTextTinting
Has anyone seen this happening, and possibly found a workaround for it?

Reduce margins around app widget in Android 4.0 and above

Since space is at a premium in an app widget, particularly when sized at 4x1 or 3x1, it's a bit frustrating that Android 4.0+ enforces a blank margin around the widget. See the Design Guidelines and Adding Margins.
How does one reduce the size of the automatic margin for 4.0 and above? I know that Android would frown upon it, but I know that it can be done because I have some widgets that don't have any margin around them, on my 4.1 device. Or is that because the app would have been built against a lower API (compileSdkVersion)? The compileSdkVersion for my app is 21.
Thanks for any insight on this issue.

android 4.4 transparent png background issue

I'm developing on Galaxy S3, Android 4.1.2.
Like any application, I'm using png images with transparent background, and also, there are a few images i go over and change every non-transparent pixel to a defferent color.
everything works just fine, but today I installed it on Nexus 5, android 4.4, and all the transparet background turned to black.
how can i make it transparent again?
Any help will be highly appreciated!
Thanks!

9-patch not working in ICS

I have a 9-patch file that works fine in Android v2.2 but when I run the app on the ICS emulator, it defaults to stretch scale. Check out these screen shots:
Anyone run into this problem before?
Not sure if this is helpful or not, but I saw a similar issue once with 2.3.3. I just did a clean in Eclipse and rebuilt the app. After that, the 9-patch drew the correct way.
ICS is a little pickier about 9-patches due to the new hardware-accelerated rendering pipeline. In particular, if the incompressible parts of the patch are larger than the region in which you're trying to draw it, weird things can happen.
Can you supply the .9.png you're using in this example?

Categories

Resources