본문 바로가기

Ideas

[android]fragment show(visible) & hide(gone) 더보기
[android]WebView history stack & back WebView 사용 시 history가 누적되었을 경우, Back을 눌렀을 때 WebView가 띄워진 Activity를 바로 종료하지 않고 WebView의 첫 화면으로 돌아간 후 다시 Back을 누르면 Activity를 종료(Back의 원래 기능). 해당 기능 구현을 위해 onBackPressed를 Override. 더보기
[android]Changes for v4 Support Library _ revision 13 (May 2013) - Android Support library v4에서 바뀐 부분 정리 2013.05 http://developer.android.com/tools/extras/support-library.html • Support library v4 변경사항 - 창의 가장자리에서 끌어 당기는 Navigation Drawer인 DrawerLayout Widget 추가. - 다양한 화면크기에 적용 가능하며, 상세내용을 표시하는 view를 위한 SlidingPaneLayout Widget 추가. - DrawerLayout과 ActionBar의 기능을 연결하는 ActionBarDrawerToggle 추가. - 상위 view에서 view를 드래그하기 위한 새 구성요소로 ViewDragHelper 추가. - Scroller와 O.. 더보기
[android]Button의 Drawable을 SourceCode로 작성 drawable의 state를 작성할 경우 xml과 마찬가지로 순서에 영향을 받기 때문에 반드시 순서대로 작성 (normal이미지는 항상 마지막에 작성) 1. activity에서 구현 할 경우. 2. Button을 상속받았을 경우 3. ImageButton을 상속받았을 경우 더보기
[android]Bitmap to NinePatch NinePatch 용량 최적화는 sdk/tools/draw9patch.bat 이용 1. 나인패치 이미지 준비 - test.9.png 2. 버튼 Listener 3. Image 설정 부분 code를 xml로 정의해서 사용할 수도 있음(drawable폴더 생성 후 작성) 더보기
[android]convert intent to string(uri) _ intent를 String(Uri)값으로 변환하기 String uri = intent.toUri(flag); //해당 intent를 Uri값으로 변환 flag값으로는 0 또는 Intent.URI_INTENT_SCHEME를 달아준다. Intent.URI_INTENT_SCHEME::parseUri와 toUri를 구분하는 구분자. return된 uri의 action=android.intent.action.VIEW;부분은 적어주지 않으면 해당 view를 들고 가기 때문에 지워준다.(byte제한 떄문에 가능한한 지워줌) 더보기
[android]view 절대좌표 구하기 더보기
[android]manifest permission constants java.lang.Object↳android.Manifest.permissionSummaryConstantsStringACCESS_CHECKIN_PROPERTIESAllows read/write access to the "properties" table in the checkin database, to change values that get uploaded.StringACCESS_COARSE_LOCATIONAllows an app to access approximate location derived from network location sources such as cell towers and Wi-Fi.StringACCESS_FINE_LOCATIONAllows an app to access preci.. 더보기
[xml]TextView _ inputType public interfaceInputTypeandroid.text.InputTypeKnown Indirect SubclassesEditorInfoClass OverviewBit definitions for an integer defining the basic content type of text held in an Editable object. Supported classes may be combined with variations and flags to indicate desired behaviors.SummaryConstantsintTYPE_CLASS_DATETIMEClass for dates and times.intTYPE_CLASS_NUMBERClass for numeric text.intTYP.. 더보기
2013년 2월 23일 tistory 시작. 빗살의 조개는 파도의 성실함을 기억한다. 흐트러진 나이테는 세월의 고통을 간직한다. 더보기