본문 바로가기
[Kotlin] Kotlin 의 숨겨진 비용 #3 [Kotlin] Kotlin 의 숨겨진 비용 #3 https://medium.com/@BladeCoder/exploring-kotlins-hidden-costs-part-3-3bf6e0dbf0a4 Delegated property -class Example{ var p: String by Delegate()} property 에 delegate 를 사용할 경우에 해당 delegate 는 operator function 인 getValue 와 setValue 를 구현해야 한다.해당 function 들은 object instance 와 property metadata 를 받는다. public final class Example{ @NonNull private final Delegate p$delegate =.. 2018. 1. 18.
[android] 원형 progress view 그리기 [android] 원형 progress view 그리기 http://frogermcs.github.io/InstaMaterial-concept-part-9-photo-publishing/ -public class SendingProgressView extends View { public static final int STATE_NOT_STARTED = 0; public static final int STATE_PROGRESS_STARTED = 1; public static final int STATE_DONE_STARTED = 2; public static final int STATE_FINISHED = 3; private static final int PROGRESS_STROKE_SIZE = 10; p.. 2017. 7. 15.
android 에서 "Read-only file system" 이라는 메세지가 나오며 file operation 이 안 되면... android 에서 "Read-only file system" 이라는 메세지가 나오며 file operation 이 안 되면... su ( super user ) 모드에서 다음 명령어를 수행하면 된다. mount -o rw,remount /system 작업을 마친 다음에는 아래 명령어로 원래 mode 로 바꿔준다 mount -o ro,remount /system Android, android 에서 "Read-only file system" 이라는 메세지가 나오며 file operation 이 안 되면..., file system, Mode, Mount, read-only, remount, rw, su, super user, System 2015. 6. 29.
[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.
안드로이드 4.4 Kitkat UI/UX 변경사항 안드로이드 4.4 Kitkat UI/UX 변경사항 출처 : https://developer.android.com/design/patterns/new.html#kitkat 기본 Color 가 Blue -> White. Pinch Zoom -> Double Tap Zoom Pinch Zoom 은 한손 조작이 어려워서, Double Tap 하면 Zoom mode 에 들어가서 위로 scroll 하면 확대, 아래로 scroll 하면 축소가 된다. 다시 Double Tap 을 하면 Zoom mode 가 풀어진다. 시스템 Bar 들의 투명모드 시스템 Bar 들이 투명모드가 될 수 있다. 상단 status bar, action bar, 그리고 software button 이 있는 navigation bar 도 투명으로.. 2014. 5. 14.
[VB6] Multimedia 의 사용 ( 음악 및 동영상 재생 ) Multimedia 의 사용 ( 음악 및 동영상 재생 ) [이전강좌] 도형 그리기 ( GUI ) Microsoft Multimidia Control, 소위 MM control 을 이용해서 Multimedia 를 다룰 수 있다.MMControl 은 음악파일 재생은 물론, 동영상 재생도 할 수 있다. mmControl.Command = "Open" | "Next" | "Play" | "Prev" | "Stop" 동영상 재생 예제 코드mmControl.FileName = "Test.mpeg"mmControl.Command = "Open"mmControl.Command = "Play"mmControl.hWndDisplay = videoscreen.hWnd 동영상 Stop 예제 코드If mmControl.Mode.. 2013. 6. 20.
반응형