Android Studio - Layout Editor All Blured - android

I tired both "is.hidpi=false" and "hidpi=false". The first one doesn't fix it. The second one does, but it makes all other icons in Android Studio way too small for my display(23.8 inch 1440p monitor), so I can't really work well in any scenario. Do you have any suggestions?

Related

My android app looks different on the phone than android studio

My android app looks different on the phone than android studio
look at screenshot
app in the phone screenshot
App in the Android studio screenshot
why is that? and how can I fix that?
Your preview shows what your layout would look like on a Pixel 3, which is quite a large phone. From what I saw on your screenshot looks like your device isn't quite as large so I'd recommend you to use ConstraintLayout for 2 reasons:
Consistency across different screen sizes - it's much more likely your layout will look the same on a large screen and a small one
Better performance, especially for your case since you'll be able to do everything with a single layout, without having to nest several layouts
For more information on ConstraintLayout, please check out this post I wrote on Medium

While running the application on android device, controls do not display properly as designed in android studio

I have been facing this issue while creating any android program/app using android studio. Whatever I design in android studio, it is not displaying properly as designed in android studio while running the app on my phone.
In short, sometimes size and the places of the controls get changed while running the app on my android phone. Please help. Thank you.
That's probably because of the difference in screen sizes of your preview and your physical phone . I've recently started using constraint layout and I think it's the best so far, a bit confusing at first but easy to understand it, it even has an option for percentage of width/height of the total screen for a view. Try that out.

Text Size in Android Studio and Actual Device

I am using the visual editor in Android Studio. In there, the text is really big, like how I want it to be. But when I build it on a physical device it is default size.
Thanks in advance!
simply create many layout that support pixels make all your layout handle your show way
read this to understand the idea
https://developer.android.com/training/multiscreen/screensizes
and do this in your code then check the devices
https://stackoverflow.com/a/8256573/6998825
there's also something else you may have not noticed yet
in android studio Preview Layout you can choose your the preview device as your actual device or same as it.
this way the preview design will be same as your device. but for other devices you should have above answers in mind.

Android Studio - ImagesViews go wild on diferent screens

I everybody i'm learning how to use android studio for the first time and i'm having problems with my images.
I used android studio design interface to position my imageviews on their correct positions and i also used it to resize them. The problem is that when i run it on emulator, even though i'm using the same "canvas" on the android studio design interface as the screen on the emulator, the images appear in different positions. And if i try different emulators with different screen sizes they can go even more wild and change their positions intarelly.
I made some research and most of the people say that android studio needs different images and create different drawable folders for each screen type.
I've done that and it almost fixed my problem but some of the images still change their position a bit. I suspect that my problem is that i resize the images with android design tool, but i'm not sure.
Can someone theorize why this is happening? (if it is about using the design interface to change the images width and height that is creating my problem)
What is the best way (practices, methods, tools,...) to put images without them changing their positions in different screens?
Shall i change the images sizes on photoshops for example instead of on android studio?
P.S: I know it's too much to read but i would appreciate any help.

Ugly Widgets - Android

I'm new to Android programming, and i'm building a small test program.
My problem is that in the graphical layout of the .xml files the widgets(Spinners,Buttons...) looks nice and round, but when I put my program into my phone(Nexus S, if that matters) or in the emolator, they come out with rounded edges,making the whole program look really ugly.
Is theres something i'm doing wrong?
Thanks!
The problem is that you have set the build target to 2.2 or earlier and Nexus S is running 2.3, which has redesigned UI elements. If you set build target to 2.3 it sould show the same (not rounded) buttons and other elements in the Eclipse XML viewer as they are in the Nexus S.
I believe the Nexus S doesn't use the default android theme. Many of the standard UI items (radio buttons, buttons, check boxes etc) will have a different look than the UI builder will show.
Edit: wait...its showing up different in the emulator too?? my answer may not apply in that case, sorry :-\
So the unrounded buttons are the new ones? Isn't that stupid? The are uglier.
And I set the build target to 1.6, and both the emulator and the nexus s are running 2.3,so that explains it.
Does anyone has a guide that explains how to change the UI items to nicer ones?

Categories

Resources