CustomWidget xml을 만들었습니다
...
<TextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
...
이 레이아웃 text 에 대한 코드를 작성하고싶은데 어떻게 위젯이랑 코드(Class)를 연결 하나요?
아래 컨스트럭트에서 레이아웃을 불러온다? 어떻게 해야하나요?
setContentView를 넣으면 되나요? 아닌거 같은데...
public class CWidget extends View
{
public CWidget(Context context, AttributeSet attrs)
{
super(context, attrs);
}
}