본문 바로가기
[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.
[android] View Separator 만드는 방법들 [android] View Separator 만드는 방법들 http://envyandroid.com/archives/1193/view-separators 방법 1. VIew 사이사이에 separator 역할을 하는 view 들을 직접 삽입한다. 방법 2. API Level 11 이상에서만 가능한 건데.. Layout 속성으로 showDividers 값을 준다. 방법 3. 가장 쉬운 방법으로써 ButtonBarStyle 을 사용하는 것이다. style="?android:buttonStyle" 을 주고 android:dividerPadding 값으로 divider 들의 padding 값도 조절할 수 있다. 11, 1dp, 1px, ?android:bubttonBarStyle, Android, android:.. 2015. 4. 12.
[android] 일반적이지 않은 사진(이미지) 모양 만들기 #1 - 모서리가 둥근 사각형 일반적이지 않은 사진(이미지) 모양 만들기 #1 - 모서리가 둥근 사각형 출처 : http://blog.stylingandroid.com/archives/2656 2가지 이미지를 합성해, 사각형의 이미지를 다른 모양으로 바꿀 수 있다.이번에 알아볼 것은 모서리가 둥근 사각형을 이용하여, 사각형 이미지를 둥근 사각형 모양으로 masking 하는 것이다. public Bitmap combineImages(Bitmap bgd, Bitmap fg) { Bitmap bmp; int width = bgd.getWidth() > fg.getWidth() ? bgd.getWidth() : fg.getWidth(); int height = bgd.getHeight() > fg.getHeight() ? bgd.getHei.. 2015. 4. 11.
No repository found error in Installing ADT in eclipse I just encountered following error message in the Eclipse "" No repository found error in Installing ADT in eclipse "". I removed the http://dl-ssl.google.com/android/eclipse/ site and then re-added it, then everything downloaded fine. Eclipse 에서 "" No repository found error in Installing ADT in eclipse "" 와 같은 에러를 마딱뜨렸다. 다음 ADT 를 다운받는 주소를 삭제했다가 다시 add 하니 제대로 다운로드를 시작한다.http://dl-ssl.google.com/.. 2015. 3. 28.
How to implement a Floating Activity in an Android App. How to implement a Floating Activity in an Android App. 출처 : http://cases.azoft.com/android-tutorial-floating-activity/ 만들고자 하는것. - Floating Activity ( Transparent ) - 단말의 orientation 에 상관없이 화면의 약 2/3 를 차지하며, center 에 위치하는 것. 만드는 과정 - Activity size 와 location 계산하기.- Activity 를 transparent 하게 만들기.- Background 가 touch 를 받지 않도록 하기. 1. Activity size 계산하기 ActionBar 를 사용하는 경우에 ActionBar 는 항상 동일한 위치에 존.. 2015. 3. 8.
android language code ( extension of values folders ) Country Name Introduced Version. English, US (en_US) 1.1German, Germany (de_DE) 1.1Chinese, PRC (zh_CN) 1.5Chinese, Taiwan (zh_TW) 1.5Czech, Czech Republic (cs_CZ) 1.5Dutch, Belgium (nl_BE) 1.5Dutch, Netherlands (nl_NL) 1.5English, Australia (en_AU) 1.5English, Britain (en_GB) 1.5English, Canada (en_CA) 1.5English, New Zealand (en_NZ) 1.5English, Singapore(en_SG) 1.5French, Belgium (fr_BE) 1.5Fr.. 2015. 2. 27.
[android] 전 세계 안드로이드 앱 스토어 infographics [android] 전 세계 안드로이드 앱 스토어 infographics 출처 : http://www.onepf.org/appstores/ Amazon, ANDROID MARKET, anzhi, appchina, AppStore, china, google play, hiapk, info graphics, Korea, Market, Opera, Overview, Russia, slideme, tencent, tencent app gem, World Wide, [android] 전 세계 안드로이드 앱 스토어 infographics, 구글 플레이, 안드로이드 앱 스토어, 인포그래픽 2015. 2. 26.
[android] how to make dialog transparent. It's very easy!! getWindow().setBackgroundDrawable( new ColorDrawable( 0 ) ); Android, CODE, Easy, how to make dialog transparent., Sample Code, transparent dialog, 안드로이드, 투명 다이어로그 2015. 2. 25.
Groovy 언어에 대해 살짝 알아보자~ Groovy 언어에 대해 살짝 알아보자~ IOS 8 부터 Object-C 를 버리고 Swift라는 새로운 언어를 선택했듯.. ( 아직 완전히 버린 건 아니고 혼재해서 사용하지만.. )안드로이드 혹은 자바 진영에서도, 더 짧게 언어를 쓰기 위해 Groovy 라는 언어를 채택하려는 움직임들이 일고 있다. public class FeedActivity { TextView mTextView; ... void updateFeed() { new FeedTask().execute("http://path/to/feed"); } class FeedTask extends AsyncTask { protected String doInBackground(String... params) { DefaultHttpClient htt.. 2015. 2. 20.
반응형