목록전체 글 (1475)
오늘도 공부
출처 : http://blog.naver.com/man8408?Redirect=Log&logNo=110104491800 안드로이드의 스크린 가로, 세로 모드를 고정시키는 방법은 2가지입니다. 1. source에서 수정 - Activity를 상속받은 클래스에서 onCreate() 안에 super.onCreate()전에 다음 함수를 실행시켜주면 간단하게 고정이 됩니다. setRequestedOrientation(Activity.SCREEN_ORIENTATION_LANDSCAPE); 2. AndroidManifest.xml에서 수정 - 가로 : landscape, 세로 : portrait 둘중 하나로 설정하면 된다. 3. 결과화면
package org.kodejava.example.util; import java.util.Properties; import java.util.Map; import java.util.HashMap; import java.util.Set; public class PropertiesToMap { public static void main(String[] args) { // // Create a new instance of Properties. // Properties properties = new Properties(); // // Populate properties with a dummy application information // properties.setProperty("app.name", "HT..
출처 : http://mylovely1004.tistory.com/11
ListView의 배경색을 변경 하였을때, 스크롤 할 경우 배경색이 검은색으로 변하게 됩니다. 이럴 경우 아래 항목을 xml 내에 추가하면 됩니다. android:cacheColorHint="#00000000" 위와 같이 하면 스크롤 할 떄 배경색이 변하지 않습니다.
출처 : http://androidside.com/bbs/board.php?bo_table=B46&wr_id=13459 TITLE : Android Simple Comic Book App Date : 2010/06/24 Writen by Dayyoung Description : This is Source that make Comic book App by extends Webview. Download Link : CustomWebView Reference Site: http://nocivus.posterous.com/double-clicktap-detection-on-a 안드로이드 에서 확대/축소를 가진 기능의 일반View가 없는 것으로 알고있다. ImageView 같은 경우도 확대 축소에 대해서 Draw..
이미지 버튼 작성시 그냥 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..
