我試圖隱藏或顯示在我的app.Here從微調選擇項目編輯文本是代碼請建議如何解決它隱藏和取消隱藏的EditText
ArrayAdapter adapter1 = ArrayAdapter.createFromResource(
this, R.array.country_array, android.R.layout.simple_spinner_item);
adapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner1.setAdapter(adapter1);
spinner1.setOnItemSelectedListener(new OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) {
rlDate.setVisibility(View.VISIBLE);
rlTime.setVisibility(View.VISIBLE);
}
@Override
public void onNothingSelected(AdapterView<?> parentView) {
}
});
你到底想要做什麼??以上輸出的代碼是什麼? – AndiM