How to create a Custom Clickable Area "Non-Standard Square" ?

by Moto » Mon, 16 Mar 2009 04:29:03 GMT


Sponsored Links
 Hi,
I'm currently trying to create a custom clickable button... The shapes
of the buttons are not your standard type.  They are circle and a
rotated rectagle button....

How do I go about this? is there a simple way?  also how could I
rotate a button?

Thanks,
Moto!
--~--~---------~--~----~------------~-------~--~----~



How to create a Custom Clickable Area "Non-Standard Square" ?

by Moto » Mon, 16 Mar 2009 20:59:24 GMT


 Anyone!?
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Using SDk provided images

Hi,

There are images provided in android-sdk-windows-1.5_r2\platforms
\android-1.5\data\res\drawable
folder of SDK.

Is there any way that we can use those directly in appliation.
(without local copy)?


Thanks & best Regards;

Swapnil Dalal
--~--~---------~--~----~------------~-------~--~----~

2. Can't find file with OpenFile

Hi,
I've a problem with method openFileOutput(), I can't find the file or
the directory where the file is stored..the code is:
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.os.Bundle;
import java.io.*;
import java.net.*;
import java.util.NoSuchElementException;
import java.util.Scanner;

public class C extends Activity {
    /** Called when the activity is first created. */
        private PrintWriter savedpoint;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        try{

        savedpoint = new PrintWriter(openFileOutput
("Data.dat",MODE_APPEND));


        for(int i=0;i<20;i++)
        {
                savedpoint.println(-78.443221+"i"+" "+120.344423+"i");

        }

        }catch (FileNotFoundException e) {
                        e.printStackTrace();
                }
    }
}

and the manifest is:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="prova.client"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/
app_name">
        <activity android:name=".C"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-sdk android:minSdkVersion="3" />
</manifest>

Any idea?where can I find the directory where is stored the file?
thanks
--~--~---------~--~----~------------~-------~--~----~

3. Spent 3 weeks building 'Launcher'(Home) application. Please help. T_T

4. Spent 3 weeks building 'Launcher'(Home) application. Please help. T_T

5. Spent 3 weeks building 'Launcher'(Home) application. Please help. T_T

6. Sqlite problem, urgent request!

7. how to disable Android Keyboard (by default)