public class Diyview extends LinearLayout {
public Diyview(Context context) {
this(context,null);
}
public Diyview(Context context, AttributeSet attrs) {
this(context, attrs,0);
}
public Diyview(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
initview(context, attrs, defStyleAttr);
}
private void initview(Context context, AttributeSet attrs, int defStyleAttr) {
View view = View.inflate(context, R.layout.layout, this);
}
}