분류 전체보기
-
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..