본문 바로가기
[android] how to apply actionBarStyle and android:actionBarStyle both? android, how to apply actionBarStyle and android:actionBarStyle both? android developer reference 문서를 보면,actionbar 에 custom style 을 적용하면서 compatibility 이슈를 동시에 해결하려면android:actionBarStyle 과 actionBarStyle 을 동시에 적용할 것을 설명해준다. 하지만, Eclipse 에서 실제로 적용해보면 인식할 수 없다는 xml error 가 발생한다. 이는 다음과 같이 해결할 수 있다. 1. tools 라는 name space 를 정의해준다. xmlns:tools="http://schemas.android.com/tools" 2. android:actionBar.. 2014. 3. 5.
[기초강좌] HTML Text Formatting - w3schools 번역 [기초강좌] HTML Text Formatting - w3schools 번역 w3school 의 강좌 내용을 번역한 글입니다. 원문 : http://www.w3schools.com/html/html_formatting.asp This text is bold This text is italic This is computer output This is subscript and superscript 눈으로 직접 보기. HTML Formatting Tags HTML 은 , 와 같은 tag 를 이용하여 보여지는 형태를 달리 한다. 이런 HTML Tag 들을 formatting tag 라고 부른다. ( 전체 reference 는 이 페이지의 하단을 참고하길.. ) Tip종종 이 처럼, 그리고 이 처럼 표기된다.하지.. 2014. 2. 27.
[기초강좌] HTML Headings - w3schools 번역 [기초강좌] HTML Headings - w3schools 번역 w3school 의 강좌 내용을 번역한 글입니다. 원본 : http://www.w3schools.com/html/html_headings.asp Headings 는 HTML 문서에서 중요하다. HTML Headings Heading 은 ~ 으로 정의된다. 은 가장 중요한 heading 이고, 은 가장 덜 중요한 heading 이다. This is a headingThis is a headingThis is a heading 눈으로 직접 보기. 주의 : 브라우저가 자동으로 각 heading 앞뒤로 빈 공간 (여백) 을 넣는다. Headings Are Important HTML heading 은 heading 으로만 써야 한다. Heading .. 2014. 2. 24.
[android] NavigationDrawer Tutorial android, NavigationDrawer Tutorial Layout You should use DrawerLayout to enable your app edge activated for open drawer automatically.Otherwise you have to implement drawer open touch event by yourself. You must keep in mind that FrameLayout that is responsible for drawer has to be come last.Because android draws xml declared layout from the bottom so that the drawer will be come most upper part.. 2013. 11. 28.
[PHP] 코드 재활용과 함수 작성 Tutorial PHP, 코드 재활용과 함수 작성 Tutorial =====require() 와 include() 사용하기 - require( "fileName" ) 을 사용하면require()를 호출한 자리가 해당 파일 내용으로 바뀌고 스크립트가 실행된다. - require() 로 불러들이는 파일이 로 감싸있지 않다면,html 파일 형식으로 불러들인다. - include 는 require 와 기능을 같다.다만 require 는 실패했을 경우 치명적 오류를 내지만, include 는 가벼운 오류만 내뿜는다. - require_once(), include_once()파일을 한번만 포함시킨다.library 를 포함시킬 때 같은 라이브러리를 두 번 이상 포함시키는 일을 막아준다. =====auto_prepend_file, a.. 2013. 11. 26.
[PHP] 배열( array ) tutorial PHP Tutorial 배열 =====생성 $products = array ( 'Tires', 'Oil', 'Spark Plugs' );$numbers = range( 1, 10 );$odds = range( 1, 10, 2 );$letters = range( 'a', 'z' ); =====배열 element 추가 배열은 길이 상관없이 추가하는 것도 가능하고, 정의없이 사용하는 것도 가능하다. $products[4] = 'Fuses';$products2[0] = 'Good Tires'; =====foreach foreach( $products as $current ) 위와 같은 방식으로 foreach 를 쓰는 것이 general 하다. =====key-value array $prices = array( .. 2013. 11. 21.
안드로이드 4.4 KitKat ( 킷캣 ) 뭐가 달라졌나? 안드로이드 4.4 KitKat ( 킷캣 ) 뭐가 달라졌나? 안드로이드 4.4 KitKat ( 킷캣 ) 뭐가 달라졌나? 4.1 부터 Jelly Bean 이라는 코드를 써온 안드로이드는이번 4.4부터 KitKat( 킷캣 ) 으로 새로운 코드를 부여했다. 보통은 어느 정도 큰 변화가 있을 때 코드명을 변경하는데,이번에는 메모리 이외에는 미래를 위한 초석작업인 자잘한 변화만 있는데도 코드명을 부여했다. 이는 이제는 안드로이드가 꽤나 안정적인 상태로 접어들었다는 이야기가 될수도 있고,더 이상 기술적으로나 아이디어적으로나 (요즘은 아무데나 붙이는.. ) 혁신이라 불릴 정도의 개선점을 찾을 수 없었거나 양 자 중 하나일 것이다. 우선 무엇이 바뀌었나 보자. 1. 메모리 이용량. 꼭 필요하지 않은데도 부팅과 동시에 서.. 2013. 11. 12.
[android] 메모리 최적화에 대한 추가정보들 android, 메모리 최적화에 대한 추가정보들 Activity 나 Fragment 가 멈출 때 비트맵을 재활용하자. - 보통 Activity의 경우 onStop(), Fragment의 경우 onDestryView() 에서 하는 것이 적당하며, Bitmap 이미지의 recycle 을 호출한다. - Activity 나 Fragment 의 종료시에는 View 에 bind 된 drawable 을 끊어주는 것도 중요하다.Drawable.setCallback( null ); 이는 Drawable 이 View 에 bind 되어 있고, View 는 다시 Context 를 통해 Activity 에게 bind 되어 있다는 의미이다. 이를 통해 메모리 릭의 가능성을 배제할 수 있다. 이미지를 load 할 때 줄여서 읽는다.. 2013. 11. 11.
[Java] Properties class 는 뭐 하는 녀석일까? 자바, Properties class 는 뭐 하는 녀석일까? Properties class 는 HashTable 을 상속한 녀석으로,String, String map 을 가지고 있는 녀석이다. 따라서 속성값을 다루기에 좋고, 속성값을 다루는데 보통 사용된다. 이 녀석은 기본 HashTable 을 넘어서서 편리한 Util class 들도 제공한다. 여기를 reference 로 참고하시길..http://developer.android.com/reference/java/util/Properties.html Hashtable, java properties, properties, properties class, Reference, string map, 속성값 2013. 9. 21.
반응형