일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- spring
- Kotlin
- MySQL
- R프로그래밍
- Eclipse
- android error
- html
- Android Apk 이름
- JavaScript
- Android Apk 이름 변경
- Firebase
- Exception
- release unsigned
- Android Apk
- Program type already present
- CSS사용법
- tomcat
- java error
- apache gzip
- FLUTTER
- Java
- Android
- DataTable
- release Apk
- css
- 안드로이드
- jQuery
- fragment
- error
- android fragment
- Today
- Total
목록Android (34)
selfstarter
DrawerLayout Drawer는 서랍 화면에 나타나지 않다가 왼쪽에서 오른쪽으로 touch를 drag하면 나타난다 서랍처럼 열리는 메뉴화면과 메뉴를 열지 않았을 때 보이는 주화면으로 이루어져 있다 주화면은 DrawerLayout에 첫번째이고 layout_gravity 속성을 가지는 메뉴가 서랍메뉴가 된다 메뉴화면이 어느방향으로 열리고 닫힐지는 layout_gravity 속성으로 정의한다 layout_gravity는 오로지 left, right만 지정할 수 있다 Drawer의 너비는 고정값, 높이는 화면 높이와 같게 맞춘다 Dependencies 추가 dependencies { implementation "androidx.drawerlayout:drawerlayout:1.0.0" } Code Draw..
non-static method 'getclass()' cannot be referenced from a static context 해결방법 Error non-static method 'getclass()' cannot be referenced from a static context Code public static final String className = getClass().getSimpleName().trim();Case class의 전역에서 사용하려고 했다. 그런데 getClass는 static Method가 아니므로 전역에서 사용할 수 없다. Soution 정적메소드가 아닌 getClass()말고 클래스이름.class을 쓰면 된다
android constraintlayout 속성 정리 Bias bias는 편견, 치우치다는 의미. app:layout_constraintHorizontal_bias에서 숫자가 작을 수록 수평에서 start쪽에 치우치고 클수록 end 쪽에 치우친다 0.7은 1을 100% 이므로 수평에서 70% 치우쳤다는 의미이다 constrainedWidth, constrainedHeight app:layout_constrainedWidth를 사용하면 전체 너비안에 화면에 요소가 전부보이도록 너비를 수정해준다 높이를 벗어나고 싶지 않다면 app:layout_constrainedHeight="true" 길이가 길어지는 위젯에 써야한다(위에 예제에서 버튼에 쓰면 안됨) Percent layou_width를 0을 주고 lay..
AnimatedVectorDrawableVector Animation은 vector 기반이라 이미지를 확대해도 깨지지 않는다총 3개의 파일을 추가한다. 애니메이션을 정의하는 objectAnimator, 애니메이션이 멈추었을 때 보이는 vector image인 vector, 그 둘을 이어주는 animated-vector, 3가지 파일을 정의해야한다objectAnimator 정의res/animator/test_ani.xml Vector Animation을 정의valueFrom, valueTo에는 Vector Script가 사용됨y축은 위에서 부터 아래로 0부터 커진다10, 60은 x, y좌표소문자도 된다고 적혀 있지만 테스트 시 소문자를 사용하면 도형이 보이지 않음M : moveTo, 커서를 이동시키는 명..
Kotlin Summary Kotlin Tutorial Benefit of Kotlin 1) Google I/O 2017에서 android의 공식언어로 지정되었고, Google에서 Kotlin 사용을 권장하고 있다(최근 android 예제에아예 JAVA 언어로 된 예제가 없는 경우도 있다) 2) Java에서 Asynctask가 없어졌고, kotlin에서 Coroutine을 사용하여 더 쉽고 간결하게 작업할 수 있다 3) 변수가 NullSafty한지 아닌지를 사용자가 지정하여 예외를 미연에 방지할 수 있다 4) Java와 Kotlin언어 호환 가능 function Unit은 return value가 없음을 의미한다. Unit을 생략해도 된다 $연산자를 통해 따옴표 안에 메시지를 출력할 수 있다. 또 ret..
Setting String format in Android strings.xml에서 string 추가 StringFormatteExample %d번째 입니다 %s 버튼 입니다 %d %%입니다 %d$달러 입니다 MainActivity에서 format에 대한 값 지정 후 출력 Resources res = getResources(); String test_format_num = String.format(res.getString(R.string.test_format_num), 144); String test_format_string = String.format(res.getString(R.string.test_format_string), "확인"); String test_format_percent = Strin..
Internal error in Firestore (0.6.6-dev) 이미지를 firestorage에 올릴 때 해당 에러가 발생하면서 앱이 강제 종료 되었다 stack over flow나 여러곳을 찾았지만 원인을 알 수 없었다 해당 프로젝트는 instagram 클론 프로젝트 인강을 따라하고 있는 중이었다. 그래서 gradle에서 포함한 라이브러리를 강의와 똑같이 만들었다 com.google.code.gson:gson:2.8.6 com.google.http-client:google-http-client:1.34.0 com.google.http-client:google-http-client-android:1.34.0 com.google.http-client:google-http-client-gson:1.3..
Animation simple example in Android Android Animation 예제(애니메이션 방식) 00~03.png file drop into drawable folder Add animation-list file in drawable folder write animation image list option android:oneshot="true" : if finished animation, it would stop add Code in activity_main.xml add Code in MainActivityImageView testImage = (ImageView)findViewById(R.id.testAnimation); AnimationDrawable animationDra..