私は ListView を使用しており、リストが空の場合は EmptyView を表示します。このビューがブール変数で表示されているかどうかを確認するにはどうすればよいですか?
ここに私のListViewのコード:
deviceList = (ListView) findViewById(R.id.DeviceList);
ListAdapter listenAdapter = new ArrayAdapter(this,
android.R.layout.simple_list_item_2, deviceArray);
//add a view which is shown if the ListView is empty
deviceList.setEmptyView( findViewById( R.id.empty_list_view ) );
deviceList.setAdapter(listenAdapter);