Wednesday, February 12, 2020

Widgeting (Android Studio)

There are various kinds of widgets provided by Android. Some of them are as follows:
TextView
TextView is used to display text to the user and can be optionally edited. TextView is basically a text editor, but by default it can't be edited. Following are some of the important attributes of TextView that are frequently used.
id (the unique ID used for reference in use).Widgeting
editable (If set to true, it will function as input).
fontFamily (for family font settings used).
text (the text that will be displayed).
textSize (Size of text in units of sp)
textStyle (Style (bold, italic, bolditalic). Can be used one or more by separating with the sign "|"
normal - 0
bold - 1
Italic - 2

The full attributes of the TextView widget can be seen on the https://developer.Android.com/reference/Android/widget/TextView.html page.

Edit Text
EditText is an overlay of a TextView whose default settings are set so that it can be a little. This is a subclass defined from TextView that includes rich text editing.

Style from EditText

Button
Button is a push-button that can be clicked by the user to perform certain actions. Each Button has a default style of operating system used by the device.

Example of an Android Button

Spinner
Spinner allows you to select items from the drop down menu. For example, when you use the Gmail application, you will get a drop down menu as shown below.

Examples of Spinners in the Option Menu

Read: https://knowledgefrans.blogspot.com/2020/02/manifest-android-studio.html?m=1


No comments:

Post a Comment

ENGLISH PHRASES

YOUTUBE   ENGLISH PHRASES  no one said it was to be going easy.  tidak ada yang mengatakan itu akan berjalan mudah.  that wasn't the re...