Hello, I'm having a problem with floating windows. My activity has an AutoCompleteTextView text in a floating window positioned at the top of the display. If enough text is entered to make the drop down appear it will be initially clipped to the bottom edge of the window. If you click on the drop down it appears unclipped.
I've stripped my activity down to a test program and put a copy here: http://www.invisibility.org.uk/adaptertest.tgz In summary, the main activity just inflates a view and positions it at the top of the display: public class AdapterTest extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().setGravity(Gravity.TOP| Gravity.FILL_HORIZONTAL); getWindow().setLayout(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT); LayoutInflater inflater = getLayoutInflater(); View v = inflater.inflate(R.layout.main, null); setContentView(v); ArrayAdapter<String> adapter = new ArrayAdapter<String> ( this, android.R.layout.simple_dropdown_item_1line, new String[] { "aaa0", "aaa1", "aaa2", "aaa3" } ); AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.textView); textView.setAdapter(adapter); } } The activity is set to use the following style in the manifest: <?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.Floating" parent="@android:style/Theme"> <item name="android:windowIsFloating">true</item> <item name="android:windowBackground">@android:color/black</item> </style> </resources> Just in case they layout is as follows: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingLeft="10dip" android:paddingRight="10dip" android:paddingTop="10dip" android:paddingBottom="10dip" > <AutoCompleteTextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/textView" /> </LinearLayout> Any ideas? Christopher Fraser www.invisibility.org.uk -- 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

