Onscreen Numeric Keypad

by Siva » Fri, 14 Nov 2008 23:31:10 GMT


Sponsored Links
 Hi,

Is there a sample code for onscreen numeric keypad I can find
somewhere? Please let me know.

Or I appreciate any idea to help me how to accomplish this.

Thanks,
Siva
--~--~---------~--~----~------------~-------~--~----~



Onscreen Numeric Keypad

by Nathan Maves » Sat, 15 Nov 2008 03:27:51 GMT


 I wrote one last night and it took me only a few hours...   It was
based off the one in the "Hello, Android" book.  So far I would
recommend this book to people just starting out.




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Onscreen Numeric Keypad

by Siva » Sat, 15 Nov 2008 12:32:06 GMT


 Is the book "Hello, Android" released already> Amazon asks for a pre-
order!




--~--~---------~--~----~------------~-------~--~----~



Onscreen Numeric Keypad

by Mark Murphy » Sat, 15 Nov 2008 20:10:18 GMT


 


At the risk of helping a competing author ;-), the final(?) beta edition 
is available directly from the Pragmatic Programmers Web site 
( http://www.pragprog.com ) as a PDF.

I think the print edition is a few weeks away.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 

Android Training on the Ranch! -- Mar 16-20, 2009
 http://www.bignerdranch.com/schedule.shtml 

--~--~---------~--~----~------------~-------~--~----~



Onscreen Numeric Keypad

by brs » Sun, 16 Nov 2008 00:57:30 GMT


 A very basic example using buttons in a table layout:
 http://code.google.com/p/android-labs/source/browse/trunk/BistroMath/src/com/google/android/bistromath/BistroMath.java 

Or a more fancy version from the official Android platform calculator:
 http://android.git.kernel.org/?p=platform/packages/apps/Calculator.git ;a=tree;hb=HEAD

Bernhard




--~--~---------~--~----~------------~-------~--~----~



Onscreen Numeric Keypad

by Siva » Sun, 16 Nov 2008 02:08:39 GMT


 Bernhard,
Thanks for this!

Siva G




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Webview layout overlapping buttons

I have a webview layout that overlays buttons on the bottom of the layout,
so that the buttons cannot be seen -  not sure why this is happening.  Here
is my xml, does anyone have any suggestions to fix the problem?  I have
already tried to do android:layout_gravity="bottom" for both buttons as well
as the tablelayout but no joy.  I also tried to redesign this gui in
DroidDraw, but could not find webview layout anywhere in DroidDraw?  Thanks.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
    <TextView
        android:id="@+id/guidelabel"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="1dip"
        android:text="Choose an online field guide:"
    />

    <Spinner 
        android:id="@+id/guidespin"
        android:layout_width="fill_parent"
        android:layout_height="40px"
        android:drawSelectorOnTop="true" 
     />
     
     <WebView android:id="@+id/fieldguide" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" />    
     
    <TableLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal|bottom"  >    
                        
        <TableRow>
    <Button android:id="@+id/menubtn"
        android:layout_width="150px" 
        android:layout_height="35px"
        android:layout_centerHorizontal="true"
        android:text="Main Menu" />
        
    <Button android:id="@+id/next3btn"
        android:layout_width="150px" 
        android:layout_height="35px"
        android:layout_centerHorizontal="true"
        android:text="Next" />
        </TableRow>
    </TableLayout>
</LinearLayout>

-- 

2. storing imageview reference in database, need help retrieving

Hi,

I'm having trouble retrieving image references from my database and
then setting them to an ImageView.  When I pass R.drawable.icon into
my database its compiled and stored as an Integer.  how would I then
pull this Integer out and use ImageView.setImageDrawable(); ???

-- 

3. Debugging code

4. Using FLAG_ACTIVITY_CLEAR_TOP, but don't restart target activity?

5. Bluetooth for magic

6. Using FLAG_ACTIVITY_CLEAR_TOP, but don't restart target activity?

7. Using FLAG_ACTIVITY_CLEAR_TOP, but don't restart target activity?