create multi support screen with psd file - android

i want to use an imageview in my android application. but i don't know in which sizes i should design with photoshop to supporting multi screen sizes and densities?
also i put this codes in my manifest:
<supports-screens android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true" />
can anybody say me what px*px should i design my picture for imageview??
tnx alot

Related

Android how to choose different dimension problems

I am new android and i have a question. I am developing a app, and i see this problem. I create layout for Pixel 2 and other devices cant show as Pixel 2. When i research, i learning create layout every dimension.
I added this on AndroidManifest.xml
<supports-screens
android:resizeable="true"
android:smallScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:normalScreens="true"
android:anyDensity="true"/>
And created different layout; example login_activity.xml (normal) and login_activity.xml (large). But how choose device this screen, is it automatic or other way?
https://github.com/intuit/sdp use this for support layout in multiple screen size.

supports-screens is not working for the right screen sizes

i have included this code in AndroidManifest.xml
<supports-screens
android:resizeable="true"
android:smallScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:normalScreens="true"
android:anyDensity="true"/>
I have also created layout for normal, large, and xlarge layout. when i run the app on large screens. it ignores the large layout and runs the normal instead. Does anyone knows what am i doing wrong?
For xlarge screens it runs the xlarge as expected

Design your app for tablets

I need help designing an app for tablets.
My app was uploaded into Play Store contains everything related to tablet screen size, such as:
layout folder:
activity_main.xml
activity_main.xml(w600dp)
activity_main.xml(w720dp)
mipmap folder:
image.png(hdpi)
image.png(mdpi)
image.png(xxdpi)
Manifest.xml I also put
<supports-screens
android:anyDensity="true"
android:smallScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:largeScreens="true"
android:xlargeScreens="true" />
But the Optimization Tip still alerts me as follows:
Your APK should include custom drawables assets for common tablet screen densities.

How to enable layouts for multiple(different sizes of) screen in ANDROID?

I'm new to android
I want to run the android application in different screen sizes
Created
res/layout/layout.xml
/res/layout-small/layout.xml
/res/layout-large/layout.xml
/res/layout-xlarge/layout.xml
four types of layout in my application
After this what I want to do
Can any one say with example .Is there any other change want to make it in code
Thanks in advance
use following ,
for small screen
res/layout/layout.xml
/res/layout-land/layout.xml
for large screen like tablets you can use,,
/res/layout-large-hdpi/layout.xml
/res/layout-land-large-hdpi/layout.xml
these two representations are enough and it can fit to all devices
layout-land is for landscape mode for smaller devices and layout-land-large-hdpi for large devices,
and add these lines to your manifest.xml
<supports-screens android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true" />
Add This code in XML file before compiling the app
<supports-screens android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true" />

Android use custom resolution

I have problem with custom resolution in AVD.
When I have created new AVD with custom resolution, the content of my app doesnt stretch.
I also specify density but it doesnt work.
Please help me
Marcus
You can add support-screen in android Menifest file as follow.
<supports-screens android:largeScreens="true" android:resizeable="true"
android:normalScreens="true" android:smallScreens="true" android:anyDensity="true"
android:xlargeScreens="true"></supports-screens>

Categories

Resources