Re: [blrdroid] Problem with different screen size

From: user 1.
Sent on: Friday, January 3, 2014 4:06 PM
I think it is not possible in single layout.if you have same functionality for all devices and tablets,you can include the different layouts for one root layout by checking the,in which device current application is running(like for devices one case and for 7 inch and 10 inch tablet another case).if you have different functionality for devices and tablet,single layout is not possible.


On Fri, Jan 3, 2014 at 3:56 PM, shivaprakash <[address removed]> wrote:
Yes, whatever you all are telling is right. But if I did like this project structure increase and size of file also increased. Because lots different screen oriented mobiles are in market. I am not able to create all layouts for all screen. Mine intention is that one layout should prefer for all screen device. Is it possible or not?


On Fri, Jan 3, 2014 at 3:39 PM, Aman Alam <[address removed]> wrote:
I agree with Ram's suggestion.

defining layouts as layout-large or layout-xlarge works!


On Fri, Jan 3, 2014 at 1:45 PM, santosh <[address removed]> wrote:
hi shivprakash and mohanKumar,

user different values folders like,

for 7'' tablet-- values-sw600dp
for 10'' tablet-- values- sw720dp

and don't hard code the dimensions in layout .





On Fri, Jan 3, 2014 at 1:25 PM, shivaprakash <[address removed]> wrote:
Sir did you asking me question or giving me solution. How can possible to use default drawable for all screen. 
The orientation changes for different screen.


On Fri, Jan 3, 2014 at 1:12 PM, Mohankumar M B <[address removed]> wrote:
But one Question

How to use the only one layout folder for all android devices.


On Fri, Jan 3, 2014 at 1:08 PM, Mohankumar M B <[address removed]> wrote:
You need to change the layout folderlike this

for 7'' tablet-> layout-sw600dp (Devices like samsung tab2, note-2)
for 10'' tablet-> layout-sw720dp (Devices like samsung tab1)
for 5'' tablet-> layout-sw360dp (Devices like samsung galaxy s4)
for 3.7'' tablet-> layout-normal (Devices like samsung galaxy s2, s3 and normal phones)

and for images

you can use only one drawable default folder with all screen size images (By default some times 1 or 2 images fix for all screens)



On Fri, Jan 3, 2014 at 12:52 PM, rambabu <[address removed]> wrote:
hi shivapraksah,

I think u need to change the layout folder names as like i mentioned below

for 7inch tablet--layout-large
for 10inch tablet--layout-xlarge
and also u can manage the drawable images for different resolutions like this way.
for 7inch tablet--drawable-large
for 10inch tablet--drawable-xlarge

thanks
Rambabu.P




On Fri, Jan 3, 2014 at 12:03 PM, shivaprakash <[address removed]> wrote:
Hi all

I am facing one problem of different screen resolution about developed app.
Actually, I develop one app for tablet, and I created different drawable for 
different screen, 
For example : for 7" inch screen device I created drawable-sw600dp,
                     for 10" i created drawable-sw720dpi.
                     for other screen size tablet refer drawable-mdpi.

          And same for layout also, I created layout for normal screen,
          I created layout-sw600dp for 7" inch tablet.
          I created layout-sw720dp for 10" inch tablet.

All the above is working fine when I test with different emulator.
But when I test same application on real device, it is not working as same
emulator. By default it recognize normal layout only, I tested with 7" and 10"
device, but it normally prefer layout, but it won't prefer layout-sw600dp and 
layout-720dp. 

Please, tell me what exact problem of this, why it happens.



--
Thanks & Regards
Shivaprakash
[masked]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by shivaprakash ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about shivaprakash, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]



--
R@MS




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by rambabu ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about rambabu, visit his/her member profile

To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]



--

Thanks and Regards,
Mohankumar M B.

Software Engineer. 
Appface Technologies Pvt Ltd
#1, Akhitaan, 3rd Floor,  ITPL Main Road, 
Bangalore-37
E-mail: [address removed]
India Mobile: [masked]


"Everything that can be Mobile will be"




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Mohankumar M B ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Mohankumar M B, visit his/her member profile

To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]



--

Thanks and Regards,
Mohankumar M B.

Software Engineer. 
Appface Technologies Pvt Ltd
#1, Akhitaan, 3rd Floor,  ITPL Main Road, 
Bangalore-37
E-mail: [address removed]
India Mobile: [masked]


"Everything that can be Mobile will be"




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Mohankumar M B ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Mohankumar M B, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]



--
Thanks & Regards
Shivaprakash
[masked]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by shivaprakash ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about shivaprakash, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]



--
Santosh Dandu.
cell:[masked]








--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by santosh ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about santosh, visit his/her member profile

To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]



--
Impossible is Nothing

Aman Alam
Co-Founder,
Happily Coded Mobile Solutions,
Bangalore, IN

sheikhaman.com
happilycoded.com
@amanalam
+AmanAlam
in.linkedin.com/in/amanalam

Not sent from an iPad / iPhone / BlackBerry
Just from a good old PC.




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Aman Alam ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Aman Alam, visit his/her member profile

To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]



--
Thanks & Regards
Shivaprakash
[masked]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by shivaprakash ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about shivaprakash, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]



--
R@MS

Our Sponsors

  • Though Works

    Location Sponsor

  • GTUG

    Sponsor

  • Apigee

    Location Sponsor

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy