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

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) 
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!


Sponsored Links

Other Threads

1. android.os.Parcel.readException(

    I am having remote service and a client in my app and there are
two aidl(Request.aidl & Response.aidl) to client - service
In one of class i am calling a service mathod(Request.aidl ) through
binder and service is giving callback for client
request( Response.aidl) and in callback i am again calling the another
service mathod through binder that is causing following error.

01-12 17:31:59.412: ERROR/AndroidRuntime(717):
01-12 17:31:59.412: ERROR/AndroidRuntime(717):     at
01-12 17:31:59.412: ERROR/AndroidRuntime(717):     at
01-12 17:31:59.412: ERROR/AndroidRuntime(717):     at$Stub$Proxy.request(



2. Changing Window's PixelFormat and annoying blink.

I have an Activity with theme defined as Theme.Wallpaper.NoTitleBar,
because I want to show wallpaper behind the main View. But this
Activity has second View - shown as a result of interaction. And while
shown i'd like to set Window format to OPAQUE, then when hidden -
change it back to TRANSLUCENT. With OPAQUE this second View is drawn
much faster - it's exactly what I need.

The problem is that when PixelFormat is changed by
getWindow().setFormat(...) Window "blinks" and wallpaper is visible
for a moment.

Do you know how to avoid blinking?



3. Monkey Questions

4. Format or example required for writing script for monkey tool

5. Simple Key Event Questions

6. Recommendation for an Application with tons of media files

7. How to import android.content.IntentReceiver;