과거...../개발일지
-
text관련과거...../개발일지 2010. 11. 22. 15:46
-text의 shadow주기(샘플)- android:shadowColor="#000" android:shadowRadius="2.0" -설명- Text Shadow You can use three different attributes to customize the appearance of your text shadow: android:shadowColor Shadow color in the same format as textColor. android:shadowRadius Radius of the shadow specified as a floating point number. android:shadowDx The shadow’s horizontal offset specified as a floating ..
-
Canvas사용법과거...../개발일지 2010. 11. 16. 09:30
onDraw나 dispatchDraw내에서 사용시에 파라미터로 canvas를 이용해서 사용한다 물론 Bitmap을 만들거나 할때도 canvas를 이용하지만 중요한내용은 이것이 아니니까 패스~~ 캔퍼스를 사용할시에 틀별히 정해진 규정은 없지만 보편적으로 권하는 방식이 있다. 1. canvas.save(); à push 2. transform matrix; 3. draw; 4. canvas.restore(); à pop 캔퍼스를 사용하기 전(변형을 하기전:회전, 원점 이동 등....)환경을 save함수를 이용해서 저장한 후 캔퍼스를 변경해서 그린 후 restore()함수를 통해 캔퍼스를 사용하기 전 환경으로 돌리는 것이다. 맨 처음에 사용할 시에는 save(),restore()를 왜 사용할까 라는 생각을 해..
-
shadow샘플과거...../개발일지 2010. 10. 6. 08:45
bitmap파일로 구현한 shadow샘플 예제 입니다. TestView.java public class TestView extends View { private Context mContext; Bitmap sampleBitmap, sampleLine; int mWidth; int mHeight; ImageView imageView; public TestView(Context context) { super(context); this.mContext = context; setWillNotDraw(false); sampleBitmap = BitmapFactory.decodeResource( this.getResources(), R.drawable.test); sampleLine = BitmapFactory.d..
-
-
한글 로그값 찍기과거...../개발일지 2010. 9. 2. 11:10
로그값 찍는데 한글을 꼭 찍어야되는 상황에서 로그값을 확인을 못하고 당황하고 있을때 찾은 검색내용이다. 우오오오 출처 : http://www.androidside.com/bbs/board.php?bo_table=B46&wr_id=1398 아시다시피 DDMS의 LOGCAT에선 아직 한글 출력이 안됩니다. UTF-8로 고정되어 있고, LOGCAT에서 인코딩을 변경시키는 옵션이 없습니다. 그래서 DDMS에서의 LOGCAT창이 아닌, 일반 윈도우 콘솔창에서 출력을 하는 방법이 있습니다. 콘솔창을 열고 다음과 같이 입력합니다. C:\cmd /u C:\chcp 65001 콘솔창>속성>글꼴>Lucida Console로 변경 C:\adb logcat 이제 한글 출력이 가능한 디버깅을 볼 수 있습니다. 조만간 eclip..