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
9b8b9679
Commit
9b8b9679
authored
Oct 23, 2025
by
Amin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create add owner acceptance form screen
parent
ea4c7911
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
309 additions
and
1 deletion
+309
-1
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+3
-0
Issues.java
app/src/main/java/com/example/qms/Issues.java
+7
-1
OwnerAcceptanceForm.java
app/src/main/java/com/example/qms/OwnerAcceptanceForm.java
+36
-0
file.png
app/src/main/res/drawable/file.png
+0
-0
activity_issues.xml
app/src/main/res/layout/activity_issues.xml
+1
-0
activity_owner_acceptance_form.xml
app/src/main/res/layout/activity_owner_acceptance_form.xml
+261
-0
colors.xml
app/src/main/res/values/colors.xml
+1
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
9b8b9679
...
...
@@ -12,6 +12,9 @@
android:supportsRtl=
"true"
android:theme=
"@style/Theme.Qms"
>
<activity
android:name=
".OwnerAcceptanceForm"
android:exported=
"false"
/>
<activity
android:name=
".AddInfo"
android:exported=
"false"
/>
<activity
...
...
app/src/main/java/com/example/qms/Issues.java
View file @
9b8b9679
...
...
@@ -13,7 +13,7 @@ import androidx.core.view.WindowInsetsCompat;
public
class
Issues
extends
AppCompatActivity
{
private
ImageButton
withdrawIssueIcon
,
back_button
,
filter_issue
;
private
ImageButton
withdrawIssueIcon
,
back_button
,
filter_issue
,
ownerAcceptanceFormIcon
;
private
LinearLayout
issueClick
;
...
...
@@ -33,6 +33,7 @@ public class Issues extends AppCompatActivity {
withdrawIssueIcon
=
findViewById
(
R
.
id
.
withdraw_issue_icon
);
back_button
=
findViewById
(
R
.
id
.
backButton
);
filter_issue
=
findViewById
(
R
.
id
.
filterIssue
);
ownerAcceptanceFormIcon
=
findViewById
(
R
.
id
.
owner_acceptance_form_icon
);
issueClick
=
findViewById
(
R
.
id
.
issues_click
);
...
...
@@ -52,6 +53,11 @@ public class Issues extends AppCompatActivity {
startActivity
(
intent
);
});
ownerAcceptanceFormIcon
.
setOnClickListener
(
v
->
{
Intent
intent
=
new
Intent
(
Issues
.
this
,
OwnerAcceptanceForm
.
class
);
startActivity
(
intent
);
});
back_button
.
setOnClickListener
(
v
->
{
onBackPressed
();
});
...
...
app/src/main/java/com/example/qms/OwnerAcceptanceForm.java
0 → 100644
View file @
9b8b9679
package
com
.
example
.
qms
;
import
android.os.Bundle
;
import
android.widget.ImageButton
;
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
OwnerAcceptanceForm
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
EdgeToEdge
.
enable
(
this
);
setContentView
(
R
.
layout
.
activity_owner_acceptance_form
);
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
;
});
ImageButton
backButton
=
findViewById
(
R
.
id
.
back_button
);
backButton
.
setOnClickListener
(
v
->
{
onBackPressed
();
});
}
}
\ No newline at end of file
app/src/main/res/drawable/file.png
0 → 100644
View file @
9b8b9679
637 Bytes
app/src/main/res/layout/activity_issues.xml
View file @
9b8b9679
...
...
@@ -67,6 +67,7 @@
android:src=
"@drawable/check_list"
/>
<ImageButton
android:id=
"@+id/owner_acceptance_form_icon"
android:layout_width=
"24dp"
android:layout_height=
"24dp"
android:background=
"@android:color/transparent"
...
...
app/src/main/res/layout/activity_owner_acceptance_form.xml
0 → 100644
View file @
9b8b9679
<?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=
".OwnerAcceptanceForm"
>
<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/back_button"
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=
"Owner Acceptance Form"
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"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<ScrollView
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:background=
"@color/light_grey"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/top_nav"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"21dp"
android:orientation=
"vertical"
android:paddingVertical=
"21dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"15dp"
android:text=
"Submitted on 02 Jan 2025"
android:textSize=
"19sp"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/card_border_issue"
android:orientation=
"vertical"
android:padding=
"15dp"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"23dp"
android:layout_height=
"27dp"
android:layout_marginEnd=
"15dp"
android:src=
"@drawable/file"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"ASH1-L011-N826"
android:textColor=
"@color/primary"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"10dp"
android:text=
"Total Issue(s):"
android:textColor=
"@color/grey"
android:textSize=
"20sp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"5"
android:textSize=
"19sp"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<Button
android:layout_width=
"139dp"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"10dp"
android:backgroundTint=
"@color/green"
android:clickable=
"true"
android:elevation=
"20dp"
android:focusable=
"true"
android:text=
"2 Accepted"
android:textColor=
"@android:color/white"
android:textSize=
"17sp"
app:cornerRadius=
"40dp"
/>
<Button
android:layout_width=
"139dp"
android:layout_height=
"wrap_content"
android:backgroundTint=
"@color/red"
android:clickable=
"true"
android:elevation=
"20dp"
android:focusable=
"true"
android:text=
"2 Rejected"
android:textColor=
"@android:color/white"
android:textSize=
"17sp"
app:cornerRadius=
"40dp"
/>
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"15dp"
android:text=
"Submitted on 03 Jan 2025"
android:textSize=
"19sp"
android:layout_marginTop=
"20dp"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/card_border_issue"
android:orientation=
"vertical"
android:padding=
"15dp"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"23dp"
android:layout_height=
"27dp"
android:layout_marginEnd=
"15dp"
android:src=
"@drawable/file"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"ASH1-L011-N826"
android:textColor=
"@color/primary"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"10dp"
android:text=
"Total Issue(s):"
android:textColor=
"@color/grey"
android:textSize=
"20sp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"5"
android:textSize=
"19sp"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<Button
android:layout_width=
"139dp"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"10dp"
android:backgroundTint=
"@color/green"
android:clickable=
"true"
android:elevation=
"20dp"
android:focusable=
"true"
android:text=
"9 Accepted"
android:textColor=
"@android:color/white"
android:textSize=
"17sp"
app:cornerRadius=
"40dp"
/>
<Button
android:layout_width=
"139dp"
android:layout_height=
"wrap_content"
android:backgroundTint=
"@color/red"
android:clickable=
"true"
android:elevation=
"20dp"
android:focusable=
"true"
android:text=
"3 Rejected"
android:textColor=
"@android:color/white"
android:textSize=
"17sp"
app:cornerRadius=
"40dp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/values/colors.xml
View file @
9b8b9679
...
...
@@ -16,6 +16,7 @@
<color
name=
"blue"
>
#2952D6
</color>
<color
name=
"red"
>
#F14915
</color>
<color
name=
"green"
>
#008000
</color>
...
...
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