Archive for 'Lt'

Wrapping in Corona

eg:

Forcing a download using readfile() in php

Customizing Android Fonts – Text Shadow

You can use three different attributes to customize the appearance of your text shadow:

android:shadowColor Shadow color in the same format as textColor.

android:shadowRadius Radius of the shadow specified as a floating point number.

android:shadowDx The shadow’s horizontal offset specified as a floating point number.

android:shadowDy The shadow’s vertical offset specified as a floating point number.

The floating point numbers don’t have a specific unit – they are merely arbitrary factors.

<TextView

android:layout_width=”fill_parent”

android:layout_height=”wrap_content”

android:text=”A light blue shadow.”

android:shadowColor=”#00ccff”

android:shadowRadius=”1.5″

android:shadowDx=”1″

android:shadowDy=”1″

/>

Absolute basic skeleton of a Sencha Touch project

Sencha Touch is the latest and most powerful of web app frameworks. Web apps are mobile applications that run on a web browser (just browse the URL) but, with the look, feel and functionality of a native app

There are many examples out there for Sencha Touch but, I couldn’t find one that explains the absolute basic outline of a Sencha Touch project. Here I will explain what the basic outline of a Sencha Touch project looks like:

index.html

It is always recommended not to embedded Javascript inline like this. Preferably, create a file called app.js and put the Javascript code in it. Include the js file in your HTML. So, finally you will end up with 2 files like this:
index.html

app.js

Assuming you know how to create a custom module, consider a case where you need to create a URL for your module. Follow these steps:

In your module’s config.xml file:

Create a controller file TestController.php in your module’s controller folder like this (as you may have guessed, my modules name is Schogini):

This is what happens when you browse this URL
http://mymagentostore.com/schurl/test/showmsg/

  • schurl tells that the controller to check is Mage_Schogini (the name that is specified in the config file in the section: args > module)
  • test tells that controllers/TestController.php file must be checked
  • showmsg tells that showmsgAction() method must be called.

Hence, it will look for the method showmsg() inside the Mage_Schogini_TestController class

Multiline EditText in Android

Here the android:lines attribute is used to set the no. of lines visible. The android:gravity attribute sets the cursor to top left corner.

Incoming search terms:

  • cocos2dx editbox multiline

Restrict length for UITextField

return YES;

}

Android manifest permissions

 

Declares a security permission that can be used to limit access to specific components or features of this or other applications.

Android application install Location

Beginning with API Level 8, we can allow your application to be installed on the external storage

To allow the system to install your application on the external storage, modify your manifest file to include the android:installLocation attribute in the <manifest> element, with a value of either “preferExternal” or “auto“. For example:

Page 1 of 1112345...10...Last »