不用写findViewById的偷懒方法

今天学习如何画饼状图

public  <T extends View> T f(int id){
return (T) findViewById(id);
}

下次直接
TextView tv=$(R.id.tv);


不用写findViewById的偷懒方法
原文地址:https://www.cnblogs.com/linmob/p/14433490.html