Commit a8fbd646 authored by Amin's avatar Amin

create withdraw issue front-ui

parent 2bb31010
......@@ -12,6 +12,12 @@
android:supportsRtl="true"
android:theme="@style/Theme.Qms">
<activity
android:name=".Withdraw_Issue_Summary"
android:exported="false" />
<activity
android:name=".WithdrawIssue"
android:exported="false" />
<activity
android:name=".Issues"
android:exported="false" />
<activity
......
package com.example.qms;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageButton;
import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
......@@ -10,6 +12,10 @@ import androidx.core.view.WindowInsetsCompat;
public class Issues extends AppCompatActivity {
private ImageButton withdrawIssueIcon, back_button;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
......@@ -20,5 +26,17 @@ public class Issues extends AppCompatActivity {
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
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
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
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
......@@ -57,17 +57,21 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
<ImageButton
android:id="@+id/withdraw_issue_icon"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_width="24dp"
android:layout_height="26dp"
android:layout_marginEnd="20dp"
android:src="@drawable/check_list" />
android:src="@drawable/check_list"
android:background="@android:color/transparent"
android:scaleType="centerInside"/>
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:src="@drawable/profile_tick" />
<ImageButton
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@drawable/profile_tick"
android:background="@android:color/transparent"
android:scaleType="centerInside"/>
</LinearLayout>
......@@ -120,8 +124,6 @@
</LinearLayout>
</LinearLayout>
<ScrollView
......
<?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
<?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
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