XML을 이용하는 방법
Shape Drawable
- http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape
shape를 이용하여 layout 꾸미기
- http://blog.naver.com/onamt?Redirect=Log&logNo=70080207217
[android]Divider 값 0으로 주기 와 비슷한 눈속임 ^^
- http://blackzaket.blog.me/80113145052
Source 코드에서 제어하는 예제
ShapeDrawable shapeDrawable = new ShapeDrawable();
Paint paint = shapeDrawable.getPaint();
paint.setStyle(Paint.Style.STROKE);
paint.setStrokeWidth(1);
paint.setColor(Color.BLACK);
findViewById(R.id.myView).setBackgroundDrawable(shapeDrawable);
'안드로이드 > 고급' 카테고리의 다른 글
[PAAD] 4장 메뉴 (0) | 2011.08.17 |
---|---|
[PAAD] 4장 커스텀 뷰 만들기 (2) | 2011.08.14 |
[PAAD] 3장 리소스 런타임구성, 애플리케이션확장, 액티비티생명주기 (0) | 2011.08.14 |
[PAAD] 3장 리소스 다루기 (0) | 2011.08.13 |
[PAAD] 2장 시작하기 정리 (0) | 2011.08.12 |