linisme / SlimAdapter

A slim & clean & typeable Adapter without# VIEWHOLDER
https://raw.githubusercontent.com/MEiDIK/SlimAdapter/master/SlimAdapter.jpg
MIT License
931 stars 117 forks source link

How to get value of TextView ? #38

Closed herou closed 6 years ago

herou commented 6 years ago

Hello.

I was wondering to get the value of textview once clicked , for ex : textview.getText().toString() ?

herou commented 6 years ago

//I found the solution :) .clicked(R.id.textView_add, new View.OnClickListener() { @Override public void onClick(View v) { TextView txt = (TextView) v; Toast.makeText(getApplicationContext(),""+txt.getText().toString(),Toast.LENGTH_LONG).show(); } });