Monday, June 8, 2020

Android Beginner- EditText Example



Hello,
This article is for Beginner and people who want to learn Android .This article is about EditText Example. 

1. XML File .
activity_main -
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:gravity="center"
android:layout_height="match_parent"
tools:context=".MainActivity">
<EditText
android:id="@+id/edt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Name"/>

</LinearLayout>

No comments:

Post a Comment

If you have any doubts,Please let me know

How to exit Application when click on Back Button Android?

Hello, This article is for Beginner and people who want to learn Android .This article is about How to exit Application when click on Back B...