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. How to unsign and resign the apk file?

Hi,

 I'm using the simple test app - HelloActivity.

 I tried the following steps to unsign:
1. renamed the HelloTest.apk to HelloTest.zip and unzipped the
contents to HelloTest.
2. Deleted files CERT.RSA, CERT.SF under META-INF
3. Deleted everything from the file MANIFEST.MF except the following
lines:
              Manifest-Version: 1.0
             Created-By: 1.0 (Android)


Then I opened AndroidManifest.xml with Hex editor and changed the
activity name from ".HelloTest" to "com.mytests.android.HelloTest"

Zipped everything back to HelloTest.apk and resigned with
jarsigner -verbose -keystore my.keystore FirstTest.apk alias_name

When I try to install this, I'm getting error:  Failure
[INSTALL_FAILED_INVALID_APK].

Do I need to remove any additional content from AndroidManifest.xml
after editing the file?
Or it's not allowed to change the manifest file inside the apk?

Thanks,
sumd

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

2. Porting to Samsung's ARMs

Hello,

Is there any solution to run android on Samsung's ARM S3C6* family
(namely -- S3C6410)? Googling gave me a few references to
kandroid.org, which is a Korean site, I cannot read that. Thank you.

Kirill
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Implementing inherited abstract methods

4. What is the purpose of android zygote process?

5. Market $$

6. How do i do a startActivity() in BroadcastReceiver ?

7. Null pointer exception while using setOnClickListene