public class BitmapActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
private static class Chess extends View
{
public Chess(Context context)
{
super(context);
}
@Override
protected void onDraw(Canvas canvas)
{
Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
Typeface mType = Typeface.createFromAsset(getResources().getAssets(), \"fonts/chess1.ttf\");
mPaint.setTextSize(16);
mPaint.setTypeface(mType);
canvas.drawText(\"QQQQ\", 20, 20, mPaint);
}
}
1. Chess 는 Illegal modifier for the class \'Chess\', only public, abstract & final are permitted
2. Context는 Context can\'t be resolved to a type
이렇게 뜨는데 대충 1번은 chess 클래스는 퍼블릭이나 가상화나 파이널로만 해야 허락 된다 이런 소리 가꼬
2 번은 나도 감을 못잡겠다;; 도와줘.. 에러 ;; ㅠㅠ
-----------------------
그리고 저거 보면 대충 내가 뭐에 대해서 지식이 없는지 감이 올꺼 아녀 ex ( 병신새끼가 context 개념도 없네 이러면서 ㅇㅇ )
그것좀 말해줘 검색 해보게 고마워 봐줘서 ㅇㅇ
2번 Context 클래스 import시켜줬냐
private 을 왜 바깥에 만들고 지랄이양.... BitmapActivity 클래스 안에다 집어넣어봐.
왜 밖에 만들면 안대??
가르켜 줘~~ 형 가르켜 줘~~ 왜 밖에 private를 맹긍께 저 에러가 떳는지 설명좀 해줘어어 ㅠㅠ
여기 고정닉횽아들중에 게이가 없기땜시 니가 원하는 답변이 없는거다