Commit ed28bdd0 authored by Amin's avatar Amin

withdraw issue summary front-ui

parent a8fbd646
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.Qms"> android:theme="@style/Theme.Qms">
<activity <activity
android:name=".Withdraw_Issue_Summary" android:name=".WithdrawIssueSummary"
android:exported="false" /> android:exported="false" />
<activity <activity
android:name=".WithdrawIssue" android:name=".WithdrawIssue"
......
package com.example.qms; package com.example.qms;
import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.widget.Button;
import android.widget.ImageButton;
import androidx.activity.EdgeToEdge; import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
...@@ -10,6 +13,10 @@ import androidx.core.view.WindowInsetsCompat; ...@@ -10,6 +13,10 @@ import androidx.core.view.WindowInsetsCompat;
public class WithdrawIssue extends AppCompatActivity { public class WithdrawIssue extends AppCompatActivity {
private Button proceedButton;
private ImageButton back_button;
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
...@@ -20,5 +27,19 @@ public class WithdrawIssue extends AppCompatActivity { ...@@ -20,5 +27,19 @@ public class WithdrawIssue 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;
}); });
proceedButton = findViewById(R.id.proceed_button);
back_button = findViewById(R.id.backButton);
proceedButton.setOnClickListener(v -> {
Intent intent = new Intent(WithdrawIssue.this, WithdrawIssueSummary.class);
startActivity(intent);
});
back_button.setOnClickListener(v -> {
onBackPressed();
});
} }
} }
\ No newline at end of file
package com.example.qms; package com.example.qms;
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;
...@@ -8,7 +9,9 @@ import androidx.core.graphics.Insets; ...@@ -8,7 +9,9 @@ import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat; import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat; import androidx.core.view.WindowInsetsCompat;
public class Withdraw_Issue_Summary extends AppCompatActivity { public class WithdrawIssueSummary extends AppCompatActivity {
private ImageButton back_button;
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
...@@ -20,5 +23,11 @@ public class Withdraw_Issue_Summary extends AppCompatActivity { ...@@ -20,5 +23,11 @@ public class Withdraw_Issue_Summary 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;
}); });
back_button = findViewById(R.id.backButton);
back_button.setOnClickListener(v -> {
onBackPressed();
});
} }
} }
\ No newline at end of file
...@@ -397,6 +397,7 @@ ...@@ -397,6 +397,7 @@
</LinearLayout> </LinearLayout>
<Button <Button
android:id="@+id/proceed_button"
android:layout_width="180dp" android:layout_width="180dp"
android:layout_height="64dp" android:layout_height="64dp"
android:backgroundTint="@color/sync_button" android:backgroundTint="@color/sync_button"
......
...@@ -5,6 +5,251 @@ ...@@ -5,6 +5,251 @@
android:id="@+id/main" android:id="@+id/main"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".Withdraw_Issue_Summary"> tools:context=".WithdrawIssueSummary">
<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 Summary"
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/remarks_section"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:orientation="vertical"
android:paddingHorizontal="21dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/top_nav">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="* Remarks"
android:textSize="19sp"
android:textStyle="bold" />
<EditText
android:id="@+id/remarks"
android:layout_width="match_parent"
android:layout_height="115dp"
android:layout_marginTop="10dp"
android:background="@drawable/background_border"
android:gravity="top|start"
android:hint="Enter remarks here..."
android:inputType="textMultiLine"
android:padding="15dp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:orientation="vertical"
android:paddingHorizontal="21dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/remarks_section">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Withdrawing"
android:textSize="19sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2 Issue(s)"
android:textSize="19sp" />
<!-- ScrollView wraps the withdraw_card content -->
<ScrollView
android:id="@+id/withdraw_scroll"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:background="@drawable/background_border"
android:padding="10dp"
android:fillViewport="true">
<LinearLayout
android:id="@+id/withdraw_card"
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:text="ASH20200318-128754"
android:textStyle="bold"
android:textSize="20sp"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/light_grey"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ASH20200318-128755"
android:textStyle="bold"
android:textSize="20sp"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/light_grey"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ASH20200318-128755"
android:textStyle="bold"
android:textSize="20sp"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/light_grey"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ASH20200318-128755"
android:textStyle="bold"
android:textSize="20sp"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/light_grey"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ASH20200318-128755"
android:textStyle="bold"
android:textSize="20sp"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/light_grey"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ASH20200318-128755"
android:textStyle="bold"
android:textSize="20sp"/>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/light_grey"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"/>
</LinearLayout>
</ScrollView>
</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:layout_width="180dp"
android:layout_height="64dp"
android:layout_marginEnd="10dp"
android:backgroundTint="@color/white"
android:clickable="true"
android:elevation="20dp"
android:focusable="true"
android:text="Back"
android:textColor="@color/primary"
android:textSize="17sp"
app:cornerRadius="21dp"
app:strokeColor="@color/primary"
app:strokeWidth="1dp" />
<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="Comfirm"
android:textColor="@android:color/white"
android:textSize="17sp"
app:cornerRadius="21dp" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </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