Share this post on:

This Program will help you to build a simple Android Studio Project. You can learn how to use Layout and TextView in Android Studio.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:gravity="center">
    
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Hello Word"
        android:textStyle="bold"
        android:textColor="@color/black"
        android:textSize="18sp"
        android:padding="5dp"
        android:gravity="center">
    </TextView>
    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text=" This is a Example of how to make TextView in android studio in Xml"
        android:textColor="@color/black"
        android:textSize="18sp"
        android:padding="5dp"
        android:gravity="center">
    </TextView>

</LinearLayout>

Reuslt:

First android studio Project

Share this post on:
Avatar Raiyan

Author: Raiyan

Hi, I guess you're here because you want to know a bit about me. huh? I am not so good on talking about myself but I'll give a short about me.

My Name is Raiyan. I am a Professional Application Developer and a Blogger.
I started this website to Share my Knowledge. Here I provide all my knowledge whatever I earned till now.

One Comment

  1. Pingback: What is the Basic of Android - ArzaTechs

Leave a Comment

Your email address will not be published. Required fields are marked *