Some drawables not showing in design window in android studio.
but it shows up normally when I build app in my phone ;/
Related
How do I get the app name and icons out of the android studio emulator? I have a really small screen and the emulator should show nothing but the screen. Now it doesn't show the actual screen at all.
emulator screen
I'm new to android studio and trying to create a simple app with multiple tabs that displays different graphs. I've managed to plot my graphs in the app fine but for some reason the graph keeps going out of the screen. I'm pretty sure the screen i have is 5.46" and i have that in my android studio settings (im also using the constraint widget to try and keep everything in place) but it still goes out of border. I'm thinking its possible this issue is happening because i have my orientation set to landscape in the 'orientation preview' button. If the issue is with the landscape then how do i convert my app to landscape?
screenshot of my android studio:
And this is what it displays on my device:
By the way, the device I'm using is not an andriod phone or tablet, its a screen with andriod installed on it.
I've added a custom launcher (adaptive and legacy) icon by building it in Image Asset Studio, but cannot figure out how to change the "running apps" view icon. New projects have the green icon, while the app I created a custom launcher now has a blue icon (which is not the custom icon I built) in the running apps view. How is this icon changed?
This appears to be an emulator problem. I tested on a physical device and the blue icon was replaced with my custom icon. For those in the future that have built an icon with Image Asset Studio and are running into this problem, either test again on a physical device or create a new AVD.
Once I changed an icon of my app by right clicking on res folder and going to New>Image asset, app started to crash on my Android 6.0 device. Then I watched a video that says that the 1st option "Launcher icon (Adaptive and Legacy)" is for Android 8.0 and I didn't understand what he said. And he said that "Launcher icon (Legacy only)" is for Android 7.1.1 and below. So, then I thought that the problem was that I used "Launcher icon (Adaptive and Legacy)" and my device is Android 6.0. Fortunately, I had backed up "mipmap" folders of default icon. But once I changed to default icon, my app is still crashing. Where a problem could be?
So I've searched for an answer but found nothing. Basically, whenever I run a simple little menu app for android tablets using the eclipse android emulator 3.0, only about 1/6th of the app is shown (the top center piece, if the tablet is held landscape.) I've done tutorials using the 2.2 emulator and they work just fine, but whenever I launch the 3.0, the app (and only the app - the android home runs fine) just doesn't appear. When I look at it in the main.xml layout folder, the graphical layout shows it exactly the way I want it to appear.
Is this a problem with the emulator? This can't be a common problem, otherwise I'm sure I would have found a solution by now, but there must be some switch or something that I'm not seeing that's making the app appear as if it were running on a phone and not a tablet.
Do you have a low resolution set for your 3.0 AVD? If you run the AVD Manager, what resolution does it show?