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
a8fbd646
Commit
a8fbd646
authored
Oct 21, 2025
by
Amin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create withdraw issue front-ui
parent
2bb31010
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
512 additions
and
10 deletions
+512
-10
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+6
-0
Issues.java
app/src/main/java/com/example/qms/Issues.java
+19
-0
WithdrawIssue.java
app/src/main/java/com/example/qms/WithdrawIssue.java
+25
-0
Withdraw_Issue_Summary.java
...src/main/java/com/example/qms/Withdraw_Issue_Summary.java
+25
-0
activity_issues.xml
app/src/main/res/layout/activity_issues.xml
+12
-10
activity_withdraw_issue.xml
app/src/main/res/layout/activity_withdraw_issue.xml
+414
-0
activity_withdraw_issue_summary.xml
app/src/main/res/layout/activity_withdraw_issue_summary.xml
+11
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
a8fbd646
...
@@ -12,6 +12,12 @@
...
@@ -12,6 +12,12 @@
android:supportsRtl=
"true"
android:supportsRtl=
"true"
android:theme=
"@style/Theme.Qms"
>
android:theme=
"@style/Theme.Qms"
>
<activity
<activity
android:name=
".Withdraw_Issue_Summary"
android:exported=
"false"
/>
<activity
android:name=
".WithdrawIssue"
android:exported=
"false"
/>
<activity
android:name=
".Issues"
android:name=
".Issues"
android:exported=
"false"
/>
android:exported=
"false"
/>
<activity
<activity
...
...
app/src/main/java/com/example/qms/Issues.java
View file @
a8fbd646
package
com
.
example
.
qms
;
package
com
.
example
.
qms
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.widget.ImageButton
;
import
androidx.activity.EdgeToEdge
;
import
androidx.activity.EdgeToEdge
;
import
androidx.appcompat.app.AppCompatActivity
;
import
androidx.appcompat.app.AppCompatActivity
;
...
@@ -10,6 +12,10 @@ import androidx.core.view.WindowInsetsCompat;
...
@@ -10,6 +12,10 @@ import androidx.core.view.WindowInsetsCompat;
public
class
Issues
extends
AppCompatActivity
{
public
class
Issues
extends
AppCompatActivity
{
private
ImageButton
withdrawIssueIcon
,
back_button
;
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
...
@@ -20,5 +26,17 @@ public class Issues extends AppCompatActivity {
...
@@ -20,5 +26,17 @@ public class Issues extends AppCompatActivity {
v
.
setPadding
(
systemBars
.
left
,
systemBars
.
top
,
systemBars
.
right
,
systemBars
.
bottom
);
v
.
setPadding
(
systemBars
.
left
,
systemBars
.
top
,
systemBars
.
right
,
systemBars
.
bottom
);
return
insets
;
return
insets
;
});
});
withdrawIssueIcon
=
findViewById
(
R
.
id
.
withdraw_issue_icon
);
back_button
=
findViewById
(
R
.
id
.
backButton
);
withdrawIssueIcon
.
setOnClickListener
(
v
->
{
Intent
intent
=
new
Intent
(
Issues
.
this
,
WithdrawIssue
.
class
);
startActivity
(
intent
);
});
back_button
.
setOnClickListener
(
v
->
{
onBackPressed
();
});
}
}
}
}
\ No newline at end of file
app/src/main/java/com/example/qms/WithdrawIssue.java
0 → 100644
View file @
a8fbd646
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
WithdrawIssue
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
EdgeToEdge
.
enable
(
this
);
setContentView
(
R
.
layout
.
activity_withdraw_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/java/com/example/qms/Withdraw_Issue_Summary.java
0 → 100644
View file @
a8fbd646
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
Withdraw_Issue_Summary
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
EdgeToEdge
.
enable
(
this
);
setContentView
(
R
.
layout
.
activity_withdraw_issue_summary
);
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/layout/activity_issues.xml
View file @
a8fbd646
...
@@ -57,17 +57,21 @@
...
@@ -57,17 +57,21 @@
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
app:layout_constraintTop_toTopOf=
"parent"
>
<Image
View
<Image
Button
android:id=
"@+id/withdraw_issue_icon"
android:id=
"@+id/withdraw_issue_icon"
android:layout_width=
"
32
dp"
android:layout_width=
"
24
dp"
android:layout_height=
"
32
dp"
android:layout_height=
"
26
dp"
android:layout_marginEnd=
"20dp"
android:layout_marginEnd=
"20dp"
android:src=
"@drawable/check_list"
/>
android:src=
"@drawable/check_list"
android:background=
"@android:color/transparent"
android:scaleType=
"centerInside"
/>
<ImageView
<ImageButton
android:layout_width=
"32dp"
android:layout_width=
"24dp"
android:layout_height=
"32dp"
android:layout_height=
"24dp"
android:src=
"@drawable/profile_tick"
/>
android:src=
"@drawable/profile_tick"
android:background=
"@android:color/transparent"
android:scaleType=
"centerInside"
/>
</LinearLayout>
</LinearLayout>
...
@@ -120,8 +124,6 @@
...
@@ -120,8 +124,6 @@
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<ScrollView
<ScrollView
...
...
app/src/main/res/layout/activity_withdraw_issue.xml
0 → 100644
View file @
a8fbd646
<?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=
".WithdrawIssue"
>
<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=
"Withdraw 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"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<LinearLayout
android:id=
"@+id/mid_bar"
android:layout_width=
"match_parent"
android:layout_height=
"149dp"
android:background=
"@color/black"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/top_nav"
android:orientation=
"vertical"
>
</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/mid_bar"
app:layout_constraintBottom_toTopOf=
"@+id/bottom_bar"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"21dp"
android:orientation=
"vertical"
android:paddingVertical=
"21dp"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<com.google.android.material.checkbox.MaterialCheckBox
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
app:buttonTint=
"@color/primary"
app:useMaterialThemeColors=
"true"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"15dp"
android:background=
"@drawable/card_border_issue"
android:orientation=
"vertical"
android:padding=
"15dp"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"ASH1-L011-N826"
android:textColor=
"@color/primary"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<Button
android:layout_width=
"100dp"
android:layout_height=
"wrap_content"
android:backgroundTint=
"@color/yellow"
android:clickable=
"true"
android:elevation=
"20dp"
android:focusable=
"true"
android:text=
"WIP"
android:textColor=
"@android:color/white"
android:textSize=
"17sp"
app:cornerRadius=
"40dp"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"59dp"
android:layout_height=
"59dp"
android:layout_marginEnd=
"15dp"
android:src=
"@drawable/round_grey"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"5dp"
android:text=
"Bilik Tidur A "
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Created on 03 Jan 2025"
android:textColor=
"@color/grey"
android:textSize=
"19sp"
/>
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingVertical=
"10dp"
android:text=
"All → Sliding Door / Frame → Broken / Scratch"
android:textSize=
"19sp"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<com.google.android.material.checkbox.MaterialCheckBox
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
app:buttonTint=
"@color/primary"
app:useMaterialThemeColors=
"true"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"15dp"
android:background=
"@drawable/card_border_issue"
android:orientation=
"vertical"
android:padding=
"15dp"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"ASH1-L011-N826"
android:textColor=
"@color/primary"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<Button
android:layout_width=
"100dp"
android:layout_height=
"wrap_content"
android:backgroundTint=
"@color/yellow"
android:clickable=
"true"
android:elevation=
"20dp"
android:focusable=
"true"
android:text=
"WIP"
android:textColor=
"@android:color/white"
android:textSize=
"17sp"
app:cornerRadius=
"40dp"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"59dp"
android:layout_height=
"59dp"
android:layout_marginEnd=
"15dp"
android:src=
"@drawable/round_grey"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"5dp"
android:text=
"Bilik Tidur A "
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Created on 03 Jan 2025"
android:textColor=
"@color/grey"
android:textSize=
"19sp"
/>
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingVertical=
"10dp"
android:text=
"All → Sliding Door / Frame → Broken / Scratch"
android:textSize=
"19sp"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<com.google.android.material.checkbox.MaterialCheckBox
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
app:buttonTint=
"@color/primary"
app:useMaterialThemeColors=
"true"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"15dp"
android:background=
"@drawable/card_border_issue"
android:orientation=
"vertical"
android:padding=
"15dp"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:text=
"ASH1-L011-N826"
android:textColor=
"@color/primary"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<Button
android:layout_width=
"100dp"
android:layout_height=
"wrap_content"
android:backgroundTint=
"@color/yellow"
android:clickable=
"true"
android:elevation=
"20dp"
android:focusable=
"true"
android:text=
"WIP"
android:textColor=
"@android:color/white"
android:textSize=
"17sp"
app:cornerRadius=
"40dp"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:orientation=
"horizontal"
>
<ImageView
android:layout_width=
"59dp"
android:layout_height=
"59dp"
android:layout_marginEnd=
"15dp"
android:src=
"@drawable/round_grey"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"5dp"
android:text=
"Bilik Tidur A "
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Created on 03 Jan 2025"
android:textColor=
"@color/grey"
android:textSize=
"19sp"
/>
</LinearLayout>
</LinearLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingVertical=
"10dp"
android:text=
"All → Sliding Door / Frame → Broken / Scratch"
android:textSize=
"19sp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
<LinearLayout
android:id=
"@+id/bottom_bar"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
android:padding=
"20dp"
android:gravity=
"center"
android:background=
"@color/white"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:layout_weight=
"1"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Issue(s) selected:"
android:textSize=
"19sp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"0 / 3"
android:textStyle=
"bold"
android:textSize=
"21sp"
/>
</LinearLayout>
<Button
android:layout_width=
"180dp"
android:layout_height=
"64dp"
android:backgroundTint=
"@color/sync_button"
android:clickable=
"true"
android:elevation=
"20dp"
android:focusable=
"true"
android:text=
"Proceed"
android:textColor=
"@android:color/white"
android:textSize=
"17sp"
app:cornerRadius=
"27dp"
/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_withdraw_issue_summary.xml
0 → 100644
View file @
a8fbd646
<?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=
".Withdraw_Issue_Summary"
>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
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