Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
19 changes: 15 additions & 4 deletions app/src/main/java/com/punksoft/practiceproject1/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ 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.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Scaffold
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview
import com.punksoft.practiceproject1.ui.theme.PracticeProject1Theme

Expand All @@ -32,10 +36,17 @@ class MainActivity : ComponentActivity() {

@Composable
fun Greeting(name: String, modifier: Modifier = Modifier) {
Text(
text = "Hello $name!",
modifier = modifier
)
Column(modifier = modifier, horizontalAlignment = Alignment.CenterHorizontally) {
Text(
text = "Hello"
)
Text(
text = "Welcome to the best Android App"
)
Image(
painter = painterResource(R.drawable.ic_app), contentDescription = "Logo"
)
}
}

@Preview(showBackground = true)
Expand Down
Binary file added app/src/main/res/drawable/ic_app.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.