I would like to programmatically set maxLength property of TextView as I don\'t want to hard code it in the layout. I can\'t see any set
maxLength
TextView
set
Easy way limit edit text character :
EditText ed=(EditText)findViewById(R.id.edittxt); ed.setFilters(new InputFilter[]{new InputFilter.LengthFilter(15)});