pellucide / droiddraw

Automatically exported from code.google.com/p/droiddraw
0 stars 0 forks source link

Loading this causes null pointer exception. #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
<?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"> 
     <!-- the first item is the time control --> 
     <LinearLayout android:orientation="horizontal" 
                   android:layout_width="fill_parent" 
                   android:layout_height="wrap_content"> 
         <TextView android:layout_width="wrap_content" 
                   android:layout_height="wrap_content" 
                   android:text="@string/MealTime_Label"/> 

         <TimePicker id="@+id/MealTime" 
                     android:layout_width="fill_parent" 
                     android:layout_height="wrap_content" 
                     android:showSetButton="false"/> 

     </LinearLayout> 

     <!-- the second item is a title bar --> 
     <TextView android:layout_width="fill_parent" 
               android:layout_height="wrap_content" 
               android:background="@drawable/medium_gray" 
               android:text="@string/MealFoodTitle_Label"/> 

     <!-- the third item is the scrolling list of currently defined   
foods --> 
     <ListView id="@+id/FoodList" 
               android:orientation="vertical" 
               android:layout_width="fill_parent" 
               android:layout_height="fill_parent" 
               android:layout_weight="1" 
               android:background="@drawable/light_gray"> 
     </ListView> 

     <!-- the fourth item is the control bar --> 
     <LinearLayout android:orientation="horizontal" 
                   android:layout_width="fill_parent" 
                   android:layout_height="wrap_content" 
                   android:background="@drawable/medium_gray"> 
         <Button id="@+id/DeleteMeal" 
                 android:layout_width="wrap_content" 
                 android:layout_height="wrap_content" 
                 android:text="@string/MealDelete_Label"/> 

         <FrameLayout android:layout_width="fill_parent" 
                      android:layout_height="wrap_content" 
                      android:layout_weight="1"/> 

         <Button id="@+id/AddFood" 
                 android:layout_width="wrap_content" 
                 android:layout_height="wrap_content" 
                 android:text="@string/MealAddFood_Label"/> 
     </LinearLayout> 
</LinearLayout> 

Original issue reported on code.google.com by forevern...@googlemail.com on 10 Dec 2007 at 7:21

GoogleCodeExporter commented 9 years ago
This error occurs because the TimePicker widget is not currently supported by
DroidDraw.  

As a first pass, there should be a better error message for unsupported widgets

As a second pass, the TimePicker widget should be supported.

Original comment by brendan....@gmail.com on 10 Dec 2007 at 10:46

GoogleCodeExporter commented 9 years ago
This is now fixed.  The above layout file loads correctly.

Original comment by brendan....@gmail.com on 12 Dec 2007 at 6:03