Add Page icon
This commit is contained in:
2
.idea/deploymentTargetSelector.xml
generated
2
.idea/deploymentTargetSelector.xml
generated
@@ -4,7 +4,7 @@
|
||||
<selectionStates>
|
||||
<SelectionState runConfigName="app">
|
||||
<option name="selectionMode" value="DROPDOWN" />
|
||||
<DropdownSelection timestamp="2024-06-21T14:48:36.760041Z">
|
||||
<DropdownSelection timestamp="2024-06-21T20:13:00.862985Z">
|
||||
<Target type="DEFAULT_BOOT">
|
||||
<handle>
|
||||
<DeviceId pluginId="PhysicalDevice" identifier="serial=R5CX21KR1NR" />
|
||||
|
||||
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
47
app/src/main/java/com/aiosman/riderpro/AddPage.kt
Normal file
47
app/src/main/java/com/aiosman/riderpro/AddPage.kt
Normal file
@@ -0,0 +1,47 @@
|
||||
package com.aiosman.riderpro
|
||||
|
||||
import androidx.annotation.DrawableRes
|
||||
import androidx.compose.foundation.Image
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.border
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.LocationOn
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.focus.focusModifier
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.res.painterResource
|
||||
import androidx.compose.ui.text.TextStyle
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
|
||||
@Composable
|
||||
fun AddPage(){
|
||||
Column(modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.background(Color.Black)) {
|
||||
AddBtn(icon = R.drawable.rider_pro_icon_rider_share, text = "Rider Share")
|
||||
AddBtn(icon = R.drawable.rider_pro_location_create, text = "Location Create")
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun AddBtn(@DrawableRes icon: Int, text: String){
|
||||
Row (modifier = Modifier
|
||||
.fillMaxWidth().padding(24.dp),
|
||||
verticalAlignment = Alignment.CenterVertically){
|
||||
Image(
|
||||
modifier = Modifier.size(40.dp),
|
||||
painter = painterResource(id = icon), contentDescription = null)
|
||||
Text(modifier = Modifier.padding(start = 24.dp),text = text, color = Color.White,fontSize = 22.sp, style = TextStyle(fontWeight = FontWeight.Bold))
|
||||
}
|
||||
}
|
||||
@@ -183,11 +183,13 @@ fun Street(){
|
||||
@Composable
|
||||
fun Add(){
|
||||
Column (
|
||||
modifier = Modifier.fillMaxSize().background(Color.Black),
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.background(Color.Black),
|
||||
verticalArrangement = Arrangement.Center,
|
||||
horizontalAlignment = Alignment.CenterHorizontally
|
||||
){
|
||||
|
||||
AddPage()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
12
app/src/main/res/drawable/rider_pro_camera.xml
Normal file
12
app/src/main/res/drawable/rider_pro_camera.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="32dp"
|
||||
android:height="32dp"
|
||||
android:viewportWidth="32"
|
||||
android:viewportHeight="32">
|
||||
<path
|
||||
android:pathData="M19.636,5.333L22.061,8.889L26.909,8.889C28.248,8.889 29.333,9.95 29.333,11.259L29.333,24.296C29.333,25.605 28.248,26.667 26.909,26.667L5.091,26.667C3.752,26.667 2.667,25.605 2.667,24.296L2.667,11.259C2.667,9.95 3.752,8.889 5.091,8.889L9.939,8.889L12.364,5.333L19.636,5.333ZM16,11.232C12.659,11.232 9.939,13.891 9.939,17.185C9.939,20.479 12.659,23.138 16,23.138C19.341,23.138 22.061,20.479 22.061,17.185C22.061,13.891 19.341,11.232 16,11.232ZM16,13.657C18.014,13.657 19.636,15.243 19.636,17.185C19.636,19.128 18.014,20.714 16,20.714C13.986,20.714 12.364,19.128 12.364,17.185C12.364,15.243 13.986,13.657 16,13.657ZM25.333,12C24.597,12 24,12.597 24,13.333C24,14.07 24.597,14.667 25.333,14.667C26.07,14.667 26.667,14.07 26.667,13.333C26.667,12.597 26.07,12 25.333,12Z"
|
||||
android:strokeWidth="1"
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="#00000000"/>
|
||||
</vector>
|
||||
BIN
app/src/main/res/drawable/rider_pro_icon_rider_share.png
Normal file
BIN
app/src/main/res/drawable/rider_pro_icon_rider_share.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
app/src/main/res/drawable/rider_pro_location_create.png
Normal file
BIN
app/src/main/res/drawable/rider_pro_location_create.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user