목록전체 글 (1730)
오늘도 공부
이미지 버튼 작성시 그냥 src하면 뒤에 테두리가 보인다.. 그래서 지금까진 백그라운드로 걍 처리했었지만.. 누르는 효과나 그런걸 기대못했기 때문에 짜증났었는데.. 왠걸...걍 뒤에 투명색으로 하면 된다네...우왕..짜증남..ㅋㅋ src="이미지 주소" background = "#00000000" 난 바보였어...T.T
제목에 재사용이라고 썼지만 사실 재사용을 안하는 이야기를 하려고 합니다-_-a 대부분의 책들이 ProgressDialog의 경우 재사용 하는 예제를 싣고 있고 물론 작동을 잘 하고 사용에 아무런 문제가 없습니다. 하지만 여기서 겪는 문제가 있습니다. 스타일을 ProgressDialog.STYLE_SPINNER 쓸때 보면 다이얼로그의 재사용시에 스피너가 회전을 하지 않습니다. 이것 참 난감하더군요. 여기에 대해 다양한 방법론이 제시되곤 합니다. 쓰레드등을 사용하여 비동기로 띄운다거나..하지만 잘 생각해 보면 그냥 재사용 안하면 됩니다; 우리 Dalvik VM의 GC를 믿어보는거죠; @Override protected Dialog onCreateDialog(int id) { switch(id) { case ..
출처 : http://godofcode.tistory.com/305 public class MyCustomButton extends ImageButton { final static int DEFAULT_IMAGE = R.drawable.default_button; final static int DEFAULT_CLICK_IMAGE = R.drawable.default_button_click; Drawable buttonImage;// 버튼 기본 이미지 Drawable clickImage;// 클릭 모션 이미지 public MyCustomButton(Context context, AttributeSet attrs) { super(context, attrs); buttonImage = getResources(..
출처 : http://mygirl2.blog.me/40105201905 출처 : http://androidcore.com/index.php?option=com_content&view=article&id=235&Itemid=106 Making a custom Android button using a custom view Creating a custom view is as simple as inheriting from the View class and overriding the methods that need to be overridden. In this example, a custom button is implemented in this way. The button shall feature a labell..
private Bitmap overlayMark(Bitmap bmp1, Bitmap bmp2) { Bitmap bmOverlay = Bitmap.createBitmap(bmp1.getWidth(), bmp1.getHeight(), bmp1.getConfig()); Canvas canvas = new Canvas(bmOverlay); canvas.drawBitmap(bmp1, 0, 0, null); canvas.drawBitmap(bmp2, distanceLeft, distanceTop, null); return bmOverlay; }
http://modian.tistory.com/entry/Gallery-Camera-%EC%82%AC%EC%9A%A9
출처 : http://susemi99.tistory.com/683 C2DM 소개 http://code.google.com/intl/ko-KR/android/c2dm/ 등록 http://code.google.com/intl/ko-KR/android/c2dm/signup.html 에서 가입을 하고나면 해당 메일 주소로 메일이 하나 온다. AUTH 정보 받기 ? Auth_android.java 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 import java.io.Bu..
출처 : http://lomohome.com/316 원래 하나은행 스마트폰 뱅킹의 위치기반(LBS) 지점찾기는 WebView 에서 Google Map API 를 통하여 구현이 되어있었다. 아이폰에서는 이게 잘 돌아가는데... 안드로이드에서는 기계마다 되는것도 있고, 안되는것도 있고.. 영 껄쩍지근 했다. (사실 이번에 출시한 갤럭시 S 에서 안돌아가는 이유가 가장 컸지..) 그래서 내친김에 WebView 에서 구현하지말고 MapView 로 구현해버리기로 했다. 이틀정도 작업한거라 고쳐야할 부분도 많고 (특히 Runnable 로 구현한 길게 누르기는...) 버그도 좀 있지만 일단 돌아가니, 이제까지 한것을 까먹지 않으려고 블로그에 정리를 해 둔다. * OSX 의 Pages 를 이용하여 블로그 글을 정리했는..