Ex.no.4 (Usage of Image Button)
Ex.no.4 (Usage of Image Button)
Step 4: Copy and Paste the desired image in the app/res/drawable location
Step 9: End.
Code:
MainActivity.java
package com.example.useimagebutton;
import androidx.appcompat.app.AppCompatActivity;
import android.widget.ImageButton;
import android.widget.Toast;
import android.view.View;
import android.view.View.OnClickListener;
import android.os.Bundle;
Result:
This Mobile Application has been created and tested successfully.