diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
old mode 100755
new mode 100644
index 0380d8d..0a78fa4
--- a/.idea/jarRepositories.xml
+++ b/.idea/jarRepositories.xml
@@ -26,5 +26,10 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index a5fcc46..b416eac 100755
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -5,12 +5,12 @@ plugins {
}
android {
- compileSdkVersion 33
+ compileSdkVersion 34
defaultConfig {
applicationId "com.example.intellimills"
minSdkVersion 19
- targetSdkVersion 33
+ targetSdkVersion 34
versionCode 1
versionName "1.0"
@@ -32,15 +32,19 @@ android {
}
dependencies {
-
+ implementation 'com.google.firebase:firebase-core:21.1.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
- implementation 'com.google.android.material:material:1.9.0'
+ implementation 'com.google.firebase:firebase-database:20.2.2' // Replace with the latest version
+ implementation 'com.google.firebase:firebase-auth:22.3.0' // Include if you're using Firebase Authentication
+ implementation 'com.firebaseui:firebase-ui-database:8.0.0'
+ implementation 'com.google.android.material:material:1.10.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
- implementation 'com.google.firebase:firebase-auth:22.1.1'
- implementation 'com.google.firebase:firebase-database:20.2.2'
testImplementation 'junit:junit:4.13.2'
+ implementation 'androidx.recyclerview:recyclerview:1.3.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
+ implementation 'com.squareup.retrofit2:retrofit:2.9.0'
+ implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
// Add the Firebase SDK dependencies
// Import the Firebase BoM
@@ -51,10 +55,12 @@ dependencies {
// When using the BoM, don't specify versions in Firebase dependencies
// https://firebase.google.com/docs/android/setup#available-libraries
implementation platform('com.google.firebase:firebase-bom:32.2.2')
- implementation 'com.google.firebase:firebase-analytics:21.3.0'
+ implementation 'com.google.firebase:firebase-analytics:21.5.0'
// other dependencies may be listed here
testImplementation 'junit:junit:4.13.2' // For JUnit 4
// or
testImplementation 'junit:junit:4.13.2' // For JUnit 5
-}
\ No newline at end of file
+
+}
+apply plugin: 'com.google.gms.google-services'
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 79b7dbe..ce0fe0c 100755
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -8,9 +8,14 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Design.Light">
+
+ android:exported="false"
+ android:theme="@style/Theme.Design.Light.NoActionBar" />
loginUser());
+ button2.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ loginUser();
+ }
+ });
}
private void loginUser() {
String email = editemail.getText().toString();
String password = editpasswrd.getText().toString();
- if (TextUtils.isEmpty(email)) {
- editemail.setError("Email cannot be empty");
- editemail.requestFocus();
- Toast.makeText(getApplicationContext(), "Please Enter Your Email", Toast.LENGTH_LONG).show();
- } else if (TextUtils.isEmpty(password)) {
- editpasswrd.setError("Password cannot be empty");
- editpasswrd.requestFocus();
- Toast.makeText(getApplicationContext(), "Please enter Password.", Toast.LENGTH_LONG).show();
+ if (TextUtils.isEmpty(email) || TextUtils.isEmpty(password)) {
+ Toast.makeText(getApplicationContext(), "Please enter email and password.", Toast.LENGTH_LONG).show();
} else {
- // Check if the provided credentials match the hardcoded admin credentials
- if (email.equals(ADMIN_USERNAME) && password.equals(ADMIN_PASSWORD)) {
- // Admin login successful
- Toast.makeText(AdminLogin.this, "Admin login successful", Toast.LENGTH_LONG).show();
-
- // Start the AdminDashboardActivity
- Intent adminDashboardIntent = new Intent(AdminLogin.this, AdminDashboardActivity.class);
- startActivity(adminDashboardIntent);
- // Optional: Finish the AdminLoginActivity to prevent going back to it
- } else {
- // Admin login failed
- Toast.makeText(AdminLogin.this, "Admin login failed. Incorrect credentials.", Toast.LENGTH_LONG).show();
- }
+ mAuth.signInWithEmailAndPassword(email, password)
+ .addOnCompleteListener(this, new OnCompleteListener() {
+ @Override
+ public void onComplete(@NonNull Task task) {
+ if (task.isSuccessful()) {
+ // Admin login successful
+ Toast.makeText(AdminLogin.this, "Admin login successful", Toast.LENGTH_LONG).show();
+
+ // Start the AdminDashboardActivity
+ Intent adminDashboardIntent = new Intent(AdminLogin.this, AdminDashboardActivity.class);
+ startActivity(adminDashboardIntent);
+ // Optional: Finish the AdminLoginActivity to prevent going back to it
+ } else {
+ // Admin login failed
+ Toast.makeText(AdminLogin.this, "Admin login failed. Incorrect credentials.", Toast.LENGTH_LONG).show();
+ }
+ }
+ });
}
}
}
diff --git a/app/src/main/java/com/example/intellimills/DriverLeaveFormActivity.java b/app/src/main/java/com/example/intellimills/DriverLeaveFormActivity.java
index 3fba309..c2a72e3 100644
--- a/app/src/main/java/com/example/intellimills/DriverLeaveFormActivity.java
+++ b/app/src/main/java/com/example/intellimills/DriverLeaveFormActivity.java
@@ -1,14 +1,89 @@
package com.example.intellimills;
-import androidx.appcompat.app.AppCompatActivity;
-
import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+import androidx.annotation.NonNull;
+import androidx.appcompat.app.AppCompatActivity;
+import android.widget.Toast;
+import com.google.android.gms.tasks.OnCompleteListener;
+import com.google.android.gms.tasks.Task;
+import com.google.firebase.auth.FirebaseAuth;
+import com.google.firebase.database.DatabaseReference;
+import com.google.firebase.database.FirebaseDatabase;
+import java.util.HashMap;
+import java.util.Map;
public class DriverLeaveFormActivity extends AppCompatActivity {
+ private EditText nameEditText;
+ private EditText idEditText;
+ private EditText reasonEditText;
+
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_driver_leave_form);
+
+ nameEditText = findViewById(R.id.name3);
+ idEditText = findViewById(R.id.Id);
+ reasonEditText = findViewById(R.id.editTextText4);
+
+ Button clearButton = findViewById(R.id.button11);
+ clearButton.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ // Clear all EditText fields
+ nameEditText.setText("");
+ idEditText.setText("");
+ reasonEditText.setText("");
+ }
+ });
+
+ Button submitButton = findViewById(R.id.button7);
+ submitButton.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ // Get the user's input
+ String name = nameEditText.getText().toString();
+ String id = idEditText.getText().toString();
+ String reason = reasonEditText.getText().toString();
+
+ // Validate the input and submit to Firebase
+ if (!name.isEmpty() && !id.isEmpty() && !reason.isEmpty()) {
+ submitLeaveToFirebase(name, id, reason);
+ } else {
+ Toast.makeText(DriverLeaveFormActivity.this, "Please fill in all fields.", Toast.LENGTH_SHORT).show();
+ }
+ }
+ });
+ }
+
+ private void submitLeaveToFirebase(String name, String id, String reason) {
+ // Replace this with your Firebase database reference
+ DatabaseReference leaveRef = FirebaseDatabase.getInstance().getReference("leave_requests");
+
+ // Create a unique key for the leave request
+ String leaveId = leaveRef.push().getKey();
+
+ // Create a map to store the leave data
+ Map leaveData = new HashMap<>();
+ leaveData.put("name", name);
+ leaveData.put("id", id);
+ leaveData.put("reason", reason);
+
+ // Push the data to Firebase
+ leaveRef.child(leaveId).updateChildren(leaveData)
+ .addOnCompleteListener(new OnCompleteListener() {
+ @Override
+ public void onComplete(@NonNull Task task) {
+ if (task.isSuccessful()) {
+ Toast.makeText(DriverLeaveFormActivity.this, "Submission successful.", Toast.LENGTH_SHORT).show();
+ } else {
+ Toast.makeText(DriverLeaveFormActivity.this, "Submission failed. Please try again.", Toast.LENGTH_SHORT).show();
+ }
+ }
+ });
}
-}
\ No newline at end of file
+}
diff --git a/app/src/main/java/com/example/intellimills/PermitApprovalActivity.java b/app/src/main/java/com/example/intellimills/PermitApprovalActivity.java
new file mode 100644
index 0000000..0b09589
--- /dev/null
+++ b/app/src/main/java/com/example/intellimills/PermitApprovalActivity.java
@@ -0,0 +1,79 @@
+package com.example.intellimills;
+
+import android.os.Bundle;
+import android.util.Log;
+import android.view.View;
+import android.widget.Button;
+import android.widget.TableRow;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.appcompat.app.AppCompatActivity;
+
+import com.google.firebase.database.DataSnapshot;
+import com.google.firebase.database.DatabaseError;
+import com.google.firebase.database.DatabaseReference;
+import com.google.firebase.database.FirebaseDatabase;
+import com.google.firebase.database.ValueEventListener;
+
+public class PermitApprovalActivity extends AppCompatActivity {
+
+ private DatabaseReference databaseReference;
+ private static final String TAG = "PermitApprovalActivity";
+
+ private Button updateButton;
+ private TableRow secondRow;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_permit_approval);
+
+ // Replace "your_project_name" with your actual Firebase project name
+ databaseReference = FirebaseDatabase.getInstance().getReference().child("Harvest Applications");
+
+ updateButton = findViewById(R.id.btnUpdate);
+ secondRow = findViewById(R.id.secondRow); // Assuming you have a TableRow with this ID in your XML layout
+
+ updateButton.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ fetchDataFromFirebaseForSecondRow();
+ }
+ });
+
+ fetchDataFromFirebaseForSecondRow();
+ }
+
+ private void fetchDataFromFirebaseForSecondRow() {
+ databaseReference.addListenerForSingleValueEvent(new ValueEventListener() {
+ @Override
+ public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
+ // Assuming "Harvest Applications" is a direct child of the root
+ DataSnapshot harvestApplicationsSnapshot = dataSnapshot.child("Harvest Applications");
+
+ // Assuming the second row data is stored under a specific child (e.g., "record1")
+ DataSnapshot secondRowDataSnapshot = harvestApplicationsSnapshot.child("record1");
+
+ // Assuming you have TextViews in the second row with IDs userarea, usercounty, etc.
+ updateTextView(secondRow, R.id.userarea, secondRowDataSnapshot.child("userarea").getValue(String.class));
+ updateTextView(secondRow, R.id.usercounty, secondRowDataSnapshot.child("usercounty").getValue(String.class));
+ // Add similar lines for other fields
+
+ // Update the UI for other fields as needed
+ }
+
+ @Override
+ public void onCancelled(@NonNull DatabaseError databaseError) {
+ Log.w(TAG, "fetchDataFromFirebaseForSecondRow:onCancelled", databaseError.toException());
+ }
+ });
+ }
+
+ private void updateTextView(TableRow row, int textViewId, String value) {
+ TextView textView = row.findViewById(textViewId);
+ if (textView != null) {
+ textView.setText(value);
+ }
+ }
+}
diff --git a/app/src/main/res/drawable/ic_baseline_home_repair_service_24.xml b/app/src/main/res/drawable/ic_baseline_home_repair_service_24.xml
deleted file mode 100755
index e563c7d..0000000
--- a/app/src/main/res/drawable/ic_baseline_home_repair_service_24.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
diff --git a/app/src/main/res/drawable/ic_baseline_mood_24.xml b/app/src/main/res/drawable/ic_baseline_mood_24.xml
deleted file mode 100755
index a26c0dc..0000000
--- a/app/src/main/res/drawable/ic_baseline_mood_24.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/ic_baseline_more_vert_24.xml b/app/src/main/res/drawable/ic_baseline_more_vert_24.xml
deleted file mode 100755
index 6a7f274..0000000
--- a/app/src/main/res/drawable/ic_baseline_more_vert_24.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/ic_baseline_notifications_24.xml b/app/src/main/res/drawable/ic_baseline_notifications_24.xml
deleted file mode 100755
index 21cb88d..0000000
--- a/app/src/main/res/drawable/ic_baseline_notifications_24.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/ic_baseline_people_24.xml b/app/src/main/res/drawable/ic_baseline_people_24.xml
deleted file mode 100755
index 2989eb6..0000000
--- a/app/src/main/res/drawable/ic_baseline_people_24.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/ic_baseline_person_24.xml b/app/src/main/res/drawable/ic_baseline_person_24.xml
deleted file mode 100755
index bd8dc80..0000000
--- a/app/src/main/res/drawable/ic_baseline_person_24.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/ic_baseline_send_24.xml b/app/src/main/res/drawable/ic_baseline_send_24.xml
deleted file mode 100755
index 5b10648..0000000
--- a/app/src/main/res/drawable/ic_baseline_send_24.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/ic_dashboard_black_24dp.xml b/app/src/main/res/drawable/ic_dashboard_black_24dp.xml
deleted file mode 100755
index 4582864..0000000
--- a/app/src/main/res/drawable/ic_dashboard_black_24dp.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/ic_home.xml b/app/src/main/res/drawable/ic_home.xml
deleted file mode 100755
index 3a4c7da..0000000
--- a/app/src/main/res/drawable/ic_home.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/ic_home_black_24dp.xml b/app/src/main/res/drawable/ic_home_black_24dp.xml
deleted file mode 100755
index bce7db4..0000000
--- a/app/src/main/res/drawable/ic_home_black_24dp.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/ic_launcher.jpg b/app/src/main/res/drawable/ic_launcher.jpg
deleted file mode 100755
index 0936c42..0000000
Binary files a/app/src/main/res/drawable/ic_launcher.jpg and /dev/null differ
diff --git a/app/src/main/res/drawable/ic_menu_camera.xml b/app/src/main/res/drawable/ic_menu_camera.xml
deleted file mode 100755
index 41688d5..0000000
--- a/app/src/main/res/drawable/ic_menu_camera.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
diff --git a/app/src/main/res/drawable/ic_menu_gallery.xml b/app/src/main/res/drawable/ic_menu_gallery.xml
deleted file mode 100755
index ff8ce52..0000000
--- a/app/src/main/res/drawable/ic_menu_gallery.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/ic_menu_slideshow.xml b/app/src/main/res/drawable/ic_menu_slideshow.xml
deleted file mode 100755
index ae51e49..0000000
--- a/app/src/main/res/drawable/ic_menu_slideshow.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/ic_notifications_black_24dp.xml b/app/src/main/res/drawable/ic_notifications_black_24dp.xml
deleted file mode 100755
index 9676278..0000000
--- a/app/src/main/res/drawable/ic_notifications_black_24dp.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/ic_profile.xml b/app/src/main/res/drawable/ic_profile.xml
deleted file mode 100755
index 3481c02..0000000
--- a/app/src/main/res/drawable/ic_profile.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/ic_round_chat_24.xml b/app/src/main/res/drawable/ic_round_chat_24.xml
deleted file mode 100755
index 045f5f0..0000000
--- a/app/src/main/res/drawable/ic_round_chat_24.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/ic_transactions.xml b/app/src/main/res/drawable/ic_transactions.xml
deleted file mode 100755
index 4cc0c1f..0000000
--- a/app/src/main/res/drawable/ic_transactions.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/ic_update.xml b/app/src/main/res/drawable/ic_update.xml
deleted file mode 100755
index 21cb88d..0000000
--- a/app/src/main/res/drawable/ic_update.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
diff --git a/app/src/main/res/drawable/leflet.png b/app/src/main/res/drawable/leflet.png
deleted file mode 100755
index f7fb819..0000000
Binary files a/app/src/main/res/drawable/leflet.png and /dev/null differ
diff --git a/app/src/main/res/drawable/login.jpg b/app/src/main/res/drawable/login.jpg
deleted file mode 100755
index b3bb13d..0000000
Binary files a/app/src/main/res/drawable/login.jpg and /dev/null differ
diff --git a/app/src/main/res/drawable/loginback.png b/app/src/main/res/drawable/loginback.png
deleted file mode 100755
index 9f4c91c..0000000
Binary files a/app/src/main/res/drawable/loginback.png and /dev/null differ
diff --git a/app/src/main/res/drawable/morning.png b/app/src/main/res/drawable/morning.png
deleted file mode 100755
index 5739de8..0000000
Binary files a/app/src/main/res/drawable/morning.png and /dev/null differ
diff --git a/app/src/main/res/drawable/next.png b/app/src/main/res/drawable/next.png
deleted file mode 100755
index 5b2d397..0000000
Binary files a/app/src/main/res/drawable/next.png and /dev/null differ
diff --git a/app/src/main/res/drawable/roundbox.xml b/app/src/main/res/drawable/roundbox.xml
deleted file mode 100755
index c3a4ffc..0000000
--- a/app/src/main/res/drawable/roundbox.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/drawable/roundbuttongren.xml b/app/src/main/res/drawable/roundbuttongren.xml
old mode 100755
new mode 100644
index 8f8b735..ce16fdf
--- a/app/src/main/res/drawable/roundbuttongren.xml
+++ b/app/src/main/res/drawable/roundbuttongren.xml
@@ -2,4 +2,4 @@
-
\ No newline at end of file
+
diff --git a/app/src/main/res/drawable/roundcolorless.xml b/app/src/main/res/drawable/roundcolorless.xml
deleted file mode 100755
index 8443dca..0000000
--- a/app/src/main/res/drawable/roundcolorless.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/drawable/rounded_corner.xml b/app/src/main/res/drawable/rounded_corner.xml
deleted file mode 100755
index 65270da..0000000
--- a/app/src/main/res/drawable/rounded_corner.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/drawable/rounded_corner1.xml b/app/src/main/res/drawable/rounded_corner1.xml
deleted file mode 100755
index 49faf16..0000000
--- a/app/src/main/res/drawable/rounded_corner1.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/drawable/roundedgebutton.xml b/app/src/main/res/drawable/roundedgebutton.xml
deleted file mode 100755
index 424f038..0000000
--- a/app/src/main/res/drawable/roundedgebutton.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/drawable/services.png b/app/src/main/res/drawable/services.png
deleted file mode 100755
index b9b8290..0000000
Binary files a/app/src/main/res/drawable/services.png and /dev/null differ
diff --git a/app/src/main/res/drawable/side_nav_bar.xml b/app/src/main/res/drawable/side_nav_bar.xml
deleted file mode 100755
index a33798b..0000000
--- a/app/src/main/res/drawable/side_nav_bar.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/drawable/sugar.png b/app/src/main/res/drawable/sugar.png
deleted file mode 100755
index 7f2077a..0000000
Binary files a/app/src/main/res/drawable/sugar.png and /dev/null differ
diff --git a/app/src/main/res/drawable/sugarcut.png b/app/src/main/res/drawable/sugarcut.png
deleted file mode 100755
index 5838d2c..0000000
Binary files a/app/src/main/res/drawable/sugarcut.png and /dev/null differ
diff --git a/app/src/main/res/drawable/tabrounded.xml b/app/src/main/res/drawable/tabrounded.xml
deleted file mode 100755
index 64a527f..0000000
--- a/app/src/main/res/drawable/tabrounded.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/drawable/titlen_background.xml b/app/src/main/res/drawable/titlen_background.xml
deleted file mode 100755
index ca3826a..0000000
--- a/app/src/main/res/drawable/titlen_background.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/src/main/res/layout-v16/activity_login.xml b/app/src/main/res/layout-v16/activity_login.xml
index af1ca80..535b98a 100755
--- a/app/src/main/res/layout-v16/activity_login.xml
+++ b/app/src/main/res/layout-v16/activity_login.xml
@@ -104,7 +104,7 @@
android:drawableTint="#000000"
android:ems="10"
android:hint="Password."
- android:inputType="numberPassword"
+ android:inputType="textPassword"
android:paddingLeft="9dp"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.AppCompat.Display2"
diff --git a/app/src/main/res/layout/activity_admin_dashboard.xml b/app/src/main/res/layout/activity_admin_dashboard.xml
index 08e20bd..136ea39 100644
--- a/app/src/main/res/layout/activity_admin_dashboard.xml
+++ b/app/src/main/res/layout/activity_admin_dashboard.xml
@@ -4,20 +4,22 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@drawable/leflet"
+ android:background="@drawable/back2"
tools:context=".AdminDashboardActivity">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/app/src/main/res/layout/activity_admin_login.xml b/app/src/main/res/layout/activity_admin_login.xml
index 569c574..cc3973f 100755
--- a/app/src/main/res/layout/activity_admin_login.xml
+++ b/app/src/main/res/layout/activity_admin_login.xml
@@ -88,7 +88,7 @@
android:drawableTint="#000000"
android:ems="10"
android:hint="Password."
- android:inputType="numberPassword"
+ android:inputType="textPassword"
android:paddingLeft="9dp"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.AppCompat.Display2"
diff --git a/app/src/main/res/layout/activity_driver_leave_form.xml b/app/src/main/res/layout/activity_driver_leave_form.xml
index 7094121..9e0e9cf 100644
--- a/app/src/main/res/layout/activity_driver_leave_form.xml
+++ b/app/src/main/res/layout/activity_driver_leave_form.xml
@@ -1,15 +1,16 @@
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/morning"
+ tools:context=".Messaging">
-
+
+
+ android:textSize="24sp" />
-
-
-
-
-
-
+ android:textColorHint="@android:color/darker_gray"
+ android:textSize="24sp" />
+ android:textSize="24sp" />
+ android:textSize="24sp" />
-
diff --git a/app/src/main/res/layout/activity_driver_login.xml b/app/src/main/res/layout/activity_driver_login.xml
index a26c1c5..8c27c59 100755
--- a/app/src/main/res/layout/activity_driver_login.xml
+++ b/app/src/main/res/layout/activity_driver_login.xml
@@ -130,7 +130,7 @@
android:drawableTint="#000000"
android:ems="10"
android:hint="Password."
- android:inputType="numberPassword"
+ android:inputType="textPassword"
android:paddingLeft="9dp"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.AppCompat.Display2"
diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml
index 6940d8b..2089867 100755
--- a/app/src/main/res/layout/activity_login.xml
+++ b/app/src/main/res/layout/activity_login.xml
@@ -106,7 +106,7 @@
android:drawableTint="#000000"
android:ems="10"
android:hint="Password."
- android:inputType="numberPassword"
+ android:inputType="textPassword"
android:paddingLeft="9dp"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.AppCompat.Display2"
diff --git a/app/src/main/res/layout/activity_permit_approval.xml b/app/src/main/res/layout/activity_permit_approval.xml
new file mode 100644
index 0000000..ae56b70
--- /dev/null
+++ b/app/src/main/res/layout/activity_permit_approval.xml
@@ -0,0 +1,371 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_services.xml b/app/src/main/res/layout/activity_services.xml
index 8a28c15..d80cbbc 100755
--- a/app/src/main/res/layout/activity_services.xml
+++ b/app/src/main/res/layout/activity_services.xml
@@ -226,16 +226,6 @@
android:textSize="34sp"
android:textStyle="normal" />
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
index f1a536f..d050739 100755
--- a/build.gradle
+++ b/build.gradle
@@ -2,13 +2,13 @@
buildscript {
repositories {
google()
- jcenter()
+ mavenCentral()
mavenCentral()
}
dependencies {
- classpath 'com.android.tools.build:gradle:8.1.2'
- classpath 'com.google.gms:google-services:4.3.14'
+ classpath 'com.android.tools.build:gradle:8.1.4'
+ classpath 'com.google.gms:google-services:4.4.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
@@ -18,11 +18,14 @@ buildscript {
allprojects {
repositories {
google()
+ maven {
+ url "https://maven.google.com"
+ }
mavenCentral()
- jcenter() // Warning: this repository is going to shut down soon
+ mavenCentral() // Warning: this repository is going to shut down soon
}
}
-task clean(type: Delete) {
+tasks.register('clean', Delete) {
delete rootProject.buildDir
}
\ No newline at end of file