본문 바로가기

분류 전체보기

(386)
[Android][DialogFragment] Rounded Corner + 너비 값 지정 https://dvlv.tistory.com/135 [Android] Custom DialogFragment 좌우 너비 꽉 차게 90% 90% % 조절해서 style에 넣으면 됨. (style 코드 참고) onCreate에 style을 지정해주세요. override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setStyle(STYLE_NORMAL, R.style.ProfileNameEditTextDialogSt dvlv.tistory.com https://stackoverflow.com/a/62432311 How to make custom dialog with rounded corners in android..
[Android][Animation] 2초마다 깜빡이는 애니메이션. 초간단 구현 https://developer.android.com/develop/ui/views/animations/prop-animation#choreography
[Android] Swipe 제스쳐 감지 CustomView GestureDetector 이용 https://stackoverflow.com/a/19506010 Android: How to handle right to left swipe gestures I want my app to recognize when a user swipes from right to left on the phone screen. How to do this? stackoverflow.com GestureDetector의 onFling()이 호출되지 않을 경우 https://stackoverflow.com/a/17833241 onfling() not being called for some reason I'm trying to implement gesture in my app and for s..
[Android][TextView] 줄 높이. lineHeight, lineSpacingExtra, lineSpacingMultiplier https://stackoverflow.com/a/54197979 Android lineHeight vs lineSpacingExtra can I know what is the difference between lineHeight and lineSpacingExtra in android xml. I tried to compare both, but I got the different result (I need the lineHeight function, however it is only stackoverflow.com lineHeight https://developer.android.com/reference/android/widget/TextView#attr_android:lineHeight TextVie..
[Android] RecyclerView 하단 패딩에 "android:clipToPadding" 자꾸 까먹어서 기록함. https://woochan-dev.tistory.com/25 RecyclerView 상단과 하단에 padding 옵션 (android:clipToPadding ) RecyclerView를 다룰때 padding을 그냥 주게되면 스크롤시 아래처럼 padding 공간만큼 가려지게 된다. 하지만 만약 원하는 요구사항이 RecyclerView 내부에서의 padding이고 스크롤시에는 padding이 없는 것이 woochan-dev.tistory.com
[Kotlin] 행렬의 곱 https://ko.wikipedia.org/wiki/%ED%96%89%EB%A0%AC_%EA%B3%B1%EC%85%88 행렬 곱셈 - 위키백과, 우리 모두의 백과사전 위키백과, 우리 모두의 백과사전. 행렬 곱셈을 위해선 첫째 행렬의 열 갯수와 둘째 행렬의 행 갯수가 동일해야한다. 곱셈의 결과 새롭게 만들어진 행렬은 첫째 행렬의 행 갯수와 둘째 행렬의 열 ko.wikipedia.org 행렬 A는 a x b 행렬, 행렬 B는 b x c행렬이라고 할 때, 행렬 A와 행렬 B의 곱으로 나온 행렬 C의 원소는 다음과 같다. fun matrixMultiply(arr1: Array, arr2: Array): Array { val (m1, m2) = if (arr1[0].size == arr2.size) { arr1..
[Kotlin] 최대공약수 & 최소공배수 구하기 최대공약수 GCD(Greatest Common Divisor) 유클리드호제법 이용 fun gcd(num1: Int, num2: Int): Int { return if (num2 == 0) num1 else gcd(num2, num1 % num2) } 최소공배수 LCM(Least Common Multiple) 최소공배수 = 두 자연수의 곱 / 최대공약수 fun lcm(num1: Int, num2: Int): Int { return num1 * num2 / gcd(num1, num2) }
[GIT] 깃 플로우: git-flow & github-flow & gitlab-flow 참고 https://www.hanbit.co.kr/store/books/look.php?p_code=B8463790401 만들면서 배우는 Git+GitHub 입문 Git과 GitHub를 이용한 버전 관리 시스템을 다루는 방법을 배우는 입문서다. 1부는 버전 관리 시스템과 Git 고유의 명령어 중심으로 Git의 기본 개념을 배운다. 그리고 Git 기반의 대표적인 원격 저장 www.hanbit.co.kr git-flow https://nvie.com/posts/a-successful-git-branching-model/ A successful Git branching model In this post I present a Git branching strategy for developing and releas..