This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.ai36 | |
import androidx.compose.ui.test.junit4.createAndroidComposeRule | |
import androidx.compose.ui.test.onNodeWithTag | |
import androidx.compose.ui.test.performClick | |
import androidx.compose.ui.test.performTextInput | |
import androidx.test.ext.junit.runners.AndroidJUnit4 | |
import com.example.ai36.view.LoginActivity | |
import org.junit.Rule | |
import org.junit.Test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.ai36 | |
import com.example.ai36.repository.AuthRepoImpl | |
import com.example.ai36.repository.UserRepositoryImpl | |
import com.google.android.gms.tasks.OnCompleteListener | |
import com.google.android.gms.tasks.Task | |
import com.google.firebase.auth.AuthResult | |
import com.google.firebase.auth.FirebaseAuth | |
import junit.framework.TestCase.assertEquals | |
import org.junit.Before |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.c36b.view | |
import android.app.Activity | |
import android.net.Uri | |
import android.os.Bundle | |
import android.util.Log | |
import android.widget.Toast | |
import androidx.activity.ComponentActivity | |
import androidx.activity.compose.setContent | |
import androidx.activity.enableEdgeToEdge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.c36b.view | |
import android.app.Activity | |
import android.os.Bundle | |
import androidx.activity.ComponentActivity | |
import androidx.activity.compose.setContent | |
import androidx.activity.enableEdgeToEdge | |
import androidx.compose.foundation.layout.Column | |
import androidx.compose.foundation.layout.fillMaxSize | |
import androidx.compose.foundation.layout.padding |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
topBar = { | |
TopAppBar( | |
colors = TopAppBarDefaults.topAppBarColors( | |
containerColor = Color.Magenta, | |
titleContentColor = Color.Yellow, | |
navigationIconContentColor = Color.White | |
), | |
title = { | |
Text("Dashboard") | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.c36b | |
import android.os.Bundle | |
import androidx.activity.ComponentActivity | |
import androidx.activity.compose.setContent | |
import androidx.activity.enableEdgeToEdge | |
import androidx.compose.foundation.Image | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.border | |
import androidx.compose.foundation.horizontalScroll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.c36b | |
import androidx.compose.foundation.layout.Column | |
import androidx.compose.material3.AlertDialog | |
import androidx.compose.material3.Button | |
import androidx.compose.material3.Text | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.getValue | |
import androidx.compose.runtime.mutableStateOf | |
import androidx.compose.runtime.remember |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun body(){ | |
var expanded by remember { mutableStateOf(false) } | |
var selectedOptionText by remember { mutableStateOf("Select Option") } | |
val options = listOf("Option 1", "Option 2", "Option 3") | |
var textFieldSize by remember { mutableStateOf(Size.Zero) } // to capture textfield size | |
Column{ | |
Box( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.a35b_crud.adapter | |
import android.content.Context | |
import android.content.Intent | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import android.widget.ImageView | |
import android.widget.ProgressBar | |
import android.widget.TextView |
NewerOlder