[android] custom view 기본 구조
임베디드/Android 2011. 3. 4. 15:26
public class touchtest extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MyTouch mt = new MyTouch(this);
setContentView(mt);
}
protected class MyTouch extends View {
public MyTouch(Context context) {
super(context);
}
public void onDraw(Canvas canvas) {
}
}
}
'임베디드 > Android' 카테고리의 다른 글
[android][error] BatteryService 패치 (0) | 2011.03.22 |
---|---|
[android][error] power.c 패치 (0) | 2011.03.22 |
[android][error] can't find any keycharmaps & can't open keycharmaps file (0) | 2011.03.22 |
[android] HOME key 살리기 (0) | 2011.03.21 |
[android,cupcake] 안드로이드용 파일 시스템 구축 스크립트 (0) | 2011.03.21 |