Commit 9b8b9679 authored by Amin's avatar Amin

create add owner acceptance form screen

parent ea4c7911
......@@ -12,6 +12,9 @@
android:supportsRtl="true"
android:theme="@style/Theme.Qms">
<activity
android:name=".OwnerAcceptanceForm"
android:exported="false" />
<activity
android:name=".AddInfo"
android:exported="false" />
<activity
......
......@@ -13,7 +13,7 @@ import androidx.core.view.WindowInsetsCompat;
public class Issues extends AppCompatActivity {
private ImageButton withdrawIssueIcon, back_button, filter_issue;
private ImageButton withdrawIssueIcon, back_button, filter_issue, ownerAcceptanceFormIcon;
private LinearLayout issueClick;
......@@ -33,6 +33,7 @@ public class Issues extends AppCompatActivity {
withdrawIssueIcon = findViewById(R.id.withdraw_issue_icon);
back_button = findViewById(R.id.backButton);
filter_issue = findViewById(R.id.filterIssue);
ownerAcceptanceFormIcon = findViewById(R.id.owner_acceptance_form_icon);
issueClick = findViewById(R.id.issues_click);
......@@ -52,6 +53,11 @@ public class Issues extends AppCompatActivity {
startActivity(intent);
});
ownerAcceptanceFormIcon.setOnClickListener(v -> {
Intent intent = new Intent(Issues.this, OwnerAcceptanceForm.class);
startActivity(intent);
});
back_button.setOnClickListener(v -> {
onBackPressed();
});
......
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 OwnerAcceptanceForm extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_owner_acceptance_form);
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.back_button);
backButton.setOnClickListener(v -> {
onBackPressed();
});
}
}
\ No newline at end of file
......@@ -67,6 +67,7 @@
android:src="@drawable/check_list" />
<ImageButton
android:id="@+id/owner_acceptance_form_icon"
android:layout_width="24dp"
android:layout_height="24dp"
android:background="@android:color/transparent"
......
This diff is collapsed.
......@@ -16,6 +16,7 @@
<color name="blue">#2952D6</color>
<color name="red">#F14915</color>
<color name="green">#008000</color>
......
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