Spacing between two LinearLayouts - How to achieve it with XML?

by Romain Guy » Thu, 29 Jan 2009 01:11:11 GMT


Sponsored Links
 Hi,

You need to set android:layout_marginTop="10dip" on the second child,
not on the parent.

On Wed, Jan 28, 2009 at 2:18 AM, code_android_festival_way





-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. What to do about developers who publish games with the same name as what you have published...

I have an app that was published last fall.  Recently a developer
published an app with the exact same name as my app on the market.
His app is very similar to mine.  He also seems to be flooding the
market with the exact same game only under different names and
different publisher IDs.  Last count it was at about 20 or so various
versions, including one with the same name as mine.  Is there anything
I can do about this?

-- 

2. OutOfMemory with 9M free heap because of bitmaps!?

Our app has some memory peaks, which let the heap grow to 13M. After
the peak, there's 9M of free heap. Everything's fine until Bitmap
objects come into play. Despite having 9M of free heap creating
Bitmaps, which have only some 100k, now fail with a
OutOfMemoryException!

My theory: Allocation fails if (Java) heap *size* plus external
allocations (e.g. Bitmaps) exceed 16M, no matter that there is lots of
free memory in the heap. The VM could shrink the heap, but actually
does not. Would be quite a flaw in the VM.

Does anyone share this theory?

On the downside of this theory: I do not see anything appropriate
(killing the process is probably not) an app developer could do to
prevent those OutOfMemoryExceptions given that those memory peaks are
legitimate and unavoidable.

Please share your knowledge & thoughts!

Thanks,
Markus

-- 

3. getting java.lang.VerifyError

4. Android developers form

5. HTC: Don鈥檛 put the Nexus One in your hipster jeans

6. How to place a dialog at the bottom on the screen?

7. Market Weirdness?