У меня есть создать диалоговое окно предупреждения, используя следующий код и вставить элементы списка внутри негосписок делают предметы невидимыми в Алерт Dialog
теперь я хочу, чтобы сделать этот элемент невидимым или удалить в диалоге, является то, что способ сделать это
AlertDialog.Builder builder = new AlertDialog.Builder(this);
LayoutInflater factory = LayoutInflater.from(this);
final View directionEntryView = factory.inflate(R.layout.contact_dialog, null);
title.setText(contactStore.getContactName());
builder.setTitle(contactStore.getContactName());
/** Once I fill the item list , i want to make it invisible **/
builder.setItems(R.array.select_dialog_items, null);
элемент списка выглядит следующим образом
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="select_dialog_items" >
<item>Command one</item>
<item>Command two</item>
<item>Command three</item>
<item>Command four</item>
</string-array>
</resources>
Вы хотите скрыть * один элемент? – dacwe
Нет, весь список, но я могу просто поместить только один элемент в массив, так что в конце концов он будет таким же, как сокрытие всего списка. Я думаю, – Hunt