The project describes how a button press responds. Underlying Algorithm: Basic description of algorithm in step by step form: 1.) Create a Project ButtonExample 2.) Make sure to add following in your res/values/strings.xml file: Hello World, ButtonExample! ButtonExample Click Me You have Clicked Me 3.) Insert following code in your main.xml: […]
Read More...The project describes How to implement Action Bar for your application. The Action Bar is a widget for activities that replaces the traditional title bar at the top of the screen. By default, the Action Bar includes the application logo on the left side, followed by the activity title, and any available items from the […]
Read More...The project describes how to draw a Dialog Box in your application. Underlying Algorithm: Basic description of algorithm in step by step form: 1.) Create a Project DialogExample 2.) Make sure to add following in your res/values/strings.xml file: Hello World, DialogExample! DialogExample Difficulty Easy Medium Hard 3.) Run the application. Steps to […]
Read More...The project describes how to implement gestures for your application. Underlying Algorithm: Basic description of algorithm in step by step form: 1.) Create a Project GestureExample 2.) Insert following code in your main.xml: android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent” > <TextView android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:text=”Try to draw the gesture” /> <android.gesture.GestureOverlayView android:id=”@+id/gestures” android:layout_width=”fill_parent” android:layout_height=”0dip” android:layout_weight=”1.0″ /> […]
Read More...The project describes How to implement a menu which which uses Check-able items. Underlying Algorithm: Basic description of algorithm in step by step form: 1.) Create a Project MyCheckBoxMenu 2.) Create and Open the res/menu/menu.xml file and insert the following: </pre> <menu>android:title=”@string/settings_title” /> android:title=”@string/back_title” /> android:title=”@string/exit_title” /></menu> <pre> 3.) Define the required […]
Read More...The project describes how to display notifications in your application. Underlying Algorithm: Basic description of algorithm in step by step form: 1.) Create a Project NotificationExample 2.) Make sure to add following in your res/values/strings.xml file: Notification Example, press the button Notification to add a notification. NotificationExample Show Notification This is the activity started […]
Read More...The project describes the use of linear layout. Underlying Algorithm: Basic description of algorithm in step by step form: 1.) Create a Project MyFirstLinearLayout. 2.) It will generate some default files like MyFirstLinearLayout .java, main.xml, AndroidManifest.xml, Strings.xml. 3.) The AndroidManifest.xml defines an Activity which is the entry for any android application. 4.) The main.xml declares […]
Read More...The project describes the use of relative layout. Underlying Algorithm: Basic description of algorithm in step by step form: 1.) Create a Project MyFirstRelativeLayout. 2.) Open the res/layout/main.xml file and insert the following: android:layout_width=”fill_parent” android:layout_height=”fill_parent”> <TextView android:id=”@+id/label” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:text=”Type here:”/> <EditText android:id=”@+id/entry” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:background=”@android:drawable/editbox_background” android:layout_below=”@id/label”/> <Button android:id=”@+id/ok” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_below=”@id/entry” android:layout_alignParentRight=”true” android:layout_marginLeft=”10dip” […]
Read More...The project describes about how you can implement context menu into your application. Context menu is a floating list of menu items that appears when the user touches and holds a view that’s registered to provide a context menu. Underlying Algorithm: Basic description of algorithm in step by step form: 1.) Create a Project MyMenu […]
Read More...The project describes about how to implement Sub menu into your application. A submenu is a menu that the user can open by selecting an item in another menu. You can add a submenu to any menu (except a submenu). Submenus are useful when your application has a lot of functions that can be organized […]
Read More...