2009-12-21から1日間の記事一覧

外部からViewの生成を知る

public GuidanceView(Context context, AttributeSet attrs) { super(context, attrs); //attr.xml経由で拡張されたプロパティを取得 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.GuidanceView); this.guidance = a.getString(R.styl…