>>144
こんな感じかな。自分ではこういうやり方してるわけじゃないからお勧めはしない。
public<T extends View> T findGenericViewById(int id){
return (T) findViewById(id);
}
TextView tv = findGenericViewById(id);

public<T extends View> T
findGenericViewById(int id,Class<T> c){
return (T) findViewById(id);
}

findGenericViewById(id,TextView.class).setText("foo");