Mobile Application Development Practical 6
Mobile Application Development Practical 6 Question 1 Write a program to display 10 students basic information in a table form using Table layout. 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"> <TableLayout android:layout_width="match_parent" android:layout_height="match_parent"> <TableRow android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="10dp"> <TextView android:id="@+id/textView" android:layout_width="100dp" android:layout_height="wrap_content" android:text="Roll No" /> <TextView android:id="@+id/textView" android:layout_width="301dp" android:layout_height="wrap_content" android:text="Student Name" />
Mobile Application Development Practical 6 Read More »
