Android Text Fields

Android Text Fields

A text field allows the user to type text into your app. It can be either single line or multi-line. Touching a text field places the cursor and automatically displays the keyboard. In addition to typing, text fields allow for a variety of other activities, such as...
Android TextView

Android TextView

The TextView view is used to display text to the user. This is the most basic view and one that you will frequently use when you develop Android applications.  If you need to allow users to edit the text displayed, you should use the subclass of TextView, EditText,...
Supporting Different Devices

Supporting Different Devices

Android devices come in many shapes and sizes all around the world. With a wide range of device types, you have an opportunity to reach a huge audience with your app. In order to be as successful as possible on Android, your app needs to adapt to various device...
Android Screen Orientation

Android Screen Orientation

The screenOrientation is the attribute of activity element. The orientation of android activity can be portrait, landscape, sensor, unspecified etc. You need to define it in the AndroidManifest.xml file. For example: <activity android:name=".MainActivity"...
Getting to Know the Android User Interface

Getting to Know the Android User Interface

What You Will Learn In This Chapter The various ViewGroups you can use to layout your views How to adapt and manage changes in screen orientation How to create the UI programmatically How to listen for UI notifications In this chapter, you learn the details about...
Passing Data Between Activities

Passing Data Between Activities

Moving From One Activity to Another Activity Start Another Activity You can start another activity within the same application by calling startActivity(), passing it an Intent that describes the activity “class name” you want to start. An intent contains the action...
Moving From One Activity To Another Activity

Moving From One Activity To Another Activity

Starting Another Activity In this tutorial I will be discussing about switching between one activity to another activities. First Method :- In Android Studio, from the res/layout directory, edit the content_my.xml file. Add the android:id="@+id/button" attribute to...
Adding Action Buttons In Toolbar

Adding Action Buttons In Toolbar

Now we need to add some action buttons in Toolbar, Let’s open menu_main.xml located under res ⇒ menu and add the search menu item as mentioned below. <menu xmlns:android="http://schemas.android.com/apk/res/android"...
Android Material Design

Android Material Design

In this tutorial we are going to learn the basic steps of Material Design development Customize the Material Color Material Design provides set of properties to customize the Material Design Color theme. But we use five primary attributes to customize overall theme....
Building A Simple Android Application Part – 2

Building A Simple Android Application Part – 2

After completing the previous lesson, you have an android application that shows an activity with a text field and a button. In this lesson, you’ll add some code to MainActivity that show a Toast Message when the user clicks the Submit button. Respond to the...
Subscribe To Android Learning

Subscribe To Android Learning

Join our mailing list to receive the latest android tutorials from our site.

You have Successfully Subscribed!