Dev332 Custom Circular Progressbar 이제까지 거의 Progressbar 를 기본 혹은 라이브러리를 통해서 사용 및 수정을 해서 사용했었다. 다른 라이브러리를 수정해서만 사용하다보니깐, 기본적으로라도 Progressbar 를 직접 만들어보고 싶어서 만들었다. 아주 간단하게 Circular ProgressBar 를 만들었다. 간단한 프로그레스바라도 처음으로 직접 만들다보니 시간이 꽤 걸렸다. Github 주소 : CircularProgressBar 2018. 8. 12. CustomView 순서 View 를 상속받은 CustomView 라이프 사이클 다음과 같다. 1. 생성자 : Context 및 속성값을 넘겨받는다.2. onMeasure() : 뷰를 그릴 화면의 크기를 잰다.3. onDraw() : 뷰를 그린다. 생성자 -> onMeasure() -> onDraw() --->>> BAHMMM 2018. 8. 12. Progressbar Library 모음 Progressbar Library 모음 Ccapton 이라는 Github 유저가 ProgressBar 라이브러리를 정리해뒀다. Github 페이지 : Collection-Android-Progress Github 에서 라이브러리를 찾으면서 느낀점은 중국분들이 참 좋은 라이브러리를 많이 만드는것 같다라는 점!! 현재 내가 참고하는 라이브러리 : Circular Progressbar - CircleProgressBar 나의 프로젝트에 맞게 커스텀 작업을 하고있다. CustomView 를 직접 구현하는데 생각보다 시간이 많이 걸리는것 같아서 찾아봤고, 덕분에 시간이 줄어든것 같기도하지만, 라이브러리를 수정해서 사용하는것도 시간이 많이 걸렸다. ▼▼ 라이브러리를 저의 프로젝트에 맞게 수정한 뷰 ▼▼ -----.. 2018. 8. 9. 과제로 진행한 Github User 찾기 프로젝트 Github User Find Github 주소 : LikeItGithub 구성- View- Adapter- Model- DB- Network- Common 라이브러리- Butterknife(http://jakewharton.github.io/butterknife/)- Picasso(http://square.github.io/picasso/)- Retrofit(http://square.github.io/retrofit/)- Okhttp(http://square.github.io/okhttp/)- Gson(https://github.com/google/gson) 기술- Java- Android 기능- Github User Search- 로컬 DB에 Like Item 저장- RecyclerView Heade.. 2018. 8. 7. references to other resources are not supported by build-time PNG generation IDE : Android Studio 3.1.3 Can't process attribute android:fillColor="@android:color/darker_gray": references to other resources are not supported by build-time PNG generation Vector Drawable 파일을 사용하였고, Color 값을 바꾸었을 때 위와 같이 Support 하지 못한다고 나왔다. 검색을 해보니 Drawable 에 SupportLibrary 관련 옵션을 활성화(true) 해주면 된다. defaultConfig{ vectorDrawables.useSupportLibrary = true } 출처 : https://stackoverflow.com/a/47.. 2018. 8. 6. Android Flash(light) 기능 사용 Android Flash(light) 사용하기!! Photo by Ezekiel Elin on Unsplash 1. 사용권한 때문에 Manifest.xml 에 추가 2. Flash 기능을 지원하는지 체크 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH)) {// .. 플래시 켜기}else {// .. 플래쉬 지원하지 않음.} 3. Flash On(), Off() 구현 -- SDK Level 23 이상Camera camera = Camera.open();Camera.Parameters parameters = camera.getParameters(); // onparameters.setFlashMode(Camera.Pa.. 2018. 7. 30. 이전 1 ··· 32 33 34 35 36 37 38 ··· 56 다음