method:isPopupShowing ( )
return type:boolean
content:ใช้ตรวจสอบว่า popup กำลังแสดงอยู่ ใช่หรือไม่
example:public class AndroidBamboo extends Activity
{
public void onCreate( Bundle savedInstanceState )
{
super.onCreate ( savedInstanceState );
AutoCompleteTextView text_auto_complete = new AutoCompleteTextView ( this );
ArrayAdapter array_adapter = new ArrayAdapter <String> ( this, android.R.layout.simple_dropdown_item_1line );
String [ ] items = { "bam", "boo", "lab", "code", "programming", "framework", "android" };
array_adapter.add ( items );
text_auto_complete.setAdapter ( array_adapter );
if ( text_auto_complete.isPopupShowing ( ) )
{
Toast.makeText ( this, "PopUp Showing", Toast.LENGTH_SHORT ).show ( );
}
setContentView( text_auto_complete );
}
}