Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
android_20250623
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
android_20250623
Commits
3972f7cc
Commit
3972f7cc
authored
Jun 23, 2025
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ostatnie zabawy w Projekt1 i zamkniecie tego projektu
parent
3876dcc6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
4 deletions
+55
-4
androidTestResultsUserPreferences.xml
Projekt1/.idea/androidTestResultsUserPreferences.xml
+23
-0
deploymentTargetSelector.xml
Projekt1/.idea/deploymentTargetSelector.xml
+7
-0
MainActivity.kt
...t1/app/src/main/java/com/example/projekt1/MainActivity.kt
+25
-4
No files found.
Projekt1/.idea/androidTestResultsUserPreferences.xml
0 → 100644
View file @
3972f7cc
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"AndroidTestResultsUserPreferences"
>
<option
name=
"androidTestResultsTableState"
>
<map>
<entry
key=
"1379792998"
>
<value>
<AndroidTestResultsTableState>
<option
name=
"preferredColumnWidths"
>
<map>
<entry
key=
"Duration"
value=
"90"
/>
<entry
key=
"Medium_Phone"
value=
"120"
/>
<entry
key=
"Tests"
value=
"360"
/>
</map>
</option>
</AndroidTestResultsTableState>
</value>
</entry>
</map>
</option>
</component>
</project>
\ No newline at end of file
Projekt1/.idea/deploymentTargetSelector.xml
View file @
3972f7cc
...
@@ -5,6 +5,12 @@
...
@@ -5,6 +5,12 @@
<SelectionState
runConfigName=
"app"
>
<SelectionState
runConfigName=
"app"
>
<option
name=
"selectionMode"
value=
"DROPDOWN"
/>
<option
name=
"selectionMode"
value=
"DROPDOWN"
/>
</SelectionState>
</SelectionState>
<SelectionState
runConfigName=
"GreetingPreview"
>
<option
name=
"selectionMode"
value=
"DROPDOWN"
/>
</SelectionState>
<SelectionState
runConfigName=
"ExampleInstrumentedTest"
>
<option
name=
"selectionMode"
value=
"DROPDOWN"
/>
</SelectionState>
</selectionStates>
</selectionStates>
</component>
</component>
</project>
</project>
\ No newline at end of file
Projekt1/app/src/main/java/com/example/projekt1/MainActivity.kt
View file @
3972f7cc
...
@@ -4,11 +4,18 @@ import android.os.Bundle
...
@@ -4,11 +4,18 @@ import android.os.Bundle
import
androidx.activity.ComponentActivity
import
androidx.activity.ComponentActivity
import
androidx.activity.compose.setContent
import
androidx.activity.compose.setContent
import
androidx.activity.enableEdgeToEdge
import
androidx.activity.enableEdgeToEdge
import
androidx.compose.foundation.layout.Column
import
androidx.compose.foundation.layout.Row
import
androidx.compose.foundation.layout.fillMaxSize
import
androidx.compose.foundation.layout.fillMaxSize
import
androidx.compose.foundation.layout.padding
import
androidx.compose.foundation.layout.padding
import
androidx.compose.material.icons.Icons
import
androidx.compose.material.icons.filled.Check
import
androidx.compose.material.icons.filled.Favorite
import
androidx.compose.material3.Icon
import
androidx.compose.material3.Scaffold
import
androidx.compose.material3.Scaffold
import
androidx.compose.material3.Text
import
androidx.compose.material3.Text
import
androidx.compose.runtime.Composable
import
androidx.compose.runtime.Composable
import
androidx.compose.ui.Alignment
import
androidx.compose.ui.Modifier
import
androidx.compose.ui.Modifier
import
androidx.compose.ui.tooling.preview.Preview
import
androidx.compose.ui.tooling.preview.Preview
import
com.example.projekt1.ui.theme.Projekt1Theme
import
com.example.projekt1.ui.theme.Projekt1Theme
...
@@ -32,10 +39,24 @@ class MainActivity : ComponentActivity() {
...
@@ -32,10 +39,24 @@ class MainActivity : ComponentActivity() {
@Composable
@Composable
fun
Greeting
(
name
:
String
,
modifier
:
Modifier
=
Modifier
)
{
fun
Greeting
(
name
:
String
,
modifier
:
Modifier
=
Modifier
)
{
Text
(
Column
{
text
=
"Hello $name!"
,
Text
(
modifier
=
modifier
text
=
"Hello $name!"
,
)
modifier
=
modifier
)
Row
(
verticalAlignment
=
Alignment
.
CenterVertically
)
{
Text
(
text
=
"Cześć $name!"
,
modifier
=
modifier
)
Icon
(
Icons
.
Filled
.
Favorite
,
contentDescription
=
"Check mark"
)
Text
(
text
=
"Ala ma kota"
,
modifier
=
modifier
)
}
}
}
}
@Preview
(
showBackground
=
true
)
@Preview
(
showBackground
=
true
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment