How to edit text in android studio - Andropro

Andropro

androidtutorialro

Breaking

Home Top Ad

Responsive Ads Here

Post Top Ad

Responsive Ads Here

Tuesday, June 19, 2018

How to edit text in android studio


HOW TO EDIT TEXT IN ANDROID STUDIO:


you can easily edit the text in android studio with text attributes such as text size,text color,text width and text style, font size,modifying the text in android studio will make your app good looking and make the interface liked by the user


TEXT ATTRIBUTES:


how to change font color in android studio:

to change the font color in android studio:

android:textColor:
this attribute is used to change the font color used in the activity_main.xml

ex:android:textColor="@android:color/holo_blue_dark"
android:textSize: this attribute is used to change the font size used in activity_main.xml ex:android:textSize="50dp" android:textStyle: styles(normal,bold,italic,) values can be given with values Normal-0 Bold-1 Italic-2 android:password: to show the characters as password dots use these attrbute, possible values true or false android:textAllCaps: show all the characters in capital possible values true or false android:inputType: if you want the user to input value such as number,date,password or text use these attribute android:gravity: to scale the text in x-axis ory- axis use these attribute android:phoneNumber: if the input has the phone number then use these attribute android:maxHeight: to show the text with max height in pixels use these attribute android:maxWidth: to show the text with maximum width use these attribute android:minHeight: to show the text with minimum height in pixel use this attribute android:minWidth: to show the text with minimum width in ixels use this attribute HOW TO CHANGE THE FONT SIZE IN ANDROID STUDIO: there are two ways to change the font size by using attribute and by build option on activity_main.xml BY ATTRIBUTE: ex:android:textSize="50dp" BY BUILD OPTION:

Post Bottom Ad

Responsive Ads Here

Pages