2

I have a situation similar to this

I use setDescendantFocusability(FOCUS_BLOCK_DESCENDANTS) and setOnItemClickListener, but they do not work.

Here's my source:

public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    setContentView(R.layout.database_table_list);

    LBD conection = new LBD(this);
    conection.open();
    setting = conection.tblSettings();
    setting.create();

    urlLists = setting.selectRssTable();
    urlListView = (ListView) findViewById(R.id.listView1);
    uAdapter = new UrlArrayAdapter(DatabaseTable.this, urlListView,
            urlLists);

    urlListView.setAdapter(uAdapter);
    urlListView.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);
    urlListView.setOnItemClickListener(new OnItemClickListener() {
        public void onItemClick(AdapterView<?> parent, View view,
                int position, long id) {
            ((BaseAdapter) uAdapter).notifyDataSetChanged();
        }
    });
}

enter image description here

All active ELEMENTS.

Helped me to this link

Community
  • 1
  • 1
Max Usanin
  • 2,479
  • 6
  • 40
  • 70

0 Answers0