>
> Could someone show me how a layout like this might be declared:
> |[ EditText Filling Available Space][Button]|
>

I haven't tested this, but I believe this would do the trick... You could
also use a RelativeLayout

<LinearLayout
     android:id="@+id/some_id"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:orientation="horizontal">

     <EditText
          android:id="@+id/some_other_id"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_weight="1" />

     <Button
          android:id="@+id/some_other_other_id"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"/>
</LinearLayout>

Also, if possible could someone please refer me to a good instructional
> resource or tool (something other than the official eclipse UI designer
> which I find very awkward) for creating layouts?
>

Personally I avoid any sort of Layout designer... in my opinion none of
them are very good.  I prefer to just learn the XML.  To do that I just
look up the documentation for each layout/view I want to use and I just
write the XML directly.  It may take a little more time at first, but after
you get used to the different attributes for each xml element, it goes very
quick... I did the above in about a minute.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Aug 7, 2012 at 8:13 AM, Anthony Walter <[email protected]> wrote:

> Hello, I am coming to Android development with many years of Windows UI
> developer experience and am having problems getting my head around laying
> out UI elements.
>
> Could someone show me how a layout like this might be declared:
>
> |[ EditText Filling Available Space][Button]|
>
> Where a Button is on the right with the width set to fill its content, and
> an EditText to the left of it filling the rest of the available area.
>
> Also, if possible could someone please refer me to a good instructional
> resource or tool (something other than the official eclipse UI designer
> which I find very awkward) for creating layouts?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to