There is a TextView of a certain size and whenever text set to it is too long I\'d like to re-set it to some preset value.
TextView
To accomplish this I am overr
In your onMeasure(int,int)
onMeasure(int,int)
super(int,int)
getMeasuredWidth()
getMeasuredHeight
something like this:
void onMeasure(int a, int b){ super(a,b); if(getMeasuredWidth()>bla) setText("default"); }