Commit 39d90132 authored by Amin's avatar Amin

issue details ui-front

parent d47ef1bd
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.Qms"> android:theme="@style/Theme.Qms">
<activity <activity
android:name=".IssueDetails"
android:exported="false" />
<activity
android:name=".FilterIssueList" android:name=".FilterIssueList"
android:exported="false" /> android:exported="false" />
<activity <activity
......
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 IssueDetails extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_issue_details);
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.backButton);
backButton.setOnClickListener(v -> {
onBackPressed();
});
}
}
\ No newline at end of file
...@@ -3,6 +3,7 @@ package com.example.qms; ...@@ -3,6 +3,7 @@ package com.example.qms;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.widget.ImageButton; import android.widget.ImageButton;
import android.widget.LinearLayout;
import androidx.activity.EdgeToEdge; import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
...@@ -14,6 +15,8 @@ public class Issues extends AppCompatActivity { ...@@ -14,6 +15,8 @@ public class Issues extends AppCompatActivity {
private ImageButton withdrawIssueIcon, back_button, filter_issue; private ImageButton withdrawIssueIcon, back_button, filter_issue;
private LinearLayout issueClick;
@Override @Override
...@@ -31,6 +34,8 @@ public class Issues extends AppCompatActivity { ...@@ -31,6 +34,8 @@ public class Issues extends AppCompatActivity {
back_button = findViewById(R.id.backButton); back_button = findViewById(R.id.backButton);
filter_issue = findViewById(R.id.filterIssue); filter_issue = findViewById(R.id.filterIssue);
issueClick = findViewById(R.id.issues_click);
withdrawIssueIcon.setOnClickListener(v -> { withdrawIssueIcon.setOnClickListener(v -> {
Intent intent = new Intent(Issues.this, WithdrawIssue.class); Intent intent = new Intent(Issues.this, WithdrawIssue.class);
...@@ -42,6 +47,11 @@ public class Issues extends AppCompatActivity { ...@@ -42,6 +47,11 @@ public class Issues extends AppCompatActivity {
startActivity(intent); startActivity(intent);
}); });
issueClick.setOnClickListener(v -> {
Intent intent = new Intent(Issues.this, IssueDetails.class);
startActivity(intent);
});
back_button.setOnClickListener(v -> { back_button.setOnClickListener(v -> {
onBackPressed(); onBackPressed();
}); });
......
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:text="03 Jan 2025" android:text="03 Jan 2025"
android:textSize="15sp" android:textSize="18sp"
android:textColor="#000000" /> android:textColor="#000000" />
<ImageView <ImageView
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:text="03 Jan 2025" android:text="03 Jan 2025"
android:textSize="15sp" android:textSize="18sp"
android:textColor="#000000" /> android:textColor="#000000" />
<ImageView <ImageView
...@@ -200,7 +200,8 @@ ...@@ -200,7 +200,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:orientation="horizontal"
android:layout_marginBottom="5dp">
<Button <Button
android:layout_width="wrap_content" android:layout_width="wrap_content"
...@@ -276,8 +277,51 @@ ...@@ -276,8 +277,51 @@
</LinearLayout> </LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/bottom_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:gravity="center"
android:orientation="horizontal"
android:padding="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
>
<Button
android:id="@+id/backButtonBot"
android:layout_width="0dp"
android:layout_height="64dp"
android:layout_weight="1"
android:layout_marginEnd="10dp"
android:backgroundTint="@color/white"
android:clickable="true"
android:elevation="20dp"
android:focusable="true"
android:text="Reset All"
android:textColor="@color/primary"
android:textSize="17sp"
app:cornerRadius="21dp"
app:strokeColor="@color/primary"
app:strokeWidth="1dp" />
<Button
android:id="@+id/confirm_button"
android:layout_width="0dp"
android:layout_height="64dp"
android:layout_weight="1"
android:backgroundTint="@color/primary"
android:clickable="true"
android:elevation="20dp"
android:focusable="true"
android:text="Apply"
android:textColor="@android:color/white"
android:textSize="17sp"
app:cornerRadius="21dp"
android:paddingHorizontal="30dp"/>
</LinearLayout> </LinearLayout>
......
<?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=".IssueDetails">
<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="Issue Details"
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/history_button"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginEnd="16dp"
android:background="@null"
android:src="@drawable/clock_icon"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<ImageView
android:id="@+id/image"
android:layout_width="0dp"
android:layout_height="220dp"
android:src="@drawable/home_details"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/top_nav"
app:layout_constraintEnd_toEndOf="parent"
android:scaleType="centerCrop"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/image"
android:paddingHorizontal="21dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="15dp">
<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:text="ASH1-L011-N826"
android:textStyle="bold"
android:textSize="24dp"
android:layout_marginBottom="5dp"/>
<Button
android:layout_width="139dp"
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>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_marginTop="15dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="10dp">
<TextView
android:layout_width="130dp"
android:layout_height="wrap_content"
android:text="Created Date"
android:textSize="19sp"
android:textColor="@color/grey" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="03 Jan 2025"
android:textColor="@color/black"
android:textSize="20sp"
android:layout_marginStart="15dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="10dp">
<TextView
android:layout_width="130dp"
android:layout_height="wrap_content"
android:text="Location"
android:textSize="19sp"
android:textColor="@color/grey" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Bilik Tidur A"
android:textColor="@color/black"
android:textSize="20sp"
android:layout_marginStart="15dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="10dp">
<TextView
android:layout_width="130dp"
android:layout_height="wrap_content"
android:text="Category"
android:textSize="19sp"
android:textColor="@color/grey" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="All"
android:textColor="@color/black"
android:textSize="20sp"
android:layout_marginStart="15dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="10dp">
<TextView
android:layout_width="130dp"
android:layout_height="wrap_content"
android:text="Type"
android:textSize="19sp"
android:textColor="@color/grey" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Sliding Door Frame"
android:textColor="@color/black"
android:textSize="20sp"
android:layout_marginStart="15dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="10dp">
<TextView
android:layout_width="130dp"
android:layout_height="wrap_content"
android:text="Issues"
android:textSize="19sp"
android:textColor="@color/grey" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Broken / Scratch"
android:textColor="@color/black"
android:textSize="20sp"
android:layout_marginStart="15dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="10dp">
<TextView
android:layout_width="130dp"
android:layout_height="wrap_content"
android:text="Created By"
android:textSize="19sp"
android:textColor="@color/grey" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Project Team 02"
android:textColor="@color/black"
android:textSize="20sp"
android:layout_marginStart="15dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="10dp">
<TextView
android:layout_width="130dp"
android:layout_height="wrap_content"
android:text="Comment"
android:textSize="19sp"
android:textColor="@color/grey" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
android:textColor="@color/black"
android:textSize="20sp"
android:layout_marginStart="15dp"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
...@@ -187,6 +187,7 @@ ...@@ -187,6 +187,7 @@
android:paddingVertical="21dp"> android:paddingVertical="21dp">
<LinearLayout <LinearLayout
android:id="@+id/issues_click"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="15dp" android:layout_marginBottom="15dp"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment