Android/Android Kotlin

1. 예제 (1) TowWeeFirstEx1 class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { } } } //2주차 1번째수업 실습1 @Composable fun DeveloperTypeSurvey() { val developers =listOf( Developer(R.string.developer_type_android), Developer(R.string.developer_type_ios), Developer(R.string.developer_type_web), Developer(R.string...
1. 예제 (1) OneWeekSecondEx1 class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { OneWeekSecondEx1Theme { // A surface container using the 'background' color from the theme Surface( modifier = Modifier.fillMaxSize(), color = MaterialTheme.colorScheme.background ) { } } } } } @Composable fun LikeButton(){ But..
1. 예제 (1) OneWeekFirstEx1 class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { UserGuidePopupPreview() } } } @Preview @Composable fun UserGuidePopupPreview(){ UserGuidePopup() } @Composable fun UserGuidePopup(){ Row() { Button(onClick = { /*TODO*/ }, modifier = Modifier.weight(1f)) { Text(text = "취소") } Bu..
1. orderByChild와 equalTo Repo.kt fun getCommentData(cafeName : String) : LiveData { val mutableData = MutableLiveData() val database = Firebase.database("https://coffeezoo-30c55-default-rtdb.asia-southeast1.firebasedatabase.app/") val myRef = database.getReference("ReviewData").orderByChild("cafeName").equalTo(cafeName) myRef.addValueEventListener(object : ValueEventListener { val listData : Mut..
Bell91
'Android/Android Kotlin' 카테고리의 글 목록 (2 Page)