build.gradle (Project: KotlinProject) allprojects { repositories { google() jcenter() maven { url 'https://jitpack.io' } } } maven { url 'https://jitpack.io' } 추가 build.gradle (Module: app) dependencies { // MPAndroidChart implementation 'com.github.philJay:MPAndroidChart:v3.1.0' } 해당 라이브러리 사용 https://github.com/PhilJay/MPAndroidChart PhilJay/MPAndroidChart A powerful 🚀 Android chart view / grap..
cardview_item.xml MyAdapter.kt package com.jwsoft.kotlinproject import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.recyclerview.widget.RecyclerView class MyAdapter : RecyclerView.Adapter() { inner class MyViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) { private val tvPosition: TextView = itemVie..
MainActivity.kt package com.jwsoft.kotlinproject import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import kotlinx.android.synthetic.main.activity_main.* class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) etJames.requestFocus() // 포커스가 있어야 키보드 노출. } } activ..
build.gradle (Module: app) dependencies { // implementation 'androidx.constraintlayout:constraintlayout:2.0.0-rc1' } activity_main.xml app:constraint_referenced_ids="btnOne, btnTwo, btnThree" app:flow_verticalAlign="center" app:flow_horizontalGap="30dp" app:flow_horizontalStyle="packed" app:flow_horizontalBias="0.2" activity_main.xml android:orientation="vertical" app:constraint_referenced_ids="..
activity_main.xml 컨테이너의 높이를 Wrap Content로 설정하면 어떻게 될까요? activity_main.xml 버튼이 하단에 붙어서 마치 RelativeLayout에서처럼 작용합니다. 제가 바라던 바는 아니네요. RelativeLayout 에서 ConstraintLayout 으로 변경해보면? activity_main.xml activity_main.xml app:layout_constraintHorizontal_bias="0.7" 추가 activity_main.xml activity_main.xml android:layout_height="0dp" 사용 app:layout_constraintDimensionRatio="h,1:1" 사용 activity_main.xml app:layo..
- Total
- Today
- Yesterday
- handler
- Design Pattern
- Intent
- JSONObject
- CoordinatorLayout
- recyclerview
- James Kim
- ViewModel
- 안드로이드
- DataBinding
- Vue.js #Vue.js + javascript
- activity
- coroutine
- Android
- Kotlin
- 혀가 길지 않은 개발자
- View
- java
- fragment
- ViewPager2
- Livedata
- 자바
- JSONArray
- TabLayout
- XML
- 안드로이드 #코틀린 #Android #Kotlin
- ArrayList
- Architecture Pattern
- MVVM
- 코틀린
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |