본문 바로가기
[iOS] keyboard type 바꾸기 [iOS] keyboard type 바꾸기 -UIKeyboardType enum 으로 다음과 같은 것들이 정의된다. typedef NS_ENUM(NSInteger, UIKeyboardType) { UIKeyboardTypeDefault, UIKeyboardTypeASCIICapable, UIKeyboardTypeNumbersAndPunctuation, UIKeyboardTypeURL, UIKeyboardTypeNumberPad, UIKeyboardTypePhonePad, UIKeyboardTypeNamePhonePad, UIKeyboardTypeEmailAddress, UIKeyboardTypeDecimalPad NS_ENUM_AVAILABLE_IOS(4_1), UIKeyboardTypeTwitter N.. 2016. 9. 19.
[android] ViewAnimator 뭐하는 녀석이야? [android] ViewAnimator 뭐하는 녀석이야? - ViewAnimator 는 FrameLayout 을 상속한 녀석으로 view 간의 switching 이 있을 때 animation 을 하는 녀석. -ViewAnimator 안에 view 들을 넣고, viewAnimator.showPrevious() 나 viewAnimator.showNext() 를 호출하면, child view 들이 순차적으로 animation 하며 나타났다 사라졌다 한다. -index 를 통해서도 view 의 visibility 를 control 할 수 있다.viewAnimator.setDisplayChild( int index ) -animation 은 setInAnimation() 과 setOutAnimation() 을 .. 2016. 9. 5.
[android] VideoView 를 사용하는 경우 progress hide timing. [android] VideoView 를 사용하는 경우 progress hide timing. 참조 : https://plus.google.com/+ArneStockmans/posts/FFE8PrWiPyq -API Level 1 부터 사용할 수 있는 VideoView 라는 녀석이 있다.http://developer.android.com/reference/android/widget/VideoView.html -MediaPlayer 의 내용물을 Rendering 시키는 SurfaceView 를 상속한 녀석이다. -SDK 17 부터는 OnInfoListener 를 달아놓으면, 실제 Rendering 이 시작될 때 What 으로 MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START 가 .. 2015. 12. 10.
[android] Shadow effect with custom shapes [android] Shadow effect with custom shapes 출처 : https://slothdevelopers.wordpress.com/2014/05/22/shadow-effect-with-custom-shapes/ Custom 한 버튼을 만드는 xml 정의이다. Custom 한 Shadow 와 Custom 한 버튼 모양을 만들기에 좋다. Android, Bottom, COLOR, Corner, custom button, custom shape, custom 버튼, Example, ITEM, layer-list, Left, Radius, Right, sample, selector, Shadow, shadow effect, Shape, Solid, state_pressed, Top, xm.. 2015. 12. 3.
[android] CardView [android] CardView https://developer.android.com/preview/material/ui-widgets.html#cardview CardView 는 FrameLayout 을 상속한 녀석이다.CardView 의 특징은 rounded corner 를 가질 수 있다는 것과 shadow 를 가질 수 있다는 것. shadow 를 만들기 위해서는 android:elevation 속성을 control 하면 된다. android:cardCornerRadius 속성을 통해 rounded corner 를 줄 수 있다. ( CardView.setRadius )android:cardBackgroundColor 속성을 통해 배경속성을 따로 줄 수 있다. Android, android:cardc.. 2015. 11. 30.
[android] v7 에 추가된 RecyclerView 에 대해 알아보자 #2 [android] v7 에 추가된 RecyclerView 에 대해 알아보자 #2 출처 : https://developer.android.com/preview/material/ui-widgets.html#recyclerview v7 에 추가된 RecyclerView 에 대해 알아보자 #1 RecyclerViewRecyclerView 는 더 향상되고, 더 유동적인 버전의 ListVIew 라 할 수 있겠다.이 widget 은 recycle 될 수 있고, scroll 될 수 있는 view 들을 갖는다. 즉 listview 나 gridview 로 보면 되겠다. RecyclerView 는 사용하기 편하다. 다음의 것들을 제공하기 때문이다.- item positioning 을 위한 LayoutManager- 일반적인.. 2015. 11. 29.
Android Loaders Tutorial Android Loaders Tutorial http://developer.android.com/guide/components/loaders.html Android 3.0 부터 Loader 가 등장하여 async 하게 data 를 load 할 수 있게 되었다.Loader 는 다음과 같은 특징이 있다. - Activity, Fragment 에서 접근 가능하다.- Data 를 async 하게 load 한다.- Source data 를 monitor 하면서 내용이 변경되면 새로운 결과를 전달한다.- config change 등과 같은 activity, fragment 의 recreation 시 기존 자료를 자동으로 reload 한다. Loader API Summary LoaderManager Activity .. 2015. 11. 3.
Objective-C 의 기본 ( Basic Objective-C ) Object-C 의 기본 ( Basic Objective-C ) 출처 : http://www.tutorialspoint.com/objective_c/ > - OOP 언어로 Smalltalk-style 을 C 언어 에 가미한 언어이다. Apple 의 OSX 와 iOS 에서 공식적으로 사용되는 언어이다. > - Object-C 는 OOP 의 4가지 조건 ( Encapsulation, Data hiding, Inheritance, Polymorphism ) 을 모두 만족시키는 언어이다. - Foundation Framework 는 아래 명시된 기능들을 비롯해 많은 기능을 제공한다. * NSArray, NSDictionary, NSSet 과 같은 data type 을 제공 * file, string 등 많은 u.. 2015. 6. 16.
[android] 일반적이지 않은 사진(이미지) 모양 만들기 #2 [android] 일반적이지 않은 사진(이미지) 모양 만들기 #2 출처 : http://blog.stylingandroid.com/archives/2660 이전 글 : http://aroundck.tistory.com/2971 Shader 는 Canvas 에 그릴 때 fill style 을 정의할 때 사용되며, Paint 객체에 전달하여 사용된다. 이 방법은 BitmapShader 를 이용하며, round corner radius 를 bitmap 의 1/8 사이즈로 한다.그리고 Canvas.drawRoundRect 를 이용하여 기존 이미지 형태의 rounded rect 를 대체한다. public Bitmap processImage(Bitmap bitmap) { Bitmap bmp; bmp = Bitmap.. 2015. 4. 30.
반응형