본문 바로가기
[android] design support library [android] design support library https://android-developers.googleblog.com/2015/05/android-design-support-library.html -android design support library 를 통해서 navigation drawer view, floating labels for editing text, floating action button, snackbar, tabs, motion & scroll framework 등을 2.1 이상 버전에서 사용 가능하다. -gradle 에 아래를 추가하자! compile 'com.android.support:design:22.2.0' 이 녀석은 Support v4 와 AppCompat .. 2017. 8. 4.
[android] AbstractAccountAuthenticator 에 대해 알아보자. [android] AbstractAccountAuthenticator 에 대해 알아보자. http://developer.android.com/reference/android/accounts/AbstractAccountAuthenticator.html - 계정을 생성하기 위해서는 AbstractAccountAuthenticator 를 구현한 녀석을 가지고 있어야 한다. 또한 android.accounts.AccountAuthenticator action 을 처리하는 Service 도 구현해야 한다. 해당 service 에서는 Authenticator 의 getIBinder() 를 수행한 녀석을 IBinder 로 return 해주어야 한다. - AuthenticationService 는 다음과 같은 inte.. 2017. 7. 6.
[Android] Overview screen 을 꾸며보세요. [Android] Overview screen 을 꾸며보세요. http://www.bignerdranch.com/blog/polishing-your-Android-overview-screen-entry - Overview Screen( Home key long press 혹은 multi tasking button ) 을 Lollipop 부터는 꾸밀 수 있게 되었다.새로운 API 를 이용해 icon, title, top bar 색상 등을 수정할 수 있다. - 별다른 설정을 하지 않으면 android:icon, android:label, android:theme 을 통해 icon, title, top bar color 가 각각 정해진다. 이 값들은 base activity( launch, main ) 로부터.. 2017. 4. 11.
[android] Lollipop (LOS) 부터는 Notification Icon 에 색상을 넣을 수 없다? [android] Lollipop (LOS) 부터는 Notification Icon 에 색상을 넣을 수 없다? 출처 : https://developer.android.com/intl/ko/about/versions/android-5.0-changes.html#BehaviorNotifications #Lollipop ( Android 5.0 ) 부터는 Notification 의 Icon 의 Color 값을 전부 무시하며, Non-Alpha Channel 은 모두 White 로 바꾸어 버린다.즉, Alpha 가 있는 부분은 transparent 로, Alpha 가 없는 부분은 모두 흰색으로 표시한다. ( Material Design 의 영향 ) #만약 기존과 같이 색상이 있는 Notification Icon.. 2016. 2. 14.
[android] authenticator 관련 Tutorial [android] authenticator 관련 Tutorial 참조 : http://cranix.net/346 http://cranix.net/347 http://cranix.net/349 http://cranix.net/350 Authenticator Service - 안드로이드 설정의 Accounts & Sync 메뉴의 기능 제공을 위해서 필요하다. - @ Manifest - @ xml/authenticator.xml - @AuthenticationService.java public class AuthenticationService extends Service { @Override public void onCreate() { // TODO Auto-generated method stub } @Ove.. 2015. 12. 5.
[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] Navigation Drawer 이야기. 안드로이드, Navigation Drawer 이야기. 참조 : http://developer.android.com/design/patterns/navigation-drawer.html Navigation Drawer 의 특징 기존의 Sliding Menu 와 같으나, 다른 점은 ActionBar 는 그대로 있고,Contents 도 밀어내지 않는, Drawer 가 overlay 형태로 등장한다는 것. Navigation Drawer 는 3개 이상의 top-level views 가 있을 때 사용하는 것이 좋다.그렇지 않다면 Tab View 를 사용하는 것이 추천된다. Navigation Target 은 icon 과 counter, 그리고 title 도 가질 수 있다.또한 Collapse 도 지원한다. Act.. 2013. 8. 1.
[VB6] Built-in Function 들에 대해 공부해보자. ( MsgBox, Input, Math 함수, Formating 함수, String 함수 ) Built-in Function 들에 대해 공부해보자. [이전강좌] Control 문들에 대해 공부해보자. ( If Else, Select, Do while, For문 ) Dialog Box 들 returnValue = MsgBox( PromptStr, StyleValue, Title ) StlyeValue Constant0 vbOkOnly 1 vbOkCancel 2 vbAbortRetryIgnore 3 vbYesNoCancel 4 vbYesNo 5 vbRetryCancel StyleValue 에는 다음의 값을 더해서, icon 도 함께 표시할 수 있다. StyleValue Constant 16 vbCritical 32 vbQuestion 48 vbExclamation 64 vbInformation Re.. 2013. 6. 5.
[android] Notification 에 대한 모든 것. 안녕하세요. 돼지왕 왕돼지입니다. 오늘은 Notification 에 대한 모든 것 이라는 주제로 Notification 에 대해 한번 알아보도록 하죠. Notification APIs. Notification (int icon, CharSequence tickerText, long when); 필드 설명 number Notification Icon에 겹쳐서 출력될 숫자 지정 ex) 메세지 여러개 도착시 덮어쓰면서 숫자를 표시할 수 있다. 0이나 음수시 숫자 표시 X sound Notification 시 출력할 소리를 Uri 객체로 지정 vibrate 진동방식 지정, 진동시간과 멈출 시간을 배열로 전달 ledARGB 불빛의 색상 지정. LED 능력에 따라 표현능력 다름 ledOnMs, ledOffMs LE.. 2012. 2. 18.
반응형