Skip to main content

Posts

Introduction to Menus

Menus been to lots of changes in android. We will study everything old and new of this API  + Options Menu   + In this chapter you will learn, + Create an options menu Place Action items on the Action Bar Create a Context menu Create a Popup menu There are three types of menus we can create in Android. 1. Options menu and app bar The options menu is the primary collection of menu items for an activity. It’s where you should place actions that have a global impact on the app, such as “Search,” “Compose email,” and “Settings.” + 2. Context menu and contextual action mode A context menu is a floating menu that appears when the user performs a long-click on an element. It provides actions that affect the selected content or context frame.The contextual action mode displays action items that affect the selected content in a bar at the top of the screen and allows the user to select multiple items. + 3. Popup menu A popup menu displays a l...

Spinner with different display text and return value

In the most basic Spinner implementation, selected item can be retrieved by calling parent.getItemAtPosition(position) in onItemSelected() method in OnItemSelectedListener. It will be the same object of the display items, as show in the spinner0 of the example. :  http://android-er.blogspot.in/2014/04/spinner-with-different-displat-text-and.html Sometimes, we want to display some meaningful text in Spinner (such as "Sunday", "Monday"...), but return some other value when any item selected (such as 0, 2...). Spinner with different display text and return value Here I show two approaches: The first one may be the simplest method, spinner1 in the example. Create another array to hold the values we want to return. And return the coresponding item on position in onItemSelected(). The second approach implement our custom class to hold the display text and the return value. And implement our custom Adapter, as shown in spinner2 in the example. package com...

Android JSP

Android Spinner Example  1.01 MB Please login to download Android UI Custom Style  1.18 MB Please login to download Android Custom Font  1.39 MB Please login to download Android Event Handle Example  979.05 KB Please login to download lksfdl sdfs ▼ Android  (19) ► Custom Font  (1) ► Custom UI  (1) ► Event Handling  (6) ► Spinner  (4) Android SDK setup Download All Android Example From Here Easy Age Calculator JavaKnowledgeQuiz: Android Quiz Application Sample Login app in android using Servlet and JSON Parsing Two Free Tools for Android Developer Working with Google Maps Android API v2 ► Core Java  (37) ► Free Projects  (2) ► Hibernate  (5) ► Jasper report  (7) ► JSF 2.0  (14) ► JSP & Servlet  (9) ► JSTL 1.1  (4) ► NetBeans  (2) ► PrimeFaces  (8) ► Software  (3) ► Spring  (1) ► Struts2 ...

Android

https://github.com/JohnsAndroidStudioTutorials HorizontalProgressBar   Java  Updated  on Mar 12 CheckboxTutorial   Java  Updated  on Mar 12 GetValueRatingBarTutorial   Java  Updated  on Mar 12 SoundButtonClick   Java  Updated  on Feb 13 StrobeToggle   Java  Updated  on Feb 12 PlayVideo   Java  Updated  on Jan 28 SwitchWifi   Java  Updated  on Jan 28 BluetoothToggle   Java  Updated  on Jan 11 WifiToggle   Java   1  Updated  on Dec 30, 2016 AkhileshKumarYadavhelp   Java  Updated  on Oct 3, 2016 GettingStartedFirebaseTutorial   Java   2  Updated  on Sep 4, 2016 AlertDialog   Java  Updated  on Aug 23, 2016 Spinner   Java  Updated...