Select a tableRow within a TableLayout Dynamically

后端 未结 4 1625
轻奢々
轻奢々 2021-01-15 23:57

I\'m creating a Tablelayout with many TableRows dynamically, for example:

for(int i = 0; i

        
4条回答
  •  悲哀的现实
    2021-01-16 00:49

    Set on click listener on table row.

        tr.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                //TODO:
            }
        });
    

提交回复
热议问题