Skip to main content

Posts

Showing posts from April, 2019

Add Auto Complete Textview To Your App

Add AutoCompleteTextview To Your App

1)Navigate to activity_main.xml .You have to add some code here. Watch the above  video for reference . After adding the code, your activity_main.xml will look like this:
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout     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:layout_height="match_parent"     android:orientation="vertical"     tools:context=".MainActivity">

    <AutoCompleteTextView         android:id="@+id/autocompleteView"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_alignParentStart="true"         android:layout_alignParentTop="true"         android:hint=&quo…

Working With Android Studio

Working With Android Studio   [# 1]


Video Link:       https://youtu.be/9zcki3STZ00


Please Watch The Above Video If You haven't Watched It Already


1)  Open Android Studioand create a new project .
2) Give a name for your application and also set the package name.


3) Set The API level




4) Choose an Activity



5) Set the Activity Name and Layout Name




6) Click On Finish. Your project will be ready in few minutes.

7) Navigate to the layout directory and open activity_main.xml file

8)The code used in the video is given here
<?xml version="1.0" encoding="utf-8"?><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:layout_height="match_parent"     android:orientation="vertical"     tools:context=".MainActivity">

Did you like this tutorial ?