On Sun, Jan 23, 2011 at 3:43 PM, Karsten Silz <[email protected]>wrote:
> So is this how you would handle the different dpi at similar resolution? > It is, but you'd most likely have two different layouts, one in the default layout folder, and one in the layout/tablet subfolder (I don't know what this folder is really called). The runtime knows these files are equivalent because they both have the same name, The only thing you have to be careful about, is that the IDs of things you want to interact with in your code (e.g. to attach a listener to a button or data to a list) must refer to widgets of the same class in both layouts. There might be a philosophical difference here, too. I think button sizes and other things tend to be given relative sizes: 50%, "fill the remaining space", etc. I'm not saying that solves every problem (who wants a button that takes up half the screen on a 10" tablet?), but that the mindset is different. Moandji -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
