0% found this document useful (0 votes)
10 views23 pages

Mad Projecct

MOBILE APPLICATION PROJECT
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views23 pages

Mad Projecct

MOBILE APPLICATION PROJECT
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 23

1

<?xml version="1.0" encoding="utf-8"?>


<RelativeLayout
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:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000000"
tools:context=".MainActivity">

<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>

<!-- Description Text -->


<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">

<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">

<!-- Title Section -->


<TextView
android:id="@+id/homeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/home"
android:textSize="24sp"
android:gravity="center"
android:textStyle="bold"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp" />

<!-- Top Bar with Menu and Notification Buttons -->


<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#6D2B2B"
android:padding="10dp">

<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">

<!-- Account Section -->


<Button
android:id="@+id/accountButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/account"
android:textSize="18sp"
android:textStyle="bold"
android:backgroundTint="#A87878"
android:layout_marginEnd="8dp"
android:layout_marginTop="10dp"
android:gravity="center"/>

<!-- Budget Section -->


<Button
android:id="@+id/budgetButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/budget"
android:backgroundTint="#A87879"
android:textSize="16sp"
android:textStyle="bold"
android:layout_marginStart="8dp"
android:layout_marginTop="10dp"
android:gravity="center"/>
</LinearLayout>

<!-- Accounts Section -->


<TextView
android:id="@+id/list_of_accounts_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/list_of_accounts"
android:textColor="#000000"
android:textSize="16sp"
android:textStyle="bold"
android:layout_marginTop="16dp" />

<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>

<!-- Premium Section -->


<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: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);

new Handler().postDelayed(() -> {


Intent intent = new Intent(MainActivity.this, loginpage.class);
startActivity(intent);
finish();
}, 2000);
}
}

2
package com.example.wallet30;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;

public class loginpage extends AppCompatActivity {


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_loginpage);

Button googleButton = findViewById(R.id.Email);


googleButton.setOnClickListener(view -> {

Intent intent = new Intent(loginpage.this, thirdactivity.class);


startActivity(intent);
});
Button signupButton = findViewById(R.id.btnSignUp);
signupButton.setOnClickListener(view -> {
Intent intent = new Intent(loginpage.this, thirdactivity.class);
startActivity(intent);
});
}
}
3
package com.example.wallet30;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;

import com.example.wallet30.forthactivity;

public class thirdactivity extends AppCompatActivity { // Renamed


class

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_thirdactivity);

Button accountButton = findViewById(R.id.accountButton);


Button budgetButton = findViewById(R.id.budgetButton);

// Account button click listener (Review navigation logic)


accountButton.setOnClickListener(view -> {
// Update Intent to navigate to the desired Account Activity
// Intent intent = new Intent(ThirdActivity.this,
AccountActivity.class); // Example
// startActivity(intent);
});

// Budget button click listener


budgetButton.setOnClickListener(view -> {
Intent intent = new Intent(thirdactivity.this, forthactivity.class);
startActivity(intent);
});
}
}
4
package com.example.wallet30;

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 forthactivity extends AppCompatActivity {

@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);

// Handle window insets to manage padding for system bars

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;
});
}
}

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy