일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- high order function
- binding adapter
- 구분선
- 코딜리티
- 뷰변경 감지
- 스와이프
- 고차함수
- searchview
- recyclerview
- espresso
- 테마 아이콘
- Error:Execution failed for task ':app:mergeDebugResources'
- IntentTestRule
- 재사용
- 안드로이드
- Android
- LayoutManger
- fragment
- ui test
- 안드로이드13
- 안드로이드개발레벨업교과서
- 코틀린
- 생명주기
- 안드로이드스튜디오
- Fragment 수동 추가
- 리사이클러뷰
- viewholder
- adapter
- Fragment에서 Activity의 함수 사용하기
- ActivityTestRule
- Today
- Total
목록분류 전체보기 (241)
룬아님의 취중코딩
2019/08/16 - [개발/안드로이드 개발 레벨업 교과서] - 2. 안드로이드 개발 레벨업 교과서 패딩과 마진 패딩으로 지정한 간격은 배경색으로 칠해지고, 마진으로 지정된 가격은 공백이 된다. 패딩은 뷰 크기에 포함되지만 마진은 포함되지 않는다. 그러므로 마진은 뷰 요소 사이의 거리를 나타낸다고 생각하면 이해하기 쉽다. 중첩과 재사용을 위한 xml 테그 include, viewStub, merge를 그때 그때 필요할 때 사용한다. include 공통적으로 사용되는 뷰(툴바 같은)를 재활용하여 유지보수를 도와준다. viewStub 자주 사용하지 않은 뷰를 그릴때 지정해 주면 불필요하게 레이아웃을 그릴 필요가 없어 성능 개선에 도움이 된다. merge 레이아웃의 중첩을 막아 성능을 향상시키기 위해 사용되..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/dvro7V/btqxwEk6I5B/qCiHNp7a0yRlaDyZGEoXo0/img.png)
앱을 제작할 때에 로딩 다이얼로그 같은 것들은 거의 모든 화면에서 네트워크 통신 중에 사용됩니다. 저는 Koin으로 의존성을 주입하고 dialog를 사용하려고 하였습니다. Application을 상속받아 startKoin을 선언하고 startKoin { androidLogger() androidContext(this@MyApplication) modules(module) } 매니페스트의 application name도 바꿔줍니다 AppCompatDialog(context) .apply { setCancelable(false) window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT)) setContentView(R.layout.dialog_loadin..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/vNWqt/btqxu4SjZfz/AbxZLkCluQUIrxi0KMZSq0/img.png)
PassingCars A non-empty array A consisting of N integers is given. The consecutive elements of array A represent consecutive cars on a road. Array A contains only 0s and/or 1s: 0 represents a car traveling east, 1 represents a car traveling west. The goal is to count passing cars. We say that a pair of cars (P, Q), where 0 ≤ P < Q < N, is passing when P is traveling to the east and Q is travelin..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/7QN3P/btqxyuBA178/kZzvsSfKkShdI6PskPWdm0/img.png)
MaxProductOfThree A non-empty array A consisting of N integers is given. The product of triplet (P, Q, R) equates to A[P] * A[Q] * A[R] (0 ≤ P < Q < R < N). For example, array A such that: A[0] = -3 A[1] = 1 A[2] = 2 A[3] = -2 A[4] = 5 A[5] = 6 contains the following example triplets: (0, 1, 2), product is −3 * 1 * 2 = −6 (1, 2, 4), product is 1 * 2 * 5 = 10 (2, 4, 5), product is 2 * 5 * 6 = 60 ..