목록2017/12/10 (2)
woong's
Android Kotlin VO 사용하기 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950//JAVApublic class UserVO { private Long id; private Long userName; private Long fullName; private Long profilePicture; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getUserName() { return userName; } public void setUserName(Long userName..
Android Kotlin When 사용하기 코틀린의 when 이라는 예약어를 통해서 다중 if 문 , switch 을 대체 할수 있습니다.사용방법은 간단하고 명확합니다. 12345678910111213141516171819202122232425 /** * 프래그먼트 변경 */ private fun replaceFragments(position: Int) { supportFragmentManager.beginTransaction().apply { when (position) { 0 -> { replace(R.id.frameFragment, followFragment) } 1 -> { replace(R.id.frameFragment, unFollowFragment) } 2 -> { replace(R.id...