Is there any type of "spacer" type widget?

by Danny » Sat, 14 Jun 2008 03:45:10 GMT


Sponsored Links
 It would be nice to have some sort of spacer widget rather than having
to continuously play with marginBottom or padding attributes.  Just a
quick and dirty way of adding a gap to signify something between say,
two EditText's in vertical LinearLayout.

I guess I could make a custom view, but anyone else have a better idea
than that or padding/margin settings?

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



Is there any type of "spacer" type widget?

by Romain Guy » Sat, 14 Jun 2008 03:50:24 GMT


 You can just use a View and give it the appropriate layout
width/height. For instance:

<View layout_width="2dip" layout_height="wrap_content" />






-- 
Romain Guy
www.curious-creature.org

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


Sponsored Links


Is there any type of "spacer" type widget?

by Danny » Sat, 14 Jun 2008 04:08:39 GMT


 great idea, thought of using the parent class as a widget never
occurred to me.




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



Is there any type of "spacer" type widget?

by Romain Guy » Sat, 14 Jun 2008 04:13:21 GMT


 You can see a few uses of View in the ApiDemos, for instance to create
a horizontal ruler in the TableLayout demos.








-- 
Romain Guy
www.curious-creature.org

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



Other Threads

1. Connect laptop built-in gps receiver to emulator

Hello,

my Dell Latitude E6400 has a built-in gps receiver. How can I hook it
up with the emulator? I have enough problems spoofing gps data due to
exisiting Android bugs, so I might as well use real ones?

Thanks,

Lex
--~--~---------~--~----~------------~-------~--~----~

2. android-discuss - 25 new messages in 13 topics - digest
































































> 

3. how to handle HTTP/1.1 416 Requested Range Not Satisfiable

4. Resources.openRawResource issue

5. Hessian Binary protocol, Seam and Android

6. how to create a pop up window?

7. confused about trial version of applications for ADC 2