Mobile Application Development Practical 11
Mobile Application Development Practical 11 Question 1 Write a program to show five checkboxes and toast selected checkboxes. activity_main.xml <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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" tools:context=".MainActivity"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:layout_marginTop="50dp" android:layout_marginLeft="40dp"> <TextView android:id="@+id/textView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Select names of states from below" android:textColor="@color/purple_700" android:textSize="20dp"/> <CheckBox android:id="@+id/mah" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Maharashtra" android:layout_marginTop="10dp"/> <CheckBox android:id="@+id/guj" […]
Mobile Application Development Practical 11 Read More »