Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
intern-amin-qms
Project
Project
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
Amin
intern-amin-qms
Commits
ffac96f5
Commit
ffac96f5
authored
Oct 28, 2025
by
Amin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create add issue front ui
parent
985d60f6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
165 additions
and
0 deletions
+165
-0
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+3
-0
AddIssue.java
app/src/main/java/com/example/qms/AddIssue.java
+25
-0
question_mark_icon.png
app/src/main/res/drawable/question_mark_icon.png
+0
-0
activity_add_issue.xml
app/src/main/res/layout/activity_add_issue.xml
+133
-0
colors.xml
app/src/main/res/values/colors.xml
+4
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
ffac96f5
...
...
@@ -12,6 +12,9 @@
android:supportsRtl=
"true"
android:theme=
"@style/Theme.Qms"
>
<activity
android:name=
".AddIssue"
android:exported=
"false"
/>
<activity
android:name=
".UnitLayoutFullscreen"
android:exported=
"false"
/>
<activity
...
...
app/src/main/java/com/example/qms/AddIssue.java
0 → 100644
View file @
ffac96f5
package
com
.
example
.
qms
;
import
android.os.Bundle
;
import
androidx.activity.EdgeToEdge
;
import
androidx.appcompat.app.AppCompatActivity
;
import
androidx.core.graphics.Insets
;
import
androidx.core.view.ViewCompat
;
import
androidx.core.view.WindowInsetsCompat
;
public
class
AddIssue
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
EdgeToEdge
.
enable
(
this
);
setContentView
(
R
.
layout
.
activity_add_issue
);
ViewCompat
.
setOnApplyWindowInsetsListener
(
findViewById
(
R
.
id
.
main
),
(
v
,
insets
)
->
{
Insets
systemBars
=
insets
.
getInsets
(
WindowInsetsCompat
.
Type
.
systemBars
());
v
.
setPadding
(
systemBars
.
left
,
systemBars
.
top
,
systemBars
.
right
,
systemBars
.
bottom
);
return
insets
;
});
}
}
\ No newline at end of file
app/src/main/res/drawable/question_mark_icon.png
0 → 100644
View file @
ffac96f5
469 Bytes
app/src/main/res/layout/activity_add_issue.xml
0 → 100644
View file @
ffac96f5
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/main"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".AddIssue"
android:background=
"@color/light_grey"
>
<LinearLayout
android:id=
"@+id/top_nav"
android:layout_width=
"match_parent"
android:layout_height=
"117dp"
android:background=
"@color/primary"
android:orientation=
"vertical"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
<View
android:layout_width=
"match_parent"
android:layout_height=
"59dp"
/>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"59dp"
>
<ImageButton
android:id=
"@+id/backButton"
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_marginStart=
"16dp"
android:background=
"@null"
android:src=
"@drawable/arrow_left"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/titleText"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Add Issue"
android:textColor=
"@color/white"
android:textSize=
"20sp"
android:textStyle=
"bold"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<ImageButton
android:id=
"@+id/add_info_icon"
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_marginEnd=
"16dp"
android:background=
"@null"
android:src=
"@drawable/question_mark_icon"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:layout_constraintTop_toBottomOf=
"@id/top_nav"
app:layout_constraintStart_toStartOf=
"parent"
android:orientation=
"vertical"
android:background=
"@color/white"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Ashlar, A-3-11"
android:textStyle=
"bold"
android:textSize=
"27sp"
android:padding=
"20dp"
/>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:src=
"@drawable/faciity_layout_big"
android:scaleType=
"centerCrop"
android:layout_marginTop=
"40dp"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
android:background=
"@color/white"
android:padding=
"21dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Select an area to add issue."
android:textSize=
"20sp"
android:layout_marginBottom=
"10dp"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:background=
"@drawable/history_status_badge"
android:backgroundTint=
"@color/yellow_tint"
android:padding=
"15dp"
>
<ImageView
android:layout_width=
"27dp"
android:layout_height=
"27dp"
android:src=
"@drawable/alert_icon"
android:layout_marginEnd=
"15dp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"You are allowed to submit only ONCE for 100 issues this month."
android:textSize=
"19sp"
/>
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/values/colors.xml
View file @
ffac96f5
...
...
@@ -21,6 +21,10 @@
<color
name=
"green"
>
#008000
</color>
<color
name=
"half_green"
>
#4D008000
</color>
<color
name=
"yellow_tint"
>
#FFF7E8
</color>
//border
...
...
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