Android Studio Creating TextView Label

In this Android Studio article iam going to show you Creating TextView Label in Android,

so a TextViewLabel is  simple TextView that is styled like a label. for doing this we need to 

use another library. 

 

 

 

Learn How to Load Image from URL in Android Studio.

 

 

 

Also you can read more android development articles

1: Android Development Articles

 

 

 

 

So first of all you need to open your Android Studio and create a New Project, after that choose

your API Level,for this article iam using API Level 22. 

 

 

 

 

After creating of the project in Android Studio you need to open build.gradle(Module:app) and

in the dependencies section you need to add the library like this.

 

 

 

 

 

 also you need to add the JitPack repo to your root build.gradle file.

after adding  you need to sync your Android project.

 

 

 

 

Now open your activity_main.xml layout, and you need to add the library widget in their,

basically i have added three TextViewLabel in my layout. also iam using LinearLayout for this

tutorial, make sure that after adding LinearLayout give the orientation vertical.

 

 

 

 

 

You don’t need to bring changes in your Mainactivity.java file, we have just added the widget in

the Layout.

 

 

 

 

So run the complete project and this will be the result.

Android Studio Creating TextView Label
Android Studio Creating TextView Label

Subscribe and Get Free Video Courses & Articles in your Email

 

Comments are closed.

Share via
Copy link
Powered by Social Snap
×