Donuts & Cupcakes

by Bala » Sun, 15 Nov 2009 05:02:11 GMT


Sponsored Links
 Enjoy the pictures:  http://web-on-the-go.com/people/android.shtml 

These pictures were taken using Android G1 phone at Google, Mountain
View, CA.

Best,
Bala

--



Other Threads

1. custom widgets in animation

Hi

I am struggling trying to render to custom widget as part of ViewFlipper.
when I try to access my widget from the layout file, it gives me a null
pointer exception. However putting them all into the java code is not very
clean. I am wondering if someone can share few example on how render the
ViewFlipper that would flip between two FrameLayout both identitcal
containing a custom widget .

Also, even with the ViewFlipper, I am unable to access the ViewFlipper
object from resource file. It gives me a null pointer exception. Two frame
layouts stored a resource files as frame1 and frame2.  all the viewFlipper
does is to flip between two views.



//main.xml file


<?xml version=*"1.0"* encoding=*"utf-8"*?>

<LinearLayout xmlns:android=*"http://schemas.android.com/apk/res/android"
*

android:layout_width=*"fill_parent"
*

android:layout_height=*"fill_parent"* >

<ViewFlipper

android:id=*"@+id/flipper"
*

android:layout_width=*"fill_parent"
*

android:layout_height=*"fill_parent"* android:layout_marginBottom=*"20dp"*>

<include android:id=*"@+id/first"* layout=*"@layout/first_view"* />

<include android:id=*"@+id/second"* layout=*"@layout/second_view"* />

</ViewFlipper>

</LinearLayout>



//code...

setContentView(R.layout.*main*);

ViewFlipper *vp* = (ViewFlipper)this.findViewById(R.id.flipper);

/the above gives me error..first view and second view contains custom
widget.



//first view..

<?xml version=*"1.0"* encoding=*"utf-8"*?>

<FrameLayout

xmlns:android=*"http://schemas.android.com/apk/res/android"
*

android:layout_width=*"match_parent"
*

android:layout_height=*"match_parent"
*

android:id=*"@+id/main_layout"
*


<Button

android:id=*"@+id/Button01"*

android:layout_width=*"wrap_content"*

android:layout_height=*"wrap_content"* android:paddingBottom=*"5dp"*>

</Button>

</FrameLayout>

-- 

2. RERUN e-lifestyle MetroTV ttg programmer Gadget HARI INI pk. 11.05 WIB

RERUN e-lifestyle MetroTV ttg programmer Gadget
HARI INI senin 24/01/2011 pk. 11.05 WIB
isinya ANDROID vs BB :)))

--
===============
"

3. [WTAsk] soal rooting HH.

4. WTNgelamun : Gadget Impian

5. sharing game buat tab

6. [WTA] google gooles error

7. [WTI] OOT< Hati-Hati PENIPUAN!!!