check relative layout. it has below and above parameters.for example

<RelativeLayout xmlns:android=*"http://schemas.android.com/apk/res/android"*

> 

<RelativeLayout

android:id=*"@+id/top"*
**

<LinearLayout

android:id=*"@+id/bottom"* 

>
</LinearLayout> 

<ListView

android:id=*"@+id/listview"*
android:background=*"#ffffff"** *

android:divider=*"#000000"*

android:layout_width=*"match_parent"** *

android:layout_height=*"wrap_content"*
* *

 android:layout_above=*"@id/bottom"*
* *

 android:layout_below=*"@id/top"* >

</ListView>

<RelativeLayout>

26 Kasım 2012 Pazartesi 15:03:32 UTC+2 tarihinde dashman yazdı:

> I've got a ListView that takes up the full screen.
>
> Under certain conditions, I'd like to display a message
> that sits on top of the ListView - i.e. a translucent message box.
>
> I've got:
>
>     Handler mHandler = new Handler();
>
>         mDialogText = (TextView) inflate.inflate(R.layout.center_message, 
> null );
>         mDialogText.setVisibility(View.INVISIBLE);
>
>
>         mHandler.post(new Runnable() {
>
>             public void run() {
>                 mReady = true;
>                 WindowManager.LayoutParams lp = new 
> WindowManager.LayoutParams(
>                         LayoutParams.WRAP_CONTENT, 
> LayoutParams.WRAP_CONTENT,
>                         WindowManager.LayoutParams.TYPE_APPLICATION,
>                         WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
>                                 | 
> WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
>                         PixelFormat.TRANSLUCENT);
>                 mWindowManager.addView(mDialogText, lp);
>             }});
>
> It displays the message fine above the listview - but it displays above a 
> open app menu
> also.
>
> what can i do to display it above the ListView but below the app menu 
> layers.
>
>
>

-- 
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