
[Android Studio]이중 스크롤 (스크롤 안에 리사이클러뷰) 터치 대응 Double scroll view touch, scrollview in horizontal recyclerview 1. 화면 구성 NestedScrollView 안의 Horizontal 형태의 recyclerview 속성에 nestedScrollingEnabled="false"를 추가한다.
[Android Studio]Glide와 Picasso 라이브러리 이미지 주소로 불러오기 library image load to uri 1. Glide (최신버전 해당 라이브러리 사이트 참고) https://github.com/bumptech/glide bumptech/glide An image loading and caching library for Android focused on smooth scrolling - bumptech/glide github.com 1-1 build.gradle 작성 dependencies { implementation 'com.github.bumptech.glide:glide:4.12.0' annotationProcessor 'com.github.bumptech.glid..
[Android Studio]Response JSON 결과값 받기 코틀린 return response kotlin open fun response_ui(response: Response){ //JSON 형태의 문자열 타입 val str = response.body()!!.string() as String try{ val jsonArray = JSONArray(str) for (i in 0 until jsonArray.length()){ val jsonObject = jsonArray.getJSONObject(i) Log.d("field value => ",jsonObject.get("filed_name").toString()) } }catch (e: Exception){ e.printStackTrace(..
[Android Studio] 함수(메서드)를 매개변수로 사용하기 코틀린 function(method) to parameter kotlin //메인 함수에서 호출 fun main(){ method_to_parameter(context, ::showLog) } //이후 실행시킬 함수를 파라미터로 받음 fun method_to_parameter(context: Context, method: (response: String) -> Unit){ method("example") } //결과 함수 fun showLog(str: String){ val TAG = "showLog" Log.d(TAG, str) }
[Android Studio] 코틀린에서 static 변수 사용하기 static variable to kotlin 1. Java -> Kotlin public class DM{ public static int index = 100; } public class CM{ private int number = DM.index; } class DM { companion object { val index = 100 } } class CM { val number = DM.index } companion object는 자바의 static과 완전 동일한 것은 아니지만 비슷한 형태를 가지고있다. 필요 시에 자바의 static과 같이 사용할 수 있다
[Android Studio] 코틀린 클래스 오버로딩 커스텀뷰 Class Overloading Constructor Kotlin 1. Java -> Kotlin public class Pen extends View{ public Pen(Context context) { super(context); init(context); } public Pen(Context context, @Nullable AttributeSet attrs) { super(context, attrs); init(context); } public Pen(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr);..
[Android studio] 나만의 커스텀뷰 만들기 코틀린 Create CustomView Kotlin 1. res -> values -> atts.xml 생성 후 속성 데이터 작성 2. res -> layout -> layout_customview.xml 커스텀뷰 레이아웃 작성 3. CustomView 클래스 작성 open class CustomView(context: Context, attrs: AttributeSet) : ConstraintLayout(context, attrs){ private var textTitle: TextView private var textContent: TextView init { val v = View.inflate(context, R.layout.layout_cus..
- Total
- Today
- Yesterday
- 깃랩에서 깃허브로
- non-zero exit code detected
- 라이브러리 라이센스
- 깃허브에서 깃랩으로
- 코틀린
- gitlab mirror
- github mirror
- 깃허브 잔디 옮기기
- react native 오픈소스 라이선스
- 안드로이드 해시키
- amplify next.js
- react native oss
- next.js ssr deploy
- react.js useEffect
- rn 오픈소스 라이센스
- 깃랩 잔디 옮기기
- next.js useEffect
- rn oss
- nextjs ssr deploy
- 커밋 이메일 변경
- Build failed because of webpack errors
- 안드로이드 스튜디오 해시키
- amplify build error
- kakao api notworking
- Android Studio
- 카카오 해시키
- 안드로이드 스튜디오
- room error
- next useEffect
- kotlin
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |