I have a keyboard activity that slides in from the bottom of the screen. I would like the activity that is displayed behind/above the keyboard window to receive touch events even when the keyboard activity view is visible (basically I don't want the keyboard activity to eat touch events if the events don't occur within the floating keyboard activity window's boundaries). Please help me figure out how to accomplish this.
The keyboard activity's content view is set to: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="bottom" android:layoutAnimation="@anim/layout_anim_slide_up"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/keyboard1" /> </LinearLayout> The only way I could get the window to stay anchored to the bottom of the screen without setting the linear layout's height to "fill_parent" was to add the keyboard view like this (see below) instead of using setContentView(R.layout.keyboard1): View keyboardView = getViewInflate().inflate(R.layout.keyboard1, null, null); WindowManager.LayoutParams wlp = getWindow().getAttributes(); wlp.gravity = Gravity.BOTTOM; getWindow().addContentView(keyboardView, wlp); The following theme is applied to the keyboard activity (because I am using the translucent background, I can tell for sure that the window is not covering the entire screen because behind the small keyboard activity window, I can still clearly see the activity that was in the foreground before the keyboard was launched. <resources> <!-- Base application theme is the default theme. --> <style name="Theme" parent="android:Theme"> </style> <!-- Base application theme is the dark theme. --> <style name="Theme.Keyboard"> <item name="android:textSize">18sp</item> <item name="android:textColor">#fff</item> <item name="android:textStyle">normal</item> <item name="android:windowBackground">@drawable/ translucent_background</item> <item name="android:windowNoTitle">true</item> <item name="android:windowIsFloating">true</item> <item name="android:gravity">bottom</item> </style> </resources> Thanks!! Cheryl --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

