SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
05/28/14 02:42 AM (10 years ago)

Android Layout Tips...

I've made no secret of the fact that I don't find android all that daunting; I just hate the layouts. Not much has changed, lol! but I found this document, and it pretty much sums up in a fairly logical way what has to be done to support multiple screen sizes in Android. Anyone who has designed on their device and tested on a different device knows the 'variance' of display from one device to another. This page outlines what can and should be done to make your app flexible to a larger audience, or confine your app to a specific target. Hope it helps. I've bookmarked it. http://www.learn-android-easily.com/2013/05/developing-for-different-screen-sizes.html Cheers! -- Smug
 
rburns50
buzztouch Evangelist
Profile
Posts: 168
Reg: May 12, 2014
Bilston - Engla...
9,130
like
05/28/14 04:38 AM (10 years ago)
Nice article thanks Smug.
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
05/28/14 06:18 AM (10 years ago)
Thank you! LA
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/28/14 06:27 AM (10 years ago)
BM'd. Maybe one day I'll get back into Android.
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
05/28/14 06:59 AM (10 years ago)
This article is amazing! Great find. You absolutely have to use all the drawable folders to avoid your app crashing on newer devices. I have been able to just drag the same image into the files to stop the up scaling....it seems like most Buzztouch plugins will "fit" the image anyway. But if you still have problems with crashing, then you should change the sizes of the images too. The layouts are important too, but I have only been using a phone layout and a tablet layout. I think it is ok, as long as you accept that the space on the screen may be filled in differently across devices. (Images with a transparent background are your friend!) But if that is not ok, then it isn't hard to make more layout files....just time consuming. In the Menu with a image and the new Menu Image Rows I included an extra folder called, layout-sw600dp. Drag that into your projects. If you don't, the app will still be ok, but your header image will be smaller.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
05/28/14 10:53 AM (10 years ago)
cool! thank yall!
 
Shorewalk
Lost but trying
Profile
Posts: 54
Reg: Nov 06, 2012
location unknow...
10,040
like
07/16/14 06:12 AM (10 years ago)
I keep this as a reference
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.