[android-developers] Honeycomb webview render problem

2011-08-26 Thread muckwarrior
I'm having a problem where a webview flickers/jumps at the bottom for
a short period of time. Here's a video that illustrates what I'm
talking about http://www.youtube.com/watch?v=I8s2P4R95r4

This only happens on honeycomb (tested on Xoom and emulator), and
mainly only happens in landscape mode, although I've seen it
occasionally in portrait.

At first I assumed invalid markup was the problem, but I've since
ensured the markup passes W3C validation.

I've created a very basic project that reproduces the problem
http://dl.dropbox.com/u/1256312/WebView%20Test.rar

Am i doing something wrong or is this a bug in Honeycomb?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Different resources, one xml file?

2011-06-27 Thread muckwarrior
I'm building an app, similar to a quiz app, where layouts and
functionality will be duplicated across a number of subjects. The
activities and layouts will be identical for each subject, the only
difference should be the resources used, e.g. Subject 1 uses button
image 1 and background 1, Subject 2 uses button image 2 etc.

What I'm trying to avoid is having duplicate xml files which would
essentially be identical except for the resources they point at. At
first I assumed I could uses themes to accomplish this but on closer
inspection it doesn't seem possible.

Is there an easy way to do this without duplicating code?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Different resources, one xml file?

2011-06-27 Thread muckwarrior
I'm building an app, similar to a quiz app, which repeats
functionality for different subjects. The layouts will be the same for
each subject except that the resources used will different, e.g.
Subject 1 will use ButtonImage 1 and Background colour 1, Subject 2
uses ButtonImage 2 etc. etc.

What I'm trying to avoid is duplicating the xml layouts. I initially
assumed that I could use themes to avoid hardcoding the resourceIDs
into the layout, but on further investigation that doesn't seem
possible. Another approach I thought may have been possible was to use
alternative resources folders and have a folder for each subject, but
it doesn't seem possible to use custom qualifiers.

Can anyone tell me is it possible to specify multiple resources
without creating multiple xml layouts?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Different resources, one xml file?

2011-06-27 Thread muckwarrior
Woops, sorry for the duplicate post, I couldn't find my original one
for some reason.

Yeah I figured I could do it through Java code alright, but I'd prefer
not to. In reality I have a lot more resources than just a button and
a BG and setting all these in code and maintaining the list would be
far from ideal. I just wanted to check there wasn't an easier option
before I went ahead and implemented it.

On Jun 27, 9:56 am, muckwarrior muckwarr...@gmail.com wrote:
 I'm building an app, similar to a quiz app, which repeats
 functionality for different subjects. The layouts will be the same for
 each subject except that the resources used will different, e.g.
 Subject 1 will use ButtonImage 1 and Background colour 1, Subject 2
 uses ButtonImage 2 etc. etc.

 What I'm trying to avoid is duplicating the xml layouts. I initially
 assumed that I could use themes to avoid hardcoding the resourceIDs
 into the layout, but on further investigation that doesn't seem
 possible. Another approach I thought may have been possible was to use
 alternative resources folders and have a folder for each subject, but
 it doesn't seem possible to use custom qualifiers.

 Can anyone tell me is it possible to specify multiple resources
 without creating multiple xml layouts?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Different resources, one xml file?

2011-06-27 Thread muckwarrior
Sorry for the duplicate post, I couldn't see the thread for some
reason.

I figured I could set the resources conditionally through Java code,
but I wanted to avoid this approach as in reality, I have many more
resources than just a button and a background and I wanted to avoid
having to maintain long lists of resources in code. I wanted to see if
there was an easier/cleaner option first but if not I guess I'll go
ahead and do it that way.

On Jun 27, 9:58 am, Kumar Bibek coomar@gmail.com wrote:
 Set the values through code

 *Thanks and Regards,
 Kumar Bibek*
 *http://techdroid.kbeanie.comhttp://www.kbeanie.com*







 On Mon, Jun 27, 2011 at 2:26 PM, muckwarrior muckwarr...@gmail.com wrote:
  I'm building an app, similar to a quiz app, which repeats
  functionality for different subjects. The layouts will be the same for
  each subject except that the resources used will different, e.g.
  Subject 1 will use ButtonImage 1 and Background colour 1, Subject 2
  uses ButtonImage 2 etc. etc.

  What I'm trying to avoid is duplicating the xml layouts. I initially
  assumed that I could use themes to avoid hardcoding the resourceIDs
  into the layout, but on further investigation that doesn't seem
  possible. Another approach I thought may have been possible was to use
  alternative resources folders and have a folder for each subject, but
  it doesn't seem possible to use custom qualifiers.

  Can anyone tell me is it possible to specify multiple resources
  without creating multiple xml layouts?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Different resources, one xml file?

2011-06-27 Thread muckwarrior
I could probably do some of the stuff through themes, like setting the
windowBackground, but if for example my layout has an imageView and I
want to have the image change depending on subject I can't see any way
to do this through themes.

The ideal solution would be if you could specify custom qualifiers on
resource folders, so I could have folders like drawable-subject1,
drawable-subject2 and then specify in my activity which folder to use.
This would allow for just one set of layout files and an infinite
amount of subjects to be added without any code changes.

On Jun 27, 10:10 am, Kumar Bibek coomar@gmail.com wrote:
 Well, as far as I can think of, you should be able to do it through themes.
 What problems did you face while using themes?

 *Thanks and Regards,
 Kumar Bibek*
 *http://techdroid.kbeanie.comhttp://www.kbeanie.com*







 On Mon, Jun 27, 2011 at 2:35 PM, muckwarrior muckwarr...@gmail.com wrote:
  Woops, sorry for the duplicate post, I couldn't find my original one
  for some reason.

  Yeah I figured I could do it through Java code alright, but I'd prefer
  not to. In reality I have a lot more resources than just a button and
  a BG and setting all these in code and maintaining the list would be
  far from ideal. I just wanted to check there wasn't an easier option
  before I went ahead and implemented it.

  On Jun 27, 9:56 am, muckwarrior muckwarr...@gmail.com wrote:
   I'm building an app, similar to a quiz app, which repeats
   functionality for different subjects. The layouts will be the same for
   each subject except that the resources used will different, e.g.
   Subject 1 will use ButtonImage 1 and Background colour 1, Subject 2
   uses ButtonImage 2 etc. etc.

   What I'm trying to avoid is duplicating the xml layouts. I initially
   assumed that I could use themes to avoid hardcoding the resourceIDs
   into the layout, but on further investigation that doesn't seem
   possible. Another approach I thought may have been possible was to use
   alternative resources folders and have a folder for each subject, but
   it doesn't seem possible to use custom qualifiers.

   Can anyone tell me is it possible to specify multiple resources
   without creating multiple xml layouts?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Input validation

2009-03-03 Thread muckwarrior

Before I implement this in my app I just wanted to find out if there
are any guides to best practices regarding input validation in
android? For example setting certain fields as required or matching a
regex, e.g email validation.

Maybe I'm searching for the wrong terms but I cant find any examples
at all!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Getting location with multiple providers

2009-02-13 Thread muckwarrior

I want my app to be able to retrieve a fine location, but also to be
able to get it's location as quick as possible. What I'm trying to
implement is something like the way it works in maps, i.e. it gets a
coarse location via network and then refines that location using GPS.

If I set the criteria to ACCUARCY_FINE it automatically tries to use
GPS to get the location. The problem is that if a user is indoors then
this may take several minutes, if it finds it at all. Is there an easy
way to tell the manager to use network provider and then GPS, or will
I have to do this myself? If so what's the best way to go about this?
Will I need to thread it in some way?

I'm sorry if these questions have been answered already. I've found
various location examples but none that seem to do what I'm asking.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How get text from EditText filed which is showing in alert Dialog

2009-02-05 Thread muckwarrior

I encountered the same problem. This is how I solved it:

Declare a field
private AlertDialog myDialog;

Then when creating your dialog
myDialog = new AlertDialog..
.
public void onClick(DialogInterface dialog, int whichButton) {
   DoSomethingWithDialogContent();
}

.

private void DoSomethingWithDialogContent() {
EditText usernameEdit = (EditText) myDialog.findViewById
(R.id.dialog_username_edit);
Log.d(TAG,Username:  + usernameEdit.getText().toString());

}
}
On Feb 3, 11:32 am, Gulfam gulfa...@gmail.com wrote:
 Hi all,
 I m facing a problem for getting text from EditText field which is on
 alert dialog  same like ApiDemo text entry Dialog

 public void enterNumberView(Activity activity){

                     LayoutInflater factory = LayoutInflater.from(_activity);
                     final View textEntryView = factory.inflate
 (R.layout.invite_friend_enternumber, null);
                     new AlertDialog.Builder(_activity)
                         .setIcon(R.drawable.invite_friends_icon)
                         .setTitle(Enter Numbers)
                         .setView(textEntryView)
                         .setPositiveButton(Invite, new
 DialogInterface.OnClickListener() {
                             public void onClick(DialogInterface dialog, int
 whichButton) {

                                 EditText enterNumberField = (EditText)
 findViewById(R.id.username_edit);

                                 String numbers = enterNumberField.getText
 ().toString();

                                 Log.i(Enter Number Field Text, +numbers);

                             }
                         })
                         .setNegativeButton(Cancel, new
 DialogInterface.OnClickListener() {
                             public void onClick(DialogInterface dialog, int
 whichButton) {

                                 /* User clicked cancel so do some stuff */
                             }
                         })
                         .show();
                }

 *xml is
 under*
 EditText
         android:id=@+id/username_edit
         android:layout_height=wrap_content
         android:layout_width=fill_parent
         android:layout_marginLeft=20dip
         android:layout_marginRight=20dip
         android:scrollHorizontally=true
         android:numeric=integer
         android:digits=0123456789,
         android:autoText=false
         android:capitalize=none
         android:gravity=fill_horizontal
         android:textAppearance=?android:attr/textAppearanceMedium /
 

 i have also found the an answer of this post as under

 You are doing the findViewById() on the *activity*, not the dialog.
 Call findViewById() on the dialog's content instead. BY (Romain Guy)
 
 any one can help How Call findViewById() on the dialog's content
 please modify in my code where i am wrong
 i dont know the exact syntex to Call findViewById() on the dialog's
 content.

 Thanks and Regards,
 Gulfam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is there a simple way to do Key/Value with Spinners?

2009-02-03 Thread muckwarrior

If you want to stick with using array resources, just make two
arrays, one
 with the things to display to the user, the other with the keys.

That's what I was hoping to be able to do alright. But how do I get
both arrays into the spinner. Can I do it without creating a custom
adapter? Also, I assume I'll need to create my own spinner layouts?



On Feb 2, 5:46 pm, Dianne Hackborn hack...@android.com wrote:
 If you want to stick with using array resources, just make two arrays, one
 with the things to display to the user, the other with the keys.

 Otherwise, you can always make your own adapter, and load that from an XML
 resource or anything else of whatever format you want.

 On Sun, Jan 11, 2009 at 4:21 PM, Robert Green rbgrn@gmail.com wrote:

  I'm familiar with arrays.xml to define static data sets for spinners
  and this works fine except that so far I am only able to define lists
  of values for the spinner.  What I need now is to have keys associated
  with those values so that in the future when I add new elements in
  arbitrary positions, it won't matter and the code won't have to be
  updated to handle it.  I'd like it if it worked like the select/option
  in html.

  The idea is to have a data set like this:

  Key / Value
  -
  flwr1 / Rose
  flwr2 / Daffodil

  and the spinner would show
  Rose
  Daffodil

  but the code can get to
  flwr1
  flwr2

  Sounds easy enough, right?   Can anyone give me a quick code snippet
  to get me there?

  Thanks!

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is there a simple way to do Key/Value with Spinners?

2009-02-02 Thread muckwarrior

I'm also interested in a solution to this.

Before I start hacking something together does anyone have any advice
on the best way to approach it?

On Jan 12, 12:21 am, Robert Green rbgrn@gmail.com wrote:
 I'm familiar with arrays.xml to define static data sets for spinners
 and this works fine except that so far I am only able to define lists
 of values for the spinner.  What I need now is to have keys associated
 with those values so that in the future when I add new elements in
 arbitrary positions, it won't matter and the code won't have to be
 updated to handle it.  I'd like it if it worked like the select/option
 in html.

 The idea is to have a data set like this:

 Key / Value
 -
 flwr1 / Rose
 flwr2 / Daffodil

 and the spinner would show
 Rose
 Daffodil

 but the code can get to
 flwr1
 flwr2

 Sounds easy enough, right?   Can anyone give me a quick code snippet
 to get me there?

 Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] OutOfMemoryError when scrolling ListView

2009-01-29 Thread muckwarrior

I'm having problems with ListViews in my application. I thought
everything was fine until I noticed that if I scrolled up and down
through the list quickly a number of times, sooner or later the app
would crash with an OutOfMemoryError.

When I searched for the error I noticed a number of posts related to
loading images. As my list items included a small arrow png, I assumed
the problem lay here. However even after removing this and all other
drawables I had (gradient background and list separator) the problem
still remains.

Here's the stack trace

ERROR/dalvikvm-heap(2362): 66560-byte external allocation too large
for this process.
ERROR/(2362): VM won't let us allocate 66560 bytes
DEBUG/AndroidRuntime(2362): Shutting down VM
WARN/dalvikvm(2362): threadid=3: thread exiting with uncaught
exception (group=0x40013e28)
ERROR/AndroidRuntime(2362): Uncaught handler: thread main exiting due
to uncaught exception
ERROR/AndroidRuntime(2362): java.lang.OutOfMemoryError: bitmap size
exceeds VM budget
ERROR/AndroidRuntime(2362): at android.graphics.Bitmap.nativeCreate
(Native Method)
ERROR/AndroidRuntime(2362): at android.graphics.Bitmap.createBitmap
(Bitmap.java:343)
ERROR/AndroidRuntime(2362): at android.view.View.buildDrawingCache
(View.java:5219)
ERROR/AndroidRuntime(2362): at android.view.View.getDrawingCache
(View.java:5112)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.drawChild
(ViewGroup.java:1355)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1192)
ERROR/AndroidRuntime(2362): at
android.widget.AbsListView.dispatchDraw(AbsListView.java:1125)
ERROR/AndroidRuntime(2362): at android.widget.ListView.dispatchDraw
(ListView.java:2778)
ERROR/AndroidRuntime(2362): at android.view.View.draw(View.java:
5422)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.drawChild
(ViewGroup.java:1420)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1192)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.drawChild
(ViewGroup.java:1418)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1192)
ERROR/AndroidRuntime(2362): at android.view.View.draw(View.java:
5329)
ERROR/AndroidRuntime(2362): at android.widget.FrameLayout.draw
(FrameLayout.java:324)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.drawChild
(ViewGroup.java:1420)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1192)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.drawChild
(ViewGroup.java:1418)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1192)
ERROR/AndroidRuntime(2362): at android.view.View.draw(View.java:
5329)
ERROR/AndroidRuntime(2362): at android.widget.FrameLayout.draw
(FrameLayout.java:324)
ERROR/AndroidRuntime(2362): at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw
(PhoneWindow.java:1701)
ERROR/AndroidRuntime(2362): at android.view.ViewRoot.draw
(ViewRoot.java:980)
ERROR/AndroidRuntime(2362): at
android.view.ViewRoot.performTraversals(ViewRoot.java:829)
ERROR/AndroidRuntime(2362): at android.view.ViewRoot.handleMessage
(ViewRoot.java:1103)
ERROR/AndroidRuntime(2362): at android.os.Handler.dispatchMessage
(Handler.java:88)
ERROR/AndroidRuntime(2362): at android.os.Looper.loop(Looper.java:
123)
ERROR/AndroidRuntime(2362): at android.app.ActivityThread.main
(ActivityThread.java:3742)
ERROR/AndroidRuntime(2362): at
java.lang.reflect.Method.invokeNative(Native Method)
ERROR/AndroidRuntime(2362): at java.lang.reflect.Method.invoke
(Method.java:515)
ERROR/AndroidRuntime(2362): at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:739)
ERROR/AndroidRuntime(2362): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
ERROR/AndroidRuntime(2362): at dalvik.system.NativeStart.main
(Native Method)

I've had a look in DDMS and noticed that the percentage memory used in
the heap doesn't go above 70%. Also, doesn't the reported 66K seem
like a very small amount to be causing a crash?

Any help appreciated!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: OutOfMemoryError when scrolling ListView

2009-01-29 Thread muckwarrior

Never mind, I've managed to solve the problem myself with a hint from
the other similar thread that I didn't see before posting.

For anyone that encounters the same problem, I fixed it by using
convertView as explained here http://androidguys.com/?p=635

On Jan 29, 2:23 pm, muckwarrior muckwarr...@gmail.com wrote:
 I'm having problems with ListViews in my application. I thought
 everything was fine until I noticed that if I scrolled up and down
 through the list quickly a number of times, sooner or later the app
 would crash with an OutOfMemoryError.

 When I searched for the error I noticed a number of posts related to
 loading images. As my list items included a small arrow png, I assumed
 the problem lay here. However even after removing this and all other
 drawables I had (gradient background and list separator) the problem
 still remains.

 Here's the stack trace

 ERROR/dalvikvm-heap(2362): 66560-byte external allocation too large
 for this process.
 ERROR/(2362): VM won't let us allocate 66560 bytes
 DEBUG/AndroidRuntime(2362): Shutting down VM
 WARN/dalvikvm(2362): threadid=3: thread exiting with uncaught
 exception (group=0x40013e28)
 ERROR/AndroidRuntime(2362): Uncaught handler: thread main exiting due
 to uncaught exception
 ERROR/AndroidRuntime(2362): java.lang.OutOfMemoryError: bitmap size
 exceeds VM budget
 ERROR/AndroidRuntime(2362):     at android.graphics.Bitmap.nativeCreate
 (Native Method)
 ERROR/AndroidRuntime(2362):     at android.graphics.Bitmap.createBitmap
 (Bitmap.java:343)
 ERROR/AndroidRuntime(2362):     at android.view.View.buildDrawingCache
 (View.java:5219)
 ERROR/AndroidRuntime(2362):     at android.view.View.getDrawingCache
 (View.java:5112)
 ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.drawChild
 (ViewGroup.java:1355)
 ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.dispatchDraw
 (ViewGroup.java:1192)
 ERROR/AndroidRuntime(2362):     at
 android.widget.AbsListView.dispatchDraw(AbsListView.java:1125)
 ERROR/AndroidRuntime(2362):     at android.widget.ListView.dispatchDraw
 (ListView.java:2778)
 ERROR/AndroidRuntime(2362):     at android.view.View.draw(View.java:
 5422)
 ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.drawChild
 (ViewGroup.java:1420)
 ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.dispatchDraw
 (ViewGroup.java:1192)
 ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.drawChild
 (ViewGroup.java:1418)
 ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.dispatchDraw
 (ViewGroup.java:1192)
 ERROR/AndroidRuntime(2362):     at android.view.View.draw(View.java:
 5329)
 ERROR/AndroidRuntime(2362):     at android.widget.FrameLayout.draw
 (FrameLayout.java:324)
 ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.drawChild
 (ViewGroup.java:1420)
 ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.dispatchDraw
 (ViewGroup.java:1192)
 ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.drawChild
 (ViewGroup.java:1418)
 ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.dispatchDraw
 (ViewGroup.java:1192)
 ERROR/AndroidRuntime(2362):     at android.view.View.draw(View.java:
 5329)
 ERROR/AndroidRuntime(2362):     at android.widget.FrameLayout.draw
 (FrameLayout.java:324)
 ERROR/AndroidRuntime(2362):     at
 com.android.internal.policy.impl.PhoneWindow$DecorView.draw
 (PhoneWindow.java:1701)
 ERROR/AndroidRuntime(2362):     at android.view.ViewRoot.draw
 (ViewRoot.java:980)
 ERROR/AndroidRuntime(2362):     at
 android.view.ViewRoot.performTraversals(ViewRoot.java:829)
 ERROR/AndroidRuntime(2362):     at android.view.ViewRoot.handleMessage
 (ViewRoot.java:1103)
 ERROR/AndroidRuntime(2362):     at android.os.Handler.dispatchMessage
 (Handler.java:88)
 ERROR/AndroidRuntime(2362):     at android.os.Looper.loop(Looper.java:
 123)
 ERROR/AndroidRuntime(2362):     at android.app.ActivityThread.main
 (ActivityThread.java:3742)
 ERROR/AndroidRuntime(2362):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 ERROR/AndroidRuntime(2362):     at java.lang.reflect.Method.invoke
 (Method.java:515)
 ERROR/AndroidRuntime(2362):     at com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:739)
 ERROR/AndroidRuntime(2362):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
 ERROR/AndroidRuntime(2362):     at dalvik.system.NativeStart.main
 (Native Method)

 I've had a look in DDMS and noticed that the percentage memory used in
 the heap doesn't go above 70%. Also, doesn't the reported 66K seem
 like a very small amount to be causing a crash?

 Any help appreciated!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android

[android-developers] Re: Problem with list divider

2009-01-08 Thread muckwarrior

I'm having the same problem. If I add something like

android:divider=#123456

to my listview the dividers disappear completely. Anyone know why?

On Nov 14 2008, 7:07 am, for android forandr...@gmail.com wrote:
 I have a layout,something like this.

 Table with white bngcolor
       TableRows

       /TableRows

        TableRows
                      TableLayout with blu backgrnd color
                                     TableRows

                                   /TableRows

                                  TableRow
                                             ListView with white background
 with a black divider/
                                   /TableRow
                     /TableLayout
       /TableRows
 /Table

 Each Row in the list is like this
 TableLayout android:layout_width=fill_parent
         android:layout_height=wrap_content

             TextView android:id=@+id/empNameText
                 android:textColor=#FF android:textSize=14px
                 android:selectable=false
 android:layout_width=fill_parent
                 android:layout_height=wrap_content
             /TextView

             TextView android:id=@+id/cmpNameText
                 android:textColor=#00 android:textSize=12px
                 android:layout_width=wrap_content
                 android:layout_height=wrap_content
             /TextView

     /TableLayout

 Now wen i give no divider to my list I get a blue fadding edge as my
 divider.

 instead when i give the divider to be as #0,i get no divider.

 I want to acheive a black divider in the list.How do i acheive that?

 Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---