Showing posts with label Class 3. Show all posts
Showing posts with label Class 3. Show all posts

Class 3 ( Equal Parts Layout)

 Equal Parts Layout


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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="wrap_content"
tools:context=".MainActivity"
android:layout_marginTop="50dp"
>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:orientation="horizontal"
android:gravity="center"
android:background="#2196F3"
android:layout_margin="10dp"
android:weightSum="60"
>

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Class 1"
android:textSize="20sp"
android:textStyle="bold"
android:textColor="#FFFFFF"
android:layout_weight="30"
/>

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Class 1"
android:textSize="20sp"
android:textStyle="bold"
android:textColor="#FFFFFF"
android:layout_weight="30"
/>

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Class 1"
android:textSize="20sp"
android:textStyle="bold"
android:textColor="#FFFFFF"
android:layout_weight="30"
/>



</LinearLayout>