Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MPIP_2024
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mila Dodevska
MPIP_2024
Merge requests
!3
Intents AV4 - removed extra files
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Intents AV4 - removed extra files
master
into
main
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Mila Dodevska
requested to merge
master
into
main
6 months ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
de8f33f8
1 commit,
6 months ago
2 files
+
0
−
69
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
app/src/main/java/com/example/mpip_av3/NewActivity.kt deleted
100644 → 0
+
0
−
38
Options
package
com.example.mpip_av3
import
android.content.Context
import
android.graphics.Color
import
android.os.Bundle
import
android.widget.Button
import
android.widget.TextView
import
androidx.activity.enableEdgeToEdge
import
androidx.appcompat.app.AppCompatActivity
import
androidx.core.content.ContextCompat
//import android.R.color as Color
import
androidx.core.view.ViewCompat
import
androidx.core.view.WindowInsetsCompat
class
NewActivity
:
AppCompatActivity
()
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
enableEdgeToEdge
()
setContentView
(
R
.
layout
.
activity_new
)
val
btnView
:
Button
=
findViewById
(
R
.
id
.
button
)
val
textView
:
TextView
=
findViewById
(
R
.
id
.
text
)
val
favoriteColor
:
Int
=
resources
.
getColor
(
R
.
color
.
white
)
val
myString
:
String
=
ContextCompat
.
getColor
(
this
,
R
.
color
.
white
).
toString
()
btnView
.
setOnClickListener
()
{
textView
.
text
=
myString
}
btnView
.
setPadding
(
10
,
10
,
10
,
10
)
// ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
// val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
// v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
// insets
// }
}
}
\ No newline at end of file
Loading