목록전체 글 (1347)
오늘도 공부
노티시 위에 떠있는 팝업 보여주기링크 : http://www.kmshack.kr/313
출처 : http://stackoverflow.com/questions/16163215/android-styling-seek-bar I would extract drawables and xml from Android source code and change its color to red. Here is example how I completed this for mdpi drawables: Custom red_scrubber_control.xml: Custom: red_scrubber_progress.xml Then copy required drawables from Android source code, I took them here: https://github.com/android/platform_fra..
출처 : http://stackoverflow.com/questions/12411060/get-listview-height-after-setadapter ListView lv_marca; lv_marca.setAdapter(adapter_marca); int list_height = getListViewHeight(lv_marca); private int getListViewHeight(ListView list) { ListAdapter adapter = list.getAdapter(); int listviewHeight = 0; list.measure(MeasureSpec.makeMeasureSpec(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED), Measur..
출처 : http://arabiannight.tistory.com/55 안드로이드/Android 부모의 속성을 동일 하게 가져 가자! 안드로이드 XML을 개발하면서 List나 뷰의 이벤트 발생에 따라 화살표(Arrow)버튼 이미지도 Press 처리 해야 할 경우가 많은데요. 이런 경우게 onTouchEvent로 터치 했을 경우에 Pressed 처리하거나 터치를 종료할 경우 Normal 처리 해주는 경우가 있었을 겁니다. 하지만 부모 뷰의 속성에 따라 Child뷰의 속성들이 이벤트를 받는 XML 속성이 있는데요. 이 속성을 쓰면 훨씬더 간결하고 편하게 코드를 작성할 수 있습니다. 그 속성의 이름은 바로 요놈 입니다. android:duplicateParentState="true" 보통 요즘의 화면 구성에는..
출처 : http://hmkcode.com/android-custom-listview-titles-icons-counter/ Android | Custom ListView with Titles, Icons & Counter You can customize the ListView by providing a new layout for the list items “rows”. The new layout can be more than just a single TextView. Here will see how to develop a custom ListView with items having leading icons “ImageView“, trailing counters “TextView” and some tex..
출처 : http://www.kmshack.kr/323 Android View와 관련된 오픈소스들이 많이 공개 되고 있다. 그래서 많이 쓰이고 유용한 오픈소스를 정리 해보았다. 아직 국내에서는 오픈소스가 인색한지 모두 외국에서 만든것들이다. 나도 View관련 오픈소스를 하나준비 하겠다고 준비중인데.. 준비중이기만 하다. 참고로, 잘 알려지고 검증된 오픈소스라도 코드를 하나하나씩 보고 어떻게 구현되어 있는지 꼭 살펴보고 썼으면 좋겠다. 그리고 이제 개발을 시작한지 얼마 안된 분들이라면 이런 오픈소스를 사용함으로 자기 실력을 죽일 수도 있으니 한번씩 구현해보는 것도 좋을듯 하다. 그리고 국내 개발 커뮤니티에 보면 자기가 개발할 것에 대해 오픈소스를 찾음으로써 개발해서 삽질 하기전에 찾아서 다행이다라는 글들을..
출처 : http://kahdev.wordpress.com/2008/09/13/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 labelled image (i.e. an image with text underneath). 1 public class CustomImageButton ext..
출처 : http://javaexpert.tistory.com/179#comment9420256 기본적으로 SlidingDrawer 는 오른쪽에서 왼쪽으로 밖에 지원이 안되는가?? -- 왼쪽에서 밀면훨씬편한데.. ㅋㅋ 이것이 xml 코드 public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.subware); drawer = (SlidingDrawer)findViewById(R.id.slidingDrawer); drawer.setOnDrawerScrollListener(new Slid..