Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Widget, Text Field, Large, Medium and Small Text is missing all I have is Plain which gives a Name. How can I get it and others?

enter image description here

I'm looking at Youtube examples and I see the instructor has Widgets I don't have, Like different size Text Fields and an analogue clock.

Is there somewhere I can get more Widgets?

like image 269
Nigel P Avatar asked Jan 11 '17 11:01

Nigel P


People also ask

What is plain text in Android Studio?

Plaintext is nothing but the Edittext. It has changed the name in Android studio but if you check into Design view you will get to know that it still has name of Edittext only. Usages. Textview : should be used for uneditable text which user wants to read but not to manipulate.

Which attribute increases or decreases the font size of TextView in Android Studio?

app:autoSizeMinTextSize=”10sp” using this attribute the TextView will be resized up to the size of 10sp and app:autoSizeStepGranularity=”2sp” using this attribute we are uniformly reducing the size of the TextView as 2sp when it goes out of the screen.


2 Answers

I obtained a text size same as to the "tutorial" using:

android:textAppearance="@style/TextAppearance.AppCompat.Large"
like image 156
Jeffrey Eggenberger Avatar answered Oct 16 '22 20:10

Jeffrey Eggenberger


Looks like AndroidStudio has undergone some change. Best option is to enter the "Text" mode and type the style yourself. For ex. if you need an equivalent of LargeText view, then add a TextView and move onto the Text mode and add this line:

android:textAppearance="@style/?android:attr/textAppearanceLarge"

Or you could also edit the properties of TextView too.

like image 34
Prakash Sathiyamoorthy Avatar answered Oct 16 '22 21:10

Prakash Sathiyamoorthy