Yet another layout question.

by frizzo » Sat, 14 Mar 2009 15:13:46 GMT


Sponsored Links
 I have a screen, where most of the information is layed out in a table
manner, thus I use a TableLayout.  However, I want to have button,
that aligns to the bottom of the screen.  I've tried using
android:layout_alignParentBottom="true", but that is ignored in
TableLayout.

What options do I have?
--~--~---------~--~----~------------~-------~--~----~



Yet another layout question.

by Mark Murphy » Sat, 14 Mar 2009 20:17:47 GMT


 


Here's one: wrap the TableLayout in a RelativeLayout. Put the Button in
the RelativeLayout with android:layout_alignParentBottom="true".

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

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


Sponsored Links


Other Threads

1. how do you quit an app...

i have an app with multiple activities and a local service.

if I finish() all the activites and stop the service, the process
still exists (if I go into adb shell and type ps, I still see it).

is there a way to make sure the process is killed when I "quit"?

tia.
--~--~---------~--~----~------------~-------~--~----~

2. BaseAdapter.getView()鈥檚 conve rtView parameter

BaseAdapter.getView() convertView parameter

Does anyone understand how this parameter works or is intended to
work? By watching it in the de{*filter*} it seems to be the view that was
previously returned from getView().

- Are we supposed to be able to reuse the previous view as some sort
of optimization rather than perhaps inflating a new view from XML?

I have been able to reuse the view for a TextView but for nothing more
complex, like a multi-component view.

- If it is a view to reuse does this mean one could instantiate a view
outside of getView() and just keep using it over and over again
returning it from getView()? I have tried this but it does not see to
work. It messes up the layout of the ListView.

Anyway, if anyone understands more about how BaseAdapter.getView()
convertView parameter is supposed to be used, I sure like to know.

Thank you!

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

3. Quick Search Box (QSB) functionality

4. Writing my ListAdapter for ListView

5. Is there any release plan to provide following feature

6. Starting an Activity (with the dialog theme) from the onCreate() of another Activity results in a black screen.

7. SecurityException for Browser activity in TabWidget