English 中文(简体)
多种屏幕尺寸/密度的灵活和roid布
原标题:Flexible android layout for multiple screen sizes/densities
最佳回答
问题回答

firstly, I m sorry my English is not good enough. You should divide your resources into some folders (based on screen size), for example, make different layouts from different resources. You can do like below:

1.drawable

-drawable-hdpi

-drawable-mdpi

-drawable-ldpi

2. 支出

--layout-hdpi

--layout-mdpi

--layout-ldpi

每一屏幕尺寸的专用资源,使你的申请适用于许多装置。





相关问题
Very basic WPF layout question

How do I get this listbox to be maxiumum size, i.e. fill the group box its in. I ve tried width="auto" Height="auto", width="stretch" Height="stretch" annoyingly at the moment, it dynamicly sizes to ...

How to align the text to top of TextView?

How to align the text to top of a TextView? Equivalent Android API for Swings setInsets()? that is top of text should start be in (0,0) of TextView <?xml version="1.0" encoding="utf-8"?> <...

Centring a flow in Shoes

Can I center the contents of a flow in Shoes? I know that a paragraph can be centred like: para Centred paragrpah , :align=> center However, this does not work with flows: flow(:align=> ...

Overlaying with CSS

I want to load a website in an iframe, and overlay the website with some hints about the website that is shown. However, i got stuck at the point that the website has a variable passive white space at ...

How do you normally make a program look beautiful? [closed]

How can I make an Application look nice and not like an amateur pulled it together? I mean graphic-wise. Is there some sort of book you can read regarding beautiful program layouts, etc? I put this ...

热门标签