Commit a8fbd646 authored by Amin's avatar Amin

create withdraw issue front-ui

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