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
d47ef1bd
Commit
d47ef1bd
authored
Oct 22, 2025
by
Amin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add filter function
parent
bea10f55
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
104 additions
and
1 deletion
+104
-1
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+3
-0
FilterIssueList.java
app/src/main/java/com/example/qms/FilterIssueList.java
+85
-0
Issues.java
app/src/main/java/com/example/qms/Issues.java
+8
-1
calendar.png
app/src/main/res/drawable/calendar.png
+0
-0
date_selector_background.xml
app/src/main/res/drawable/date_selector_background.xml
+7
-0
activity_filter_issue_list.xml
app/src/main/res/layout/activity_filter_issue_list.xml
+0
-0
activity_issues.xml
app/src/main/res/layout/activity_issues.xml
+1
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
d47ef1bd
...
...
@@ -12,6 +12,9 @@
android:supportsRtl=
"true"
android:theme=
"@style/Theme.Qms"
>
<activity
android:name=
".FilterIssueList"
android:exported=
"false"
/>
<activity
android:name=
".WithdrawIssueSummary"
android:exported=
"false"
/>
<activity
...
...
app/src/main/java/com/example/qms/FilterIssueList.java
0 → 100644
View file @
d47ef1bd
package
com
.
example
.
qms
;
import
android.app.DatePickerDialog
;
import
android.os.Bundle
;
import
android.widget.ImageButton
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
androidx.activity.EdgeToEdge
;
import
androidx.appcompat.app.AppCompatActivity
;
import
androidx.core.graphics.Insets
;
import
androidx.core.view.ViewCompat
;
import
androidx.core.view.WindowInsetsCompat
;
import
java.text.SimpleDateFormat
;
import
java.util.Calendar
;
import
java.util.Locale
;
public
class
FilterIssueList
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
EdgeToEdge
.
enable
(
this
);
setContentView
(
R
.
layout
.
activity_filter_issue_list
);
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
;
});
LinearLayout
dateSelectorTo
=
findViewById
(
R
.
id
.
date_selector_to
);
TextView
tvDateTo
=
findViewById
(
R
.
id
.
tv_date_to
);
LinearLayout
dateSelectorFrom
=
findViewById
(
R
.
id
.
date_selector_from
);
TextView
tvDateFrom
=
findViewById
(
R
.
id
.
tv_date_from
);
ImageButton
backButon
=
findViewById
(
R
.
id
.
back_button
);
backButon
.
setOnClickListener
(
v
->
{
onBackPressed
();
});
dateSelectorTo
.
setOnClickListener
(
v
->
{
Calendar
calendar
=
Calendar
.
getInstance
();
int
year
=
calendar
.
get
(
Calendar
.
YEAR
);
int
month
=
calendar
.
get
(
Calendar
.
MONTH
);
int
day
=
calendar
.
get
(
Calendar
.
DAY_OF_MONTH
);
DatePickerDialog
datePicker
=
new
DatePickerDialog
(
this
,
(
view
,
year1
,
month1
,
dayOfMonth
)
->
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"dd MMM yyyy"
,
Locale
.
getDefault
());
Calendar
selectedDate
=
Calendar
.
getInstance
();
selectedDate
.
set
(
year1
,
month1
,
dayOfMonth
);
tvDateTo
.
setText
(
sdf
.
format
(
selectedDate
.
getTime
()));
},
year
,
month
,
day
);
datePicker
.
show
();
});
dateSelectorFrom
.
setOnClickListener
(
v
->
{
Calendar
calendar
=
Calendar
.
getInstance
();
int
year
=
calendar
.
get
(
Calendar
.
YEAR
);
int
month
=
calendar
.
get
(
Calendar
.
MONTH
);
int
day
=
calendar
.
get
(
Calendar
.
DAY_OF_MONTH
);
DatePickerDialog
datePicker
=
new
DatePickerDialog
(
this
,
(
view
,
year1
,
month1
,
dayOfMonth
)
->
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"dd MMM yyyy"
,
Locale
.
getDefault
());
Calendar
selectedDate
=
Calendar
.
getInstance
();
selectedDate
.
set
(
year1
,
month1
,
dayOfMonth
);
tvDateFrom
.
setText
(
sdf
.
format
(
selectedDate
.
getTime
()));
},
year
,
month
,
day
);
datePicker
.
show
();
});
}
}
\ No newline at end of file
app/src/main/java/com/example/qms/Issues.java
View file @
d47ef1bd
...
...
@@ -12,7 +12,7 @@ import androidx.core.view.WindowInsetsCompat;
public
class
Issues
extends
AppCompatActivity
{
private
ImageButton
withdrawIssueIcon
,
back_button
;
private
ImageButton
withdrawIssueIcon
,
back_button
,
filter_issue
;
...
...
@@ -29,12 +29,19 @@ public class Issues extends AppCompatActivity {
withdrawIssueIcon
=
findViewById
(
R
.
id
.
withdraw_issue_icon
);
back_button
=
findViewById
(
R
.
id
.
backButton
);
filter_issue
=
findViewById
(
R
.
id
.
filterIssue
);
withdrawIssueIcon
.
setOnClickListener
(
v
->
{
Intent
intent
=
new
Intent
(
Issues
.
this
,
WithdrawIssue
.
class
);
startActivity
(
intent
);
});
filter_issue
.
setOnClickListener
(
v
->
{
Intent
intent
=
new
Intent
(
Issues
.
this
,
FilterIssueList
.
class
);
startActivity
(
intent
);
});
back_button
.
setOnClickListener
(
v
->
{
onBackPressed
();
});
...
...
app/src/main/res/drawable/calendar.png
0 → 100644
View file @
d47ef1bd
1.14 KB
app/src/main/res/drawable/date_selector_background.xml
0 → 100644
View file @
d47ef1bd
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<solid
android:color=
"#FFFFFF"
/>
<stroke
android:width=
"1dp"
android:color=
"@color/sync_button"
/>
<corners
android:radius=
"30dp"
/>
</shape>
app/src/main/res/layout/activity_filter_issue_list.xml
0 → 100644
View file @
d47ef1bd
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/activity_issues.xml
View file @
d47ef1bd
...
...
@@ -122,6 +122,7 @@
android:textStyle=
"bold"
/>
<ImageButton
android:id=
"@+id/filterIssue"
android:layout_width=
"27dp"
android:layout_height=
"27dp"
android:background=
"@color/white"
...
...
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