Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Commit

Permalink
Added CardView Contact Lists
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxSpins committed Nov 10, 2024
1 parent a380a8b commit ca0610b
Show file tree
Hide file tree
Showing 49 changed files with 67 additions and 240 deletions.
27 changes: 6 additions & 21 deletions .androidide/editor/openedFiles.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,14 @@
"file": "/storage/emulated/0/sakura/app/src/main/java/com/syntaxspin/sakura/MainActivity.kt",
"selection": {
"end": {
"column": 19,
"index": 2634,
"line": 90
"column": 51,
"index": 1722,
"line": 47
},
"start": {
"column": 19,
"index": 2634,
"line": 90
}
}
},
{
"file": "/storage/emulated/0/sakura/app/src/main/java/com/syntaxspin/sakura/ui/theme/Type.kt",
"selection": {
"end": {
"column": 31,
"index": 507,
"line": 12
},
"start": {
"column": 31,
"index": 507,
"line": 12
"column": 51,
"index": 1722,
"line": 47
}
}
}
Expand Down
Binary file modified .gradle/8.9/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/8.9/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/8.9/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/8.9/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/8.9/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
70 changes: 58 additions & 12 deletions app/src/main/java/com/syntaxspin/sakura/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,21 @@ import androidx.compose.foundation.*
import androidx.compose.ui.res.*
import androidx.compose.foundation.shape.*
import androidx.compose.material3.*
import androidx.compose.ui.layout.*

//TextField

//Local Context
import androidx.compose.ui.platform.LocalContext
//Units & Draws
import androidx.compose.ui.draw.clip
import androidx.compose.ui.unit.dp
//LazyComponents
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.items
//icons
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Search
import androidx.compose.material.icons.filled.Home

//Theme
import com.syntaxspin.sakura.ui.theme.ThemeSakura
Expand All @@ -42,6 +45,10 @@ class MainActivity : ComponentActivity() {
Column{ Items()
dividerText("SearchBar (TextField)")
searchBar()
dividerText("Contact Lists")
Listy()
dividerText(" Compose Card ")
PartyCard()
}
}
}
Expand Down Expand Up @@ -73,6 +80,7 @@ fun Items(){
modifier = Modifier
.size(50.dp)
.clip(CircleShape)

)

Spacer(modifier = Modifier .width(8.dp) .padding(top = 8.dp))
Expand Down Expand Up @@ -118,18 +126,56 @@ onValueChange = {},


}


/* Will Learn it Later
@Composable
fun Listify(itm : List<itm>){
LazyColumn{
items(itm){ itm ->
Items(itm)
}
}
fun Listy(){
LazyRow(modifier = Modifier.padding(8.dp)) {
items(6){item ->
Row(horizontalArrangement = Arrangement.spacedBy(16.dp)){
storyItem("Jensen Ackles" ,R.drawable.jea)
storyItem("Jenna Ortega" ,R.drawable.jo)
storyItem("Aquiles Trindade" ,R.drawable.at)
storyItem("Felipe Teixeira" ,R.drawable.ft)
storyItem("Rohit Kushvaha" ,R.drawable.rk)
storyItem("Vivek" ,R.drawable.vv)
}
}
}
}
@Composable
fun storyItem(text:String ,icon:Int ){
Column(horizontalAlignment= Alignment.CenterHorizontally , modifier = Modifier.padding(8.dp)){
Image(
/* painter = painterResource(
LocalContext.current.resources.getIdentifier(icon, "drawable", LocalContext.current.packageName))*/
painter = painterResource(id = icon),
contentDescription = text ,
contentScale = ContentScale.Crop ,
modifier = Modifier
.size(88.dp)
.clip(CircleShape)

)
Text(
text= text ,
style = MaterialTheme.typography.bodyMedium ,
modifier = Modifier
.paddingFromBaseline(top = 24.dp , bottom = 8.dp)

)
}
}
@Composable
fun PartyCard(){
Card(
modifier = Modifier
.fillMaxWidth()
.padding(8.dp)
.height(100.dp)
){

} */
}

}
}


30 changes: 0 additions & 30 deletions app/src/main/res/drawable-v24/ic_launcher_foreground.xml

This file was deleted.

Binary file added app/src/main/res/drawable/at.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/ft.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
170 changes: 0 additions & 170 deletions app/src/main/res/drawable/ic_launcher_background.xml

This file was deleted.

Binary file added app/src/main/res/drawable/jea.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/jo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/mtrl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/rk.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/vv.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_monochrome"/>
</adaptive-icon>
5 changes: 0 additions & 5 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml

This file was deleted.

Binary file added app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-hdpi/ic_launcher.webp
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
Binary file not shown.
Binary file added app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-mdpi/ic_launcher.webp
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
Binary file not shown.
Binary file added app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-xhdpi/ic_launcher.webp
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
Binary file not shown.
Binary file added app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.

0 comments on commit ca0610b

Please sign in to comment.