android adapters 2 638

Android Adapters

November 8, 2018 admin 4

Android provides several sub classes of Adapter that are useful for retrieving different kinds of data and building views for an Adapter View . The two most common adapters are: 1. Array Adapter 2. Simple Customer Adapter Array Adapter ArrayAdapter adapter = new ArrayAdapter<String>(this,         android.R.layout.simple_list_item_1, myStringArray); The arguments for this […]



Android Layouts

November 8, 2018 admin 3

A generic ViewGroup that defines a structure for the views it contains. 1.Linear Layout 2.Relative Layout 3.Table Layout 4.List View 5.Grid View 6.Web View      Linear Layout Child Views are arranged in a horizontal or vertical row. <LinearLayout     android:layout_width=”match_parent”     android:layout_height=”wrap_content”     android:background=”@color/bg”     android:clipToPadding=”false”     android:gravity=”center”     […]


699e9e1c 770f 4819 85c5 371a21e6946c

User Interfaces-Basics of UI Design

November 6, 2018 admin 148

 All user interface elements in an Android app are built using View and ViewGroup objects. View An object that draws something on the screen that the user can interact with. ViewGroup An object that holds other View(and ViewGroup)  You can use two ways to creating Views Dynamically Add By Coding         […]


1 QiMpyUT9oQS6dezm2NIKaA

Services in Android

October 24, 2018 admin 23

A service is a component that runs in the background to perform long-running operations To perform work for remote processes. Runs in Background (No Interfaces) Eg     public class BackgroundSoundService extends Service { private static final String TAG = null; MediaPlayer player; public IBinder onBind(Intent arg0) { return null; } […]


android basic lifecycle 800 alpha

Android Life cycle

October 17, 2018 admin 5

Android Life cycle onCreate() = Called when the activity is first created onStart() =Called just after it’s creation or by restart method after onStop(). Here Activity start becoming visible to user onResume() = Called when Activity is visible to user and user can interact with it onPause() =Called when Activity content is […]