I can only anser the first question: here it goes....the linear layout
is quite flexible....Check it out...
<LinearLayout
android:orientation="vertical">
<LinearLayout
android:orientation="horizontal">
<Button/Spinner/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal">
<Textbox>
<Button>
</LinearLayout>
</LinearLayout>
I have ommited the other mandatory parameters for the Layout tags,
This is how you do it...
Dexter.
TVP wrote:
> Hi all,
> I have the following questions. Your urgent replies and help will be
> most valuable as time is running out and I haven't done much yet.
>
> 1. How to add linear layouts (sub layouts to the main layout) one by
> one? Suppose I have a button or spinner in one row and want to add a
> text box and a button as a separate row below that, how do I do that?
> A code snippet could be helpful please..
>
> 2. I am using the CheckBoxified Text tutorial posted in "Novice
> Tutorials' for a User preferences page. In mc5, I am not seeing the
> first option in the choices by default, and only when I move mouse
> over, I can see the first choice. This is true with the sourcecode as
> it is in the tutorial or for my own CheckBoxifiedtext. Can someone
> tell why this is so?
>
> 3. The other most glaring problem with the CheckBoxified text is that
> I am always getting the values of getChecked() function as false. I
> have a Save and Cancel button in my page where I set the values of
> CheckBoxified items to boolean variables upon Save. The variables are
> false even when I check a few checkboxes. What could be the problem?
> Was this getChecked() really tested in the tutorial sourcecode? I am
> asking this because that demo only demonstrated clicking and
> unclicking checkboxes, not saving your options?
>
> 4. Can't HttpURLConnection be used within Android? Should we use only
> the android.net package and the RequestQueue class? The RequestQueue
> class is not fetching full data for me, while the
> HttpURLConnection .getInputStream() is throwing
> IllegalArgumentException (I have checked connection is not null). Why
> the latter problem is happening? Are there any alternatives for
> accessing Network and retrieving data?
>
> 5. Why is the "CREATE TABLE IF NOT EXISTS" failing at the NOT keyword
> in mc5 only (not in mc3)? Which SQLite version is used in mc5? Can
> someone give an example on how to use the new query method (how to map
> query elements to the query method arguments)? It was returning an
> empty cursor even when a previous run of the application verified that
> insert into same table was successful.
>
> Thanks and regards,
> TVP
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---