design tab will become empty after running the emulator - android

After running the emulator, for some reason the contents of the design tab disappear except the wrench icon at the top. It seems that only exiting and restarting again will work but is there anything else that can be done?

Related

Android Studio Action Bar wont leave

A white bar covering some of the commands in android studio will not disappear, The only way to make it go away is turn off the application it self, but when I turn it back on it comes back, How do I get rid of the bar while still in studio?
For me, these kind of issues are normally (Any ghost dialog) solved by rebooting my computer..

How can I prevent the generic app icon from showing?

I use a Nexus 6P (Oreo) and a Pixel 2 (Pie). I've seen this behavior on both. I've even seen it once briefly for Google Maps.
Sometimes, instead of the actual app icon, I'll see the generic Android head on a green background. It happens in the app drawer, on the home screen, or in app switcher. It's random, rare and hard to reproduce, and it happens briefly. I might be scrolling through the app drawer, suddenly realize my app's icon was wrong, scroll back to look at it--and it looks right. But every other time I scroll through the app drawer the icon is fine.
I can't see anything wrong we're doing with our app icon, and it happens rarely. But today I saw it happen (briefly) for Google Maps, which makes me wonder if it's a Google bug.
Any more insight on this issue? Or if it is something I can control, what can I do to prevent it from happening?
Edit: managed to get a screenshot of it in action. In this case it's from the app switcher (ignore the colored background around the green icon). As I noted though, it can happen on the home screen or in the app drawer, and it's not always limited to my app. In this case, the next time I used the app switcher, the normal app icon appeared, so it's quite random.
Remove all-dpi xml file from res > mipmap > ic_launcher and res > mipmap > ic_launcher_round or create custom xml for your app icon. (I would just suggest removing it.)
Here's how you can make your own adaptive icon.

Struck on White Screen in emulator in Android Studio

When I start the Android emulator only white blank screen is coming After that nothing is happening, Because of that, I changed the graphics settings to Software -GLES 2.0, Now the emulator is launching but it's very very slow, Taking more time to navigate from one screen to another.Please help me to resolve this
Blank Screen Image
To solve the issue you have to go to the sidebar menu click More>Settings>OpenGL ES Renderer and(in my case) set it to Angle(D3D11) or Angle(D3D9) or Swiftshader. After that you have to restart the emulator.
Now Issue will be fixed!

Android Studio emulator gets stuck minimised in task bar

I am using Android Studio on Ubuntu 16.04. The AVD emulator starts fine, and I can install apks on it. However, if I change to a different workspace, minimise the emulator, or even click on another window, backrounding the emulator, it appears to minimise(only visible in the task bar), and from then on, it will not maximise again. Clicking on it in the bottom task bar makes it appear for a split second before minimising again. I haven't had this problem with any other window. Anyone know how to fix it?
So far I have tried:
Setting the emulator window to always stay on top
answer to install various libs that have helped people with similar AVD problems
Starting the emulator from the command line
For Windows use:
If a window won’t maximize, press Shift+Ctrl and then right-click its icon on the taskbar and select Restore or Maximize, instead of double-clicking on the icon.
I have found a workaround. By clicking into the window menu from the very top left of the emulator window, I set the emulator to both 'always be on bottom' AND always appear in all workspaces. This way, switching workspaces doesn't have any effect on the emulator, and keeping it to the bottom layer means I can open other programs in other workspaces and not have the emulator in the way. I just can't ever minimise it. It's not ideal, but at least I can do my work!
In the bottom left corner of Android studio, there is a squared icon that allows you to see all Panles. it includes also Emulator. By selecting it, I was able to have my Emulator back on screen (view mode: float).

Weird ActionBarSherlock behavior when starting an Action Mode on Gingerbread

I'm using ActionBarSherlock in my android app, the theme is set to Sherlock.Light.DarkActionBar, when I run the app on ICS devices , everything looks ok,
but when I test it on Gingerbread (both emu and on multiple devices) the action bar looks weird, sometimes when it loses focus it becomes white.
I'm not using custom styles, so I can't quite understand what may be causing this.
Update:
I have noticed that this is actually happening each time I'm entering and exiting an Action Mode programmatically (StartActionMode).
I was able to resolve this problem, it occurred because I started and stopped the action mode very fast.

Categories

Resources