App/개발

· App/개발
코틀린 코드 import com.google.android.material.bottomnavigation.BottomNavigationView import android.content.Context import android.util.AttributeSet import androidx.core.content.ContextCompat import android.graphics.* class CustomBottomNavigationView : BottomNavigationView { private var mPath: Path = Path() private var mPaint: Paint = Paint() private val CURVE_CIRCLE_RADIUS = 190 / 2 private val mFir..
· App/개발
// 위치 정보를 받아옴 var currentLocation: String = "현재 위치" var mGeocoder: Geocoder = Geocoder(applicationContext, Locale.KOREAN) var mResultList: List? = null val locationProviderClient: FusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this) try { locationProviderClient.lastLocation.addOnSuccessListener { latitude = it.latitude longitude = it.longitude println("1위도: $latitu..
· App/개발
코틀린을 이용한 캘린더 커스텀 뷰 소스 저장 캘린더 어뎁터를 만들어서 LinearLayout을 상속 받은 클래스에 바인딩한다. CalendarAdapter.kt class CalendarAdapter( context: Context, days: ArrayList, eventDays: HashSet, inputMonth: Int ) : ArrayAdapter( context, R.layout.view_calendar, days ) { // for view inflation private val inflater: LayoutInflater = LayoutInflater.from(context) override fun getView( position: Int, view: View?, parent: ViewGr..
Say simple
'App/개발' 카테고리의 글 목록 (4 Page)