Mad Projecct
Mad Projecct
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
app:srcCompat="@drawable/wallet"
tools:ignore="ContentDescription" />
</RelativeLayout>
2
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:padding="16dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="#008000"
android:padding="16dp">
<ImageView
android:id="@+id/appLogo"
android:layout_width="200dp"
android:layout_height="200dp"
android:contentDescription="Wallet Logo"
android:src="@drawable/wallet"
android:layout_marginBottom="20dp"
android:layout_gravity="center"
tools:ignore="HardcodedText" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Different sign-in options are given below."
android:textSize="20sp"
android:textColor="#000000"
android:textStyle="bold"
android:gravity="center"
android:layout_marginTop="10dp"
tools:ignore="HardcodedText" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<Button
android:id="@+id/Email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Login"
android:backgroundTint="#008000"
android:textColor="#FFFFFF"
android:layout_marginTop="10dp"
tools:ignore="HardcodedText,VisualLintButtonSize" />
<Button
android:id="@+id/btnSignUp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Sign Up"
android:backgroundTint="#008000"
android:textColor="#FFFFFF"
android:layout_marginTop="10dp"
tools:ignore="HardcodedText,VisualLintButtonSize" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="By signing in or connecting with our services,
you agree to our Terms of Service and Privacy Policy."
android:textSize="14sp"
android:textColor="#000000"
android:textStyle="bold"
android:gravity="center"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
tools:ignore="HardcodedText" />
</LinearLayout>
</LinearLayout>
</ScrollView>
3.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical">
<ImageView
android:id="@+id/menuButton"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@drawable/menu"
android:contentDescription="@string/menu"
android:layout_alignParentStart="true" />
<ImageView
android:id="@+id/notificationButton"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@drawable/bell"
android:contentDescription="@string/notifications"
android:layout_alignParentEnd="true" />
</RelativeLayout>
<!-- Content Section -->
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="16dp"
android:weightSum="2">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="#DDDDDD"
android:padding="16dp"
android:layout_marginTop="8dp">
<TextView
android:id="@+id/account_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/cash"
android:textColor="#000000"
android:textSize="14sp" />
<TextView
android:id="@+id/account_balance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/pkr_0"
android:textColor="#000000"
android:textSize="14sp"
android:layout_marginStart="16dp" />
<Button
android:id="@+id/add_account_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/add_account"
android:layout_marginStart="16dp"
android:background="?android:attr/selectableItemBackground" />
</LinearLayout>
<ImageView
android:id="@+id/premium_icon"
android:layout_width="40dp"
android:layout_height="40dp"
android:contentDescription="@string/image11"
android:src="@drawable/star" />
<TextView
android:id="@+id/premium_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/join_our_premium_club"
android:textColor="#000000"
android:textSize="18sp"
android:textStyle="bold"
android:layout_marginTop="8dp" />
<TextView
android:id="@+id/premium_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/maximize_your_financial_potential_cancel_anyti
me"
android:textColor="#666666"
android:textSize="14sp"
android:layout_marginTop="8dp" />
<Button
android:id="@+id/get_premium_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/get_wallet_premium"
android:backgroundTint="#8000FF"
android:textColor="#FFFFFF"
android:layout_marginTop="16dp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp"
android:layout_marginTop="16dp">
<TextView
android:id="@+id/expenses_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Expenses structure"
android:textColor="#000000"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/expenses_subtitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="LAST 30 DAYS"
android:textColor="#666666"
android:textSize="14sp"
android:layout_marginTop="4dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<TextView
android:id="@+id/expenses_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PKR 0"
android:textColor="#000000"
android:textSize="16sp"
android:layout_marginTop="4dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize" />
<ImageView
android:id="@+id/expenses_chart"
android:layout_width="match_parent"
android:layout_height="150dp"
android:src="@drawable/chart"
android:contentDescription="ExpensesChart"
android:layout_marginTop="8dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<TextView
android:id="@+id/add_record"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ADD RECORD"
android:textColor="#0000FF"
android:textStyle="bold"
android:layout_marginTop="8dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp"
android:layout_marginTop="16dp">
<TextView
android:id="@+id/lastrecord"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Last records overview"
android:textColor="#000000"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/record1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="LAST 30 DAYS"
android:textColor="#666666"
android:textSize="14sp"
android:layout_marginTop="4dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<TextView
android:id="@+id/record"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ADD RECORD"
android:textColor="#0000FF"
android:textStyle="bold"
android:layout_marginTop="8dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp"
android:layout_marginTop="16dp">
<TextView
android:id="@+id/balance_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Expenses structure"
android:textColor="#000000"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/today_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TODAY"
android:textColor="#666666"
android:textSize="14sp"
android:layout_marginTop="4dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<TextView
android:id="@+id/balance_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PKR 0"
android:textColor="#000000"
android:textSize="16sp"
android:layout_marginTop="4dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize" />
<ImageView
android:id="@+id/balance_chart"
android:layout_width="match_parent"
android:layout_height="150dp"
android:src="@drawable/balance"
android:contentDescription="balance Chart"
android:layout_marginTop="8dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<TextView
android:id="@+id/addrecord"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ADD RECORD"
android:textColor="#0000FF"
android:textStyle="bold"
android:layout_marginTop="8dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
4.
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF"
tools:ignore="UselessParent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="#008000">
</LinearLayout>
<TextView
android:id="@+id/list_of_accounts_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="BUDGET RECORDS"
android:textColor="#000000"
android:textSize="16sp"
android:textStyle="bold"
android:layout_marginTop="16dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="#DDDDDD"
android:padding="16dp"
android:layout_marginTop="8dp">
<TextView
android:id="@+id/account_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="SPENDING"
android:textColor="#000000"
android:textSize="14sp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<TextView
android:id="@+id/account_balance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PKR 100000"
android:textColor="#000000"
android:textSize="14sp"
android:layout_marginStart="16dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<Button
android:id="@+id/add_account_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="SAVING ACCOUNT"
android:textColor="@color/black"
android:textSize="14sp"
android:layout_marginStart="16dp"
android:background="?android:attr/selectableItemBackground"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp"
android:layout_marginTop="16dp">
<ImageView
android:id="@+id/premium_icon"
android:layout_width="40dp"
android:layout_height="40dp"
android:src="@drawable/star"
android:contentDescription="Premium Icon"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<TextView
android:id="@+id/premium_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="SAVING ACCOUNT INFORMATION"
android:textColor="#000000"
android:textSize="18sp"
android:textStyle="bold"
android:layout_marginTop="8dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<TextView
android:id="@+id/premium_description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="CHECK YOUR DAILY SAVING INFORMATION
AND FUND ADDED TO YOUR INFORMATION HERE"
android:textColor="#666666"
android:textSize="14sp"
android:layout_marginTop="8dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<Button
android:id="@+id/get_premium_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="CHECK ACCOUNT"
android:backgroundTint="#8000FF"
android:textColor="#FFFFFF"
android:layout_marginTop="16dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp"
android:layout_marginTop="16dp">
<TextView
android:id="@+id/expenses_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="FUND TRANSFER"
android:textColor="#000000"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/expenses_subtitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="LAST 30 DAYS"
android:textColor="#666666"
android:textSize="14sp"
android:layout_marginTop="4dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<TextView
android:id="@+id/expenses_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PKR 200000"
android:textColor="#000000"
android:textSize="16sp"
android:layout_marginTop="4dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize" />
<ImageView
android:id="@+id/expenses_chart"
android:layout_width="match_parent"
android:layout_height="150dp"
android:src="@drawable/chart"
android:contentDescription="ExpensesChart"
android:layout_marginTop="8dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<TextView
android:id="@+id/add_record"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="CHECK TRANSACTION"
android:textColor="#0000FF"
android:textStyle="bold"
android:layout_marginTop="8dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp"
android:layout_marginTop="16dp">
<TextView
android:id="@+id/lastrecord"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Last records overview"
android:textColor="#000000"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/record1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="LAST 30 DAYS"
android:textColor="#666666"
android:textSize="14sp"
android:layout_marginTop="4dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<TextView
android:id="@+id/record"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="VIEW RECORD"
android:textColor="#0000FF"
android:textStyle="bold"
android:layout_marginTop="8dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp"
android:layout_marginTop="16dp">
<TextView
android:id="@+id/balance_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Expenses structure"
android:textColor="#000000"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"
android:textSize="16sp"
android:textStyle="bold" />
<TextView
android:id="@+id/today_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TODAY"
android:textColor="#666666"
android:textSize="14sp"
android:layout_marginTop="4dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<TextView
android:id="@+id/balance_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PKR 0"
android:textColor="#000000"
android:textSize="16sp"
android:layout_marginTop="4dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize" />
<ImageView
android:id="@+id/balance_chart"
android:layout_width="match_parent"
android:layout_height="150dp"
android:src="@drawable/balance"
android:contentDescription="balance Chart"
android:layout_marginTop="8dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
<TextView
android:id="@+id/addrecord"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ADD RECORD"
android:textColor="#0000FF"
android:textStyle="bold"
android:layout_marginTop="8dp"
tools:ignore="ButtonStyle,HardcodedText,NestedWeights,VisualLintBut
tonSize"/>
</LinearLayout>
</LinearLayout>
</ScrollView>
</FrameLayout>
1.
package com.example.wallet30;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import androidx.appcompat.app.AppCompatActivity;
public class
MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
2
package com.example.wallet30;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;
import com.example.wallet30.forthactivity;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_thirdactivity);
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;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Enable edge-to-edge to take full advantage of the screen
EdgeToEdge.enable(this);
setContentView(R.layout.activity_forthactivity);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.accou
ntButton), (v, insets) -> {
// Get insets (system bars padding)
Insets systemBars =
insets.getInsets(WindowInsetsCompat.Type.systemBars());
// Apply system bar padding to the view to avoid UI clipping
v.setPadding(systemBars.left, systemBars.top,
systemBars.right, systemBars.bottom);
return insets;
});
}
}