So, I created my own View subclass like this:
public class StatsTable extends View {
public StatsTable(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
@Override
public void onDraw(Canvas canvas) {
If StatsTable is in the com.coolgroups.bob package, you would use:
com.coolgroups.bob.StatsTable android:id=@+id/hello ... /
Note that you would need a different (additional) constructor, one
that takes an AttributeSet as the second parameter. See my ColorMixer
custom widget:
2 matches
Mail list logo