
Search In
How to create Custom Button in Android
In Android it is very easy to use buttons , eclipse Ide provides you with drag and drop functionality.But we can use different approach and create our own custom button.
create an android project, in its
Below is the example for how to bind click event on dynamically created elements.
If you having trouble with such issues, then use the below code.
Here is the HTML
<a href="#" class="button">Button</a>
<div class="list-cover"&g
In the below code I have created a drop down list consisting of three different sizes. On clicking a particular size it will display that size div along with its name.
Here is the HTMl:
<html>
<head>
<title>Controller&
When user hits the BACK-Button on his android device, the keyboard disappears. How can I catch that event? In order to track softkeyboard is open or not, this tutorial is helpfull for you, and you will easily dissmiss the softkeyboard by pressing bac
Using below code I have created a load string array value from string.xml. String is a simple resource using the value provided in the name attribute. So we can combine string resources with other simple resourecs in the xml file. Below code will cle
What is namespaces
PHP introduce NAMESPACES in 5.3 version. Namespaces are virtual container/directory to organize code structure. In php we can not share same name for two classes. For example if you are using user management plugin for your proje
If you want to create Sensor function you can use my below example code. The android platform supports three categories of sensors. 1st Motion Sensors, 2nd Environmental sensors and 3rd is Position sensors. In the below code I have used SensorEventLi
Many a times we got stuck in a case or situation where we have to pass JavaScript variables to PHP using a hidden input in a form. The solution for this situation is:
Solution:We cannot pass variable values from the current page javascript to the
In the below code I have used SpellCheckerListener interface and ovrride its method. Here I have created SpellCheckerListener class to check the spelling errors. See the below code it will clearly described how to make Spelling Checker function.
pub
In the below code first I have added a Switch button in main layout. Here I have created two-state toggle switch that can select between two options. The user may drag the thumb back and forth to choose the selected option. In MainActivity I have use
