본문 바로가기
[android] Material Support Library [android] Material Support Library http://code.hootsuite.com/tips-and-tricks-for-android-material-support-libraryhttps://android-developers.googleblog.com/2014/10/material-design-on-android-checklist.html -material support lib 을 사용하기 위해서는 build.gradle 에 dependency 를 추가해주어야 한다. dependencies { compile 'com.android.support:appcompat-v7:21.0.+'} -App theme 도 바꿔주자. -Activity 도 ActionBarActivity 를 상속받.. 2017. 7. 8.
[Android] java.lang.IllegalStateException: Cannot add header view to list -- setAdapter has already been called. [Android] java.lang.IllegalStateException: Cannot add header view to list -- setAdapter has already been called. android 2.3 에서는 setAdapter 가 수행된 이후에 addHeaderView 가 수행되면 아래와 같은 exception 을 내뱉는다. java.lang.IllegalStateException: Cannot add header view to list -- setAdapter has already been called. 해결책은 setAdapter( null ); 을 해주고, addHeaderView 를 호출한 다음 다시 본래의 adpater 를 set 해주던가, 아니면 headerview 를 .. 2017. 5. 17.
[android] NotificationCompat and its Builder NotificationCompat.Builder.setSmallIcon( int resId ); setSmallIcon 이 지정되지 않으면 notification 은 등록이 아예 되지 않음.Small Icon 은 status bar 에 뜨는 아이콘과 notification view 안의 우측에 표시됨. 만약 large icon 이 지정되지 않으면 notification view 안에 있는 icon 도 이녀석으로 지정됨.만약 large icon 이 지정되어 있다면 content info 자리에 icon 이 같이 표시됨. NotificationCompat.Builder.setLargeIcon( Bitmap bitmap ); Notification View 안에 있는 icon 이 지정됨. Notificatio.. 2013. 11. 21.
[android] why margin_bottom value is not working? android, why margin_bottom value is not working? 필자의 경우 PullToRefreshListView 를 사용하면서 ListItem 으로 여러가지 Layout 을 사용하며 margin 에 관련된 여러 가지 이슈를 발견했다. 1. ICS 이상일 경우. FrameLayout 을 이용하면 margin 값 처리에 별 문제가 없다. ICS 이상일 경우라도 RelativeLayout 의 경우는 다른 녀석은 잘 작동해도 marginBottom 값만은 제대로 먹지 않았다. 어디선가 layout_height = "wrap_content" 일 경우 제대로 동작 안 한다는 말이 있던데, list item 으로 사용되는 경우에는 wrap_content 와 상관없이 제대로 먹지 않는다. S.. 2013. 11. 15.
[android] at GingerBread device GCM register returns SERVICE_NOT_AVAILABLE android, @ GingerBread device, GCM register returns SERVICE_NOT_AVAILABLE [En] java.io.IOException: SERVICE_NOT_AVAILABLEat com.google.android.gms.gcm.GoogleCloudMessaging.register(Unknown Source) Even though GCM register function returns SERVICE_NOT_AVAILABLE, registration process is actually done well. You can check the registration id, a.k.a. device token, via Broadcast Receiver with followin.. 2013. 10. 15.
[android] Volley URL related issue( bug ) at GingerBread. - java.io.IOException: Malformed ipv6 address: android, Volley URL related issue(bug) at GingerBread. - java.io.IOException: Malformed ipv6 address: [En] If you use Volley network library with GingerBread and the below version devices, you might encounter URLMalformedException with this kind of message. java.io.IOException: Malformed ipv6 address: It it known issue about the URL class. The problem happens when the host part contains port num.. 2013. 10. 5.
[android] how to remove extra padding( or margin ) in the GridView android, how to remove extra padding( or margin ) in the GridView [En] GingerBread and below versions show strange effect at the GridView. Sometimes it introduces extra padding or margin which was not set by programmer. I think the fragmentation of android and the various versions are a huge disaster to the programmer. BTW, there's solution for removing those unexpected extra padding or margin.I.. 2013. 9. 24.
반응형