java - Different size for the cells -


i making application fine until worked on 5 -inch screen. when wanted check how application looks @ screen 3 inch. terribly enlarged. wish same on both screens. can system automatically detect size of device , have perform ? please help.

you layout folder should this.

res/layout/my_layout.xml             // layout normal screen size ("default") res/layout-small/my_layout.xml       // layout small screen size res/layout-large/my_layout.xml       // layout large screen size res/layout-xlarge/my_layout.xml      // layout large screen size res/layout-xlarge-land/my_layout.xml // layout large in landscape orientation 

in manifest add support-screens

<supports-screens android:resizeable=["true"| "false"]               android:smallscreens=["true" | "false"]               android:normalscreens=["true" | "false"]               android:largescreens=["true" | "false"]               android:xlargescreens=["true" | "false"]               android:anydensity=["true" | "false"]               android:requiressmallestwidthdp="integer"               android:compatiblewidthlimitdp="integer"               android:largestwidthlimitdp="integer"/> 

for more info check link


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -