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
67fb3eaf
Commit
67fb3eaf
authored
Oct 16, 2025
by
Amin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set action nav
parent
e45fc3f4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
651 additions
and
49 deletions
+651
-49
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+6
-0
AccessItem.java
app/src/main/java/com/example/qms/AccessItem.java
+25
-0
MainActivity.java
app/src/main/java/com/example/qms/MainActivity.java
+19
-0
SyncActivity.java
app/src/main/java/com/example/qms/SyncActivity.java
+25
-0
activity_access_item.xml
app/src/main/res/layout/activity_access_item.xml
+242
-0
activity_main.xml
app/src/main/res/layout/activity_main.xml
+51
-49
activity_sync.xml
app/src/main/res/layout/activity_sync.xml
+283
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
67fb3eaf
...
@@ -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=
".AccessItem"
android:exported=
"false"
/>
<activity
android:name=
".SyncActivity"
android:exported=
"false"
/>
<activity
android:name=
".MainActivity"
android:name=
".MainActivity"
android:exported=
"true"
>
android:exported=
"true"
>
<intent-filter>
<intent-filter>
...
...
app/src/main/java/com/example/qms/AccessItem.java
0 → 100644
View file @
67fb3eaf
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
AccessItem
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
EdgeToEdge
.
enable
(
this
);
setContentView
(
R
.
layout
.
activity_access_item
);
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/MainActivity.java
View file @
67fb3eaf
package
com
.
example
.
qms
;
package
com
.
example
.
qms
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.LinearLayout
;
import
androidx.activity.EdgeToEdge
;
import
androidx.activity.EdgeToEdge
;
import
androidx.appcompat.app.AppCompatActivity
;
import
androidx.appcompat.app.AppCompatActivity
;
...
@@ -14,6 +16,9 @@ public class MainActivity extends AppCompatActivity {
...
@@ -14,6 +16,9 @@ public class MainActivity extends AppCompatActivity {
private
DrawerLayout
drawerLayout
;
private
DrawerLayout
drawerLayout
;
private
LinearLayout
syncNav
,
accessItemBottomNav
;
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
...
@@ -30,6 +35,9 @@ public class MainActivity extends AppCompatActivity {
...
@@ -30,6 +35,9 @@ public class MainActivity extends AppCompatActivity {
// Initialize DrawerLayout
// Initialize DrawerLayout
drawerLayout
=
findViewById
(
R
.
id
.
drawerLayout
);
drawerLayout
=
findViewById
(
R
.
id
.
drawerLayout
);
syncNav
=
findViewById
(
R
.
id
.
sync_nav
);
accessItemBottomNav
=
findViewById
(
R
.
id
.
access_item_bottom_nav
);
// Handle hamburger click
// Handle hamburger click
View
hamburgerButton
=
findViewById
(
R
.
id
.
hamburger
);
View
hamburgerButton
=
findViewById
(
R
.
id
.
hamburger
);
...
@@ -44,5 +52,16 @@ public class MainActivity extends AppCompatActivity {
...
@@ -44,5 +52,16 @@ public class MainActivity extends AppCompatActivity {
}
}
});
});
}
}
// Set onClick listener
syncNav
.
setOnClickListener
(
v
->
{
Intent
intent
=
new
Intent
(
MainActivity
.
this
,
SyncActivity
.
class
);
startActivity
(
intent
);
});
accessItemBottomNav
.
setOnClickListener
(
v
->
{
Intent
intent
=
new
Intent
(
MainActivity
.
this
,
AccessItem
.
class
);
startActivity
(
intent
);
});
}
}
}
}
app/src/main/java/com/example/qms/SyncActivity.java
0 → 100644
View file @
67fb3eaf
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
SyncActivity
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
EdgeToEdge
.
enable
(
this
);
setContentView
(
R
.
layout
.
activity_sync
);
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_access_item.xml
0 → 100644
View file @
67fb3eaf
<?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=
".AccessItem"
>
<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=
"Access Item"
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"
app:layout_constraintTop_toBottomOf=
"@+id/top_nav"
app:layout_constraintBottom_toBottomOf=
"parent"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"21dp"
android:layout_marginTop=
"27dp"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:text=
"Submitted Items (1)"
android:textSize=
"21sp"
android:textStyle=
"bold"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/background_border"
android:orientation=
"horizontal"
android:padding=
"15dp"
>
<ImageButton
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_marginEnd=
"10dp"
android:backgroundTint=
"@color/white"
android:src=
"@drawable/elements"
/>
<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=
"Possessor"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Jeremy Shaw"
android:textColor=
"@color/primary"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"ASH20200318-128243"
android:textSize=
"19sp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:layout_marginTop=
"20dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:text=
"Transaction (2)"
android:textSize=
"21sp"
android:textStyle=
"bold"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/background_border"
android:orientation=
"horizontal"
android:padding=
"15dp"
>
<ImageButton
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_marginEnd=
"10dp"
android:backgroundTint=
"@color/white"
android:src=
"@drawable/arrow_turn_backward_sharp"
/>
<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=
"Return"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"ASH20200318-128754"
android:textColor=
"@color/primary"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"30 Dec 2024, 11:30 AM"
android:textColor=
"@color/dark_grey"
android:textSize=
"19sp"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/background_border"
android:orientation=
"horizontal"
android:padding=
"15dp"
android:layout_marginTop=
"15dp"
>
<ImageButton
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_marginEnd=
"10dp"
android:backgroundTint=
"@color/white"
android:src=
"@drawable/mail_send_02"
/>
<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=
"Submit"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"ASH20200318-128328"
android:textColor=
"@color/primary"
android:textSize=
"20sp"
android:textStyle=
"bold"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"30 Dec 2024, 9:16 AM"
android:textColor=
"@color/dark_grey"
android:textSize=
"19sp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_main.xml
View file @
67fb3eaf
...
@@ -19,10 +19,10 @@
...
@@ -19,10 +19,10 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"59dp"
android:layout_height=
"59dp"
android:background=
"@color/primary"
android:background=
"@color/primary"
android:orientation=
"horizontal"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
app:layout_constraintTop_toTopOf=
"parent"
android:orientation=
"horizontal"
app:layout_constraintStart_toStartOf=
"parent"
>
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
<ImageButton
<ImageButton
android:id=
"@+id/btnBack"
android:id=
"@+id/btnBack"
...
@@ -36,11 +36,11 @@
...
@@ -36,11 +36,11 @@
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
""
android:text=
""
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"20sp"
android:textSize=
"20sp"
android:textStyle=
"bold"
android:textStyle=
"bold"
/>
android:gravity=
"center"
/>
<ImageButton
<ImageButton
android:id=
"@+id/hamburger"
android:id=
"@+id/hamburger"
...
@@ -55,8 +55,8 @@
...
@@ -55,8 +55,8 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"85dp"
android:layout_height=
"85dp"
android:background=
"@color/primary"
android:background=
"@color/primary"
android:orientation=
"horizontal"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"horizontal"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
>
app:layout_constraintStart_toStartOf=
"parent"
>
...
@@ -65,21 +65,21 @@
...
@@ -65,21 +65,21 @@
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:
orientation=
"vertical
"
android:
gravity=
"center
"
android:
gravity=
"center
"
>
android:
orientation=
"vertical
"
>
<ImageView
<ImageView
android:layout_width=
"32dp"
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_height=
"32dp"
android:
src=
"@drawable/calendar_icon
"
android:
layout_marginBottom=
"5dp
"
android:
layout_marginBottom=
"5dp"
/>
android:
src=
"@drawable/calendar_icon"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Make Appt."
android:text=
"Make Appt."
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</LinearLayout>
</LinearLayout>
<!-- Center -->
<!-- Center -->
...
@@ -87,44 +87,45 @@
...
@@ -87,44 +87,45 @@
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:
orientation=
"vertical
"
android:
gravity=
"center
"
android:
gravity=
"center
"
>
android:
orientation=
"vertical
"
>
<ImageView
<ImageView
android:layout_width=
"32dp"
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_height=
"32dp"
android:
src=
"@drawable/add_issue_icon
"
android:
layout_marginBottom=
"5dp
"
android:
layout_marginBottom=
"5dp"
/>
android:
src=
"@drawable/add_issue_icon"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Add Issue"
android:text=
"Add Issue"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</LinearLayout>
</LinearLayout>
<!-- Right -->
<!-- Right -->
<LinearLayout
<LinearLayout
android:id=
"@+id/access_item_bottom_nav"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:
orientation=
"vertical
"
android:
gravity=
"center
"
android:
gravity=
"center
"
>
android:
orientation=
"vertical
"
>
<ImageView
<ImageView
android:layout_width=
"32dp"
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_height=
"32dp"
android:
src=
"@drawable/access_item_icon
"
android:
layout_marginBottom=
"5dp
"
android:
layout_marginBottom=
"5dp"
/>
android:
src=
"@drawable/access_item_icon"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"View Access Item"
android:text=
"View Access Item"
android:textAlignment=
"center"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"16sp"
android:textSize=
"16sp"
/>
android:textAlignment=
"center"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
...
@@ -136,16 +137,16 @@
...
@@ -136,16 +137,16 @@
android:id=
"@+id/rightDrawer"
android:id=
"@+id/rightDrawer"
android:layout_width=
"400dp"
android:layout_width=
"400dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:
orientation=
"vertical
"
android:
layout_gravity=
"end
"
android:background=
"@color/white"
android:background=
"@color/white"
android:
layout_gravity=
"end
"
>
android:
orientation=
"vertical
"
>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"285dp"
android:layout_height=
"285dp"
android:background=
"@color/primary"
android:background=
"@color/primary"
android:orientation=
"vertical"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"vertical"
android:paddingHorizontal=
"30dp"
>
android:paddingHorizontal=
"30dp"
>
<androidx.cardview.widget.CardView
<androidx.cardview.widget.CardView
...
@@ -163,8 +164,8 @@
...
@@ -163,8 +164,8 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:
orientation=
"horizontal
"
android:
layout_marginTop=
"20dp
"
android:
layout_marginTop=
"20dp
"
>
android:
orientation=
"horizontal
"
>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -178,14 +179,14 @@
...
@@ -178,14 +179,14 @@
<Button
<Button
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"15dp"
android:backgroundTint=
"@color/secondary"
android:backgroundTint=
"@color/secondary"
android:clickable=
"true"
android:clickable=
"true"
android:elevation=
"20dp"
android:elevation=
"20dp"
android:text=
"JohnSnow132"
android:text=
"JohnSnow132"
android:textColor=
"@android:color/white"
android:textColor=
"@android:color/white"
android:textSize=
"17sp"
android:textSize=
"17sp"
app:cornerRadius=
"27dp"
app:cornerRadius=
"27dp"
/>
android:layout_marginTop=
"15dp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -206,15 +207,15 @@
...
@@ -206,15 +207,15 @@
<ImageView
<ImageView
android:layout_width=
"32dp"
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_height=
"32dp"
android:
src=
"@drawable/house_nav_icon
"
android:
layout_marginEnd=
"25dp
"
android:
layout_marginEnd=
"25dp"
/>
android:
src=
"@drawable/house_nav_icon"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Project List"
android:text=
"Project List"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"20sp"
/>
android:textSize=
"20sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -228,15 +229,15 @@
...
@@ -228,15 +229,15 @@
<ImageView
<ImageView
android:layout_width=
"32dp"
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_height=
"32dp"
android:
src=
"@drawable/notifications_nav_icon
"
android:
layout_marginEnd=
"25dp
"
android:
layout_marginEnd=
"25dp"
/>
android:
src=
"@drawable/notifications_nav_icon"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Notifications"
android:text=
"Notifications"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"20sp"
/>
android:textSize=
"20sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -250,15 +251,15 @@
...
@@ -250,15 +251,15 @@
<ImageView
<ImageView
android:layout_width=
"32dp"
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_height=
"32dp"
android:
src=
"@drawable/announcement_nav_icon
"
android:
layout_marginEnd=
"25dp
"
android:
layout_marginEnd=
"25dp"
/>
android:
src=
"@drawable/announcement_nav_icon"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Announcement"
android:text=
"Announcement"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"20sp"
/>
android:textSize=
"20sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -272,37 +273,40 @@
...
@@ -272,37 +273,40 @@
<ImageView
<ImageView
android:layout_width=
"32dp"
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_height=
"32dp"
android:
src=
"@drawable/help_nav_icon
"
android:
layout_marginEnd=
"25dp
"
android:
layout_marginEnd=
"25dp"
/>
android:
src=
"@drawable/help_nav_icon"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Help"
android:text=
"Help"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"20sp"
/>
android:textSize=
"20sp"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/sync_nav"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:clickable=
"true"
android:focusable=
"true"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingVertical=
"15dp"
>
android:paddingVertical=
"15dp"
>
<ImageView
<ImageView
android:layout_width=
"32dp"
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_height=
"32dp"
android:
src=
"@drawable/sync_nav_icon
"
android:
layout_marginEnd=
"25dp
"
android:
layout_marginEnd=
"25dp"
/>
android:
src=
"@drawable/sync_nav_icon"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Sync"
android:text=
"Sync"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"20sp"
/>
android:textSize=
"20sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -316,25 +320,23 @@
...
@@ -316,25 +320,23 @@
<ImageView
<ImageView
android:layout_width=
"32dp"
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_height=
"32dp"
android:
src=
"@drawable/logout_nav_icon
"
android:
layout_marginEnd=
"25dp
"
android:
layout_marginEnd=
"25dp"
/>
android:
src=
"@drawable/logout_nav_icon"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Log Out"
android:text=
"Log Out"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"20sp"
/>
android:textSize=
"20sp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</androidx.drawerlayout.widget.DrawerLayout>
</androidx.drawerlayout.widget.DrawerLayout>
app/src/main/res/layout/activity_sync.xml
0 → 100644
View file @
67fb3eaf
<?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=
".SyncActivity"
>
<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=
"Sync"
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/status"
android:layout_width=
"match_parent"
android:layout_height=
"64dp"
android:orientation=
"horizontal"
android:background=
"@color/tertiary"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/top_nav"
android:gravity=
"center"
>
<ImageView
android:layout_width=
"27dp"
android:layout_height=
"27dp"
android:src=
"@drawable/reload"
android:layout_marginEnd=
"15dp"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Last Updated: 05 Sep 2024"
android:textSize=
"19sp"
/>
</LinearLayout>
<ScrollView
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/status"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"21dp"
android:layout_marginTop=
"27dp"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/background_border"
android:orientation=
"horizontal"
android:gravity=
"center_vertical"
android:layout_marginBottom=
"15dp"
>
<!-- Left content -->
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:orientation=
"vertical"
android:padding=
"20dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Offline Units"
android:textSize=
"20sp"
android:textStyle=
"bold"
android:layout_marginBottom=
"5dp"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:gravity=
"center_vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"5"
android:textSize=
"20sp"
android:layout_marginEnd=
"8dp"
/>
<ImageView
android:layout_width=
"16dp"
android:layout_height=
"16dp"
android:src=
"@drawable/arrow_right"
/>
</LinearLayout>
</LinearLayout>
<!-- Right image (House) -->
<ImageView
android:layout_width=
"109dp"
android:layout_height=
"96dp"
android:src=
"@drawable/house"
android:layout_marginEnd=
"10dp"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/background_border"
android:orientation=
"horizontal"
android:gravity=
"center_vertical"
android:layout_marginBottom=
"15dp"
>
<!-- Left content -->
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:orientation=
"vertical"
android:padding=
"20dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Pending Items"
android:textSize=
"20sp"
android:textStyle=
"bold"
android:layout_marginBottom=
"5dp"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:gravity=
"center_vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"0"
android:textSize=
"20sp"
android:layout_marginEnd=
"8dp"
/>
<ImageView
android:layout_width=
"16dp"
android:layout_height=
"16dp"
android:src=
"@drawable/arrow_right"
/>
</LinearLayout>
</LinearLayout>
<!-- Right image (House) -->
<ImageView
android:layout_width=
"109dp"
android:layout_height=
"96dp"
android:src=
"@drawable/sand_clock"
android:layout_marginEnd=
"10dp"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/background_border"
android:orientation=
"horizontal"
android:gravity=
"center_vertical"
android:layout_marginBottom=
"15dp"
>
<!-- Left content -->
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:orientation=
"vertical"
android:padding=
"20dp"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"History"
android:textSize=
"20sp"
android:textStyle=
"bold"
android:layout_marginBottom=
"5dp"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:gravity=
"center_vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"2"
android:textSize=
"20sp"
android:layout_marginEnd=
"8dp"
/>
<ImageView
android:layout_width=
"16dp"
android:layout_height=
"16dp"
android:src=
"@drawable/arrow_right"
/>
</LinearLayout>
</LinearLayout>
<!-- Right image (House) -->
<ImageView
android:layout_width=
"109dp"
android:layout_height=
"96dp"
android:src=
"@drawable/stopwatch"
android:layout_marginEnd=
"10dp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
<Button
android:layout_width=
"match_parent"
android:layout_height=
"64dp"
android:layout_marginBottom=
"15dp"
android:backgroundTint=
"@color/sync_button"
android:clickable=
"true"
android:focusable=
"true"
android:text=
"Sync"
android:textColor=
"@android:color/white"
android:textSize=
"19sp"
app:cornerRadius=
"27dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
android:layout_marginHorizontal=
"21dp"
/>
</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