Blink Text in Android
1) create a folder in res named "anim"
under this create a blink.xml file as listed below:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha android:fromAlpha="0.0"
android:toAlpha="1.0"
...
Friday, August 30, 2013
Change text background color in android
Change text background color in android
static Handler h;
protected void onCreate() {
this.h = new Handler() {
public void handleMessage(Message msg) {
switch (msg.what) {
case 0:
...
Rotate any text in android
Rotate any text in android ////// Rotate any text ///////////////////////////static int flag=0;private Handler mHandler;final Context context=this;RelativeLayout.LayoutParams par;private int mCount = 0;protected void onCreate() { mHandler = new Handler(); mHandler.post(mCountUpdater);}private Runnable mCountUpdater = new Runnable() {...
Namespace in PHP
Namespace in PHP
<?php
namespace foo;
class Robot {
static function says() {echo 'I am Terminator!';}
}
?>
<?php
namespace bar;
class RoboCop {
static function says() {echo 'I am Robocop!';}
}
?>
<?php namespace terminate;
...
Drag and Drop in html
Drag and Drop in html
<!DOCTYPE HTML>
<html>
<head>
<title>DRAG AND DROP </title>
<style type="text/css">
.box {width:300px
;height:350px;
border:3px solid #009966;}
</style><script>
function allowDrop(ev)
{ev.preventDefault();
}
function drag(ev)
{
ev.dataTransfer.setData("Text"
,ev.target.id);
}
function...