Android : Hello world!

‘Hello world’ text can be just created in the android app with the android studio. ‘Hello world’ text can be put by selecting Text from the palette section of the Design menu in the android Studio and then by selecting the TextView. Following section shows the code for the ‘Hello world!’ text in the .xml file.

<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello world !"
android:textSize="36sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

output:

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments