Practical No
Practical No
android:background="#FFC107"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#2196F3"
android:text="Hello World!"
android:textColor="#000000"
android:textSize="24sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
android:background="#FFC107" tools:context=".MainActivity">
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#2196F3"
android:text="Hello World!"
android:textColor="#000000" android:textSize="24sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.Constra
Ans 2:
<TableLayout 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="#f6f6f6" tools:context=".MainActivity">
</TableRow>
<TextView android:id="@+id/text1"
<TextView android:id="@+id/text2"
</TableRow>
<TextView android:id="@+id/text3"
</TableRow>
<TextView android:id="@+id/text4"
<TextView android:id="@+id/text5"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Name:
Naman ; Marks: 97" android:textColor="#161d6f" android:textSize="30sp"
android:textStyle="bold" /></TableRow>
<TextView android:id="@+id/text6"
</TableRow>
</TableLayout>
Practical No. 5
Ans 1.
<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>
</androidx.constraintlayout.widget.ConstraintLayout>
Ans 2:
<AbsoluteLayout 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"
<TextView android:id="@+id/textView"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_x="12dp" android:layout_y="338dp" android:text="Name: Heet"
android:textColor="#161d6f" android:textSize="18sp" android:textStyle="bold" />
</AbsoluteLayout>
Practical No. 6
<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">
android:layout_column="2"
</TableRow>
</TableRow>
<TextView android:id="@+id/textView6"
android:layout_width="170dp"
android:layout_height="wrap_content" android:layout_column="2"
</TableRow>
</TableRow>
<TextView android:id="@+id/textView10"
android:layout_width="170dp"
</TableRow>
</TableLayout>
</androidx.constraintlayout.widget.ConstraintLayout>