과거.....
-
line을 점선으로 그리고싶을때...과거...../개발일지 2010. 8. 12. 11:44
중요한 부분은 굵은 글씨부분 그 부분이 설정하는 부분이다.. DashPathEffect dashPath = new DashPathEffect(new float[]{8,3}, 1); Paint paint = new Paint(); // 将边框设为黑色 paint.setColor(android.graphics.Color.BLACK); paint.setPathEffect(dashPath); paint.setStrokeWidth(1); // 画TextView的4个边 canvas.drawLine(0, 0, this.getWidth() - 1, 0, paint); canvas.drawLine(0, 0, 0, this.getHeight() - 1, paint); canvas.drawLine(this.getWidth()..
-
TextView multiline과거...../개발일지 2010. 8. 12. 09:48
TextView를 상속받아서 새로운 ui를 만드는데 ....... 갑작스럽게 multiline이 왜 안되나 해서 구글링을 검색했더니 inputtype에 따라서 multiline이 되고 안되고 하였다. 구글링 원문 Hi, I am a beginner of Android, I have a question need to resovlve. String s = "aaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbb"; TextView textView = new TextView(this); textView.setText(s); The above code only show part of s on the screen in a line. I wish the textview control can automati..
-
Touch event 관련과거...../개발일지 2010. 8. 11. 10:43
Activity.dispatchTouchEvent(MotionEvent) : Window로 Dispatch되기 전에 Activity가 모든 이벤트를 가로챌 수 있게 해준다. ViewGroup.onInterceptTouchEvent(MotionEvent) : ViewGroup이 자식 Views로 Dispatch될 때 이벤트들을 볼 수 있다. ViewParent.requestDisallowInterceptTouchEvent(boolean) : onInterceptTouchEvent(MotionEvent)로 Touch Event를 가로채지 않을 것임을 Parent Viewe에게 알릴 때 호출된다.
-
java.lang.NullPointerException: println needs a message과거...../개발일지 2010. 8. 11. 09:41
테스트할때 로그값에 null값이 들어가도 에러가 납니다. 밑에는 구글링에서 찾은 예제소스고여~~~ *********calling log.i(null,null) results in null pointer exception ***************** NOTE: This form is only for reporting user bugs. For all other user discussions please visit: http://groups.google.com/group/android-discuss Please describe the problem in detail. Be sure to include: I was debugging an application and the code could result ..