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. android.os.Parcel.readException(Parcel.java:1224)

Hi
    I am having remote service and a client in my app and there are
two aidl(Request.aidl & Response.aidl) to client - service
communication.
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):
java.lang.NullPointerException
01-12 17:31:59.412: ERROR/AndroidRuntime(717):     at
android.os.Parcel.readException(Parcel.java:1224)
01-12 17:31:59.412: ERROR/AndroidRuntime(717):     at
android.os.Parcel.readException(Parcel.java:1206)
01-12 17:31:59.412: ERROR/AndroidRuntime(717):     at
com.android.service.Request$Stub$Proxy.request(Request.java:490)

Thanks
Raghu

-- 

2. Changing Window's PixelFormat and annoying blink.

Hi,
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?

Regards,
Krystian

-- 

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;