[android-developers] How to mark an element visually in ListView the user clicked on?

2011-06-12 Thread Scythe
I have a ListView with a custom adapter. I'd like to visually mark the
list element the user clicked on by changing it's background
permanently (until the user clicks on another element that is). How do
I achieve that? I believe that there's a built-in feature inside
LisView for this, but I had no luck finding it yet.

By default ListView animates the background color of the list-element
clicked, I just want that modified color to stay. I've already set
the ListView's ChoiceMode to single choice, but it doesn't affect it
visually.

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] Re: How to mark an element visually in ListView the user clicked on?

2011-06-12 Thread Scythe
Thanks, I was looking for this 'activated' state. The methods and
states related to selecting elements from the list completely
confused me. It turned out that the in ListView's context, selecting
an element means that the user navigates the focus around in the list
with the d-pad... And yes, I'm using Honeycomb, so my list needs to
stay on screen, and display the previously selected element.

So currently I'm setting the selected element's view activated, and
assigned a custom selector with a distinct background color for the
activated state for the row's layout.

On Jun 12, 5:07 pm, Mark Murphy mmur...@commonsware.com wrote:
 singleChoice requires your row Views to implement the Checkable
 interface, as I recall.

 On Honeycomb, your desired look is achieved by setting the activated
 state on the row Views. On phones, since the ListView is not usually
 on the same screen as other stuff, your desired pattern isn't really
 part of the framework.









 On Sun, Jun 12, 2011 at 11:04 AM, Scythe scythe...@gmail.com wrote:
  I have a ListView with a custom adapter. I'd like to visually mark the
  list element the user clicked on by changing it's background
  permanently (until the user clicks on another element that is). How do
  I achieve that? I believe that there's a built-in feature inside
  LisView for this, but I had no luck finding it yet.

  By default ListView animates the background color of the list-element
  clicked, I just want that modified color to stay. I've already set
  the ListView's ChoiceMode to single choice, but it doesn't affect it
  visually.

  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

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Android Training in NYC:http://marakana.com/training/android/

-- 
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 much HTML5 does the Honeycomb Android Browser support?

2011-05-31 Thread Scythe
218 + 3 bonus on Galaxy Tab 10.1v, with 3.0.

On May 31, 7:11 am, Peter Sinnott psinn...@gmail.com wrote:
 I wouldn't wish the honeycomb emulator on my worst enemy.

 My transformer gets 228 + 3 bonus points.

 On May 31, 4:16 am, Francisco Dalla Rosa soares soa...@argo.bz
 wrote:







  ever thought of accessing that URL through the emulator?

  2011/5/31 Robert Massaioli robertmassai...@gmail.com

   I was wondering how much of the HTML5 spec a Honeycomb Tablet supports. So
   could somebody with 3.0 or 3.1 please go to this page and tell me what
   results you get?http://html5test.com/index.html

   I hereby swear that this is not a spam link. I really want to know what
   HTML5 features I can use.

   --
   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: All Renderscript samples fail to run on actual device (Samsung Galaxy Tab 10.1 'google io edition')

2011-05-28 Thread Scythe
Ah, at last I can try out the shiny new CarouselExample. Thanks!

On May 28, 4:42 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 Is the SDK 3.1 V2 just released related to this?

 On May 28, 7:25 am, Xavier Ducrohet x...@android.com wrote:







  oops wrong links. Here are the good ones:

 https://dl-ssl.google.com/android/repository/platform-tools_r03-windo..

  On Fri, May 27, 2011 at 4:24 PM, Xavier Ducrohet x...@android.com wrote:
   hey, we found an issue in the packaging that are delaying things.

   However, here's a workaround, by downloading the previous
   platform-tools, revision 03, which contains the compiler we used in
   3.0

   Links:
  https://dl-ssl.google.com/android/repository/platform-tools_r04-windo...
  https://dl-ssl.google.com/android/repository/platform-tools_r04-macos...
  https://dl-ssl.google.com/android/repository/platform-tools_r04-linux...

   Download, unarchive and replace the existing folder at 
   SDK/platform-tools

   Sorry for the inconvenience.
   Xav

   On Fri, May 27, 2011 at 3:32 PM, Streets Of Boston
   flyingdutc...@gmail.com wrote:
   Hi Xav,

   Were you able to deploy a fix?

   --
   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

   --
   Xavier Ducrohet
   Android SDK Tech Lead
   Google Inc.
  http://developer.android.com|http://tools.android.com

   Please do not send me questions directly. Thanks!

  --
  Xavier Ducrohet
  Android SDK Tech Lead
  Google Inc.http://developer.android.com|http://tools.android.com

  Please do not send me questions directly. Thanks!- Hide quoted text -

  - Show quoted text -

-- 
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: All Renderscript samples fail to run on actual device (Samsung Galaxy Tab 10.1 'google io edition')

2011-05-26 Thread Scythe
Welcome to the club. Several threads were discussing this problem,
without any result. At least someone from the Android dev-team could
tell us that it's a know issue, or whatever. Quite frustrating.

On May 26, 3:15 am, Streets Of Boston flyingdutc...@gmail.com wrote:
 I'm trying to run a renderscript sample from the Android SDK.
 The SDK comes with a bunch of samples. All of them compile fine, but they
 don't run:

 05-25 21:04:56.470: VERBOSE/RenderScript(20521): Cache file for
 'com.android.fountain:raw/fountain' '.oBCC' is
 '/data/data/com.android.fountain/cac...@com.android.fountain:r...@fountain.obcc'
 05-25 21:04:56.470: WARN/bcc(20521): Unable to open
 /data/data/com.android.fountain/cac...@com.android.fountain:r...@fountain.oBCCin
  read mode.  (reason: No such file or directory)
 05-25 21:04:56.470: ERROR/bcc(20521): Unable to readBC, bitcode=0x17e820,
 size=2580
 05-25 21:04:56.470: DEBUG/RenderScript(20521):  ~ScriptC  
 bccDisposeScript(0x17f328)
 05-25 21:04:56.470: ERROR/RenderScript(20521): rsAssert failed:
 !mUserRefCount, in frameworks/base/libs/rs/rsObjectBase.cpp at 63
 05-25 21:04:56.470: DEBUG/AndroidRuntime(20521): Shutting down VM
 05-25 21:04:56.470: WARN/dalvikvm(20521): threadid=1: thread exiting with
 uncaught exception (group=0x401d0760)
 05-25 21:04:56.480: ERROR/AndroidRuntime(20521): FATAL EXCEPTION: main
 android.renderscript.RSRuntimeException: Loading of ScriptC script failed.
     at android.renderscript.ScriptC.init(ScriptC.java:60)
     at
 com.android.fountain.ScriptC_fountain.init(ScriptC_fountain.java:32)
     at com.android.fountain.FountainRS.init(FountainRS.java:49)
     at
 com.android.fountain.FountainView.surfaceChanged(FountainView.java:59)
     at android.view.SurfaceView.updateWindow(SurfaceView.java:571)
     at android.view.SurfaceView.access$000(SurfaceView.java:84)
     at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:173)
     at
 android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:590)
     at android.view.ViewRoot.performTraversals(ViewRoot.java:1325)
     at android.view.ViewRoot.handleMessage(ViewRoot.java:1944)
     at android.os.Handler.dispatchMessage(Handler.java:99)
     at android.os.Looper.loop(Looper.java:126)
     at android.app.ActivityThread.main(ActivityThread.java:4002)
     at java.lang.reflect.Method.invokeNative(Native Method)
     at java.lang.reflect.Method.invoke(Method.java:491)
     at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 
 844)
     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
     at dalvik.system.NativeStart.main(Native Method)

 I just run the samples as the come with the SDK. I have made no changes
 whatsoever to the source-code.

 Does anyone know what is going on and how it can be fixed?
 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] FragmentPager component?

2011-05-20 Thread Scythe
During the Android 3.0 UI design talk on IO 2011, it was mentioned
that we'll get a FragmentPager component soon. I'd like to know a
bit more about this component, when'll this be released and what'll it
be able to do? I'm quite curious, because it awfully sounds something
that I'm working on right now. Is it about some kind of left-to-right
fragment paging mechanism that's used in the Honeycomb Gmail app?

-- 
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] Fragment animation as in Honeycomb Gmail app - how to do that?

2011-05-19 Thread Scythe
I'd like to achieve similar fragment behaviour as in the Honeycomb
Gmail app. So I have three fragment next to each other: A, B and C.
Initially, A and B is displayed, and when the user selects something
from B, it triggers an sliding-animation/fragment-transaction so that
B and C are visible. B showing the selected item, C showing the
desired content.

Any ideas how the Gmail app does this?

-- 
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: unable to run the renderscript samples.

2011-05-18 Thread Scythe
I'm having the same issue here. I've tried many of the sample RS apps,
along with the Carousel example mentioned on IO, each crashed with
this message. Tried with a Galaxy Tab 10.1v, but I've heard that other
folks with Xooms are having that same problem.

On May 13, 3:37 am, billconan billco...@gmail.com wrote:
 the problem has things to do with the path and folder of the
 renderscript intermediate binary file.

 it cannot find the cached intermediate binary under the folder
 /data/data/com.android.example/

-- 
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] Does the Samsung Galaxy Tab 10.1v work with OSX?

2011-05-17 Thread Scythe
Does this thing work properly with the Android SDK (I mean ADB) on
OSX? Or do we need some obscure to-be-released drivers for that?

-- 
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] How does the ActivityStack behave when it contains thousands of Activities?

2011-04-30 Thread Scythe
In my app I have a about a dozen of different Activities. These
Activities are connected (can call each other with startActivity()) in
such a way, that the user can theoretically keep running in circles -
always jumping to the next Activity, never going back. Also, I really
need to maintain a proper Activity history: if the user presses the
back button, the app returns to the previous Activity, with the
previous content.

Question: Suppose the user's using the app for an extended amount of
time, going in circles between Activites as mentioned above, resulting
an ever-growing ActivityStack. Every Activity saves some state on
onSaveInstanceState() too.

- Is this a problem? (I'm afraid it is, I guess it's a memory leak to
have tens of thousands of Activity records on the stack, especially if
these save their state).
- Is there a way to limit the size of the default Android
ActivityStack's size? (size limit is X, we delete the oldest record if
it gets filled up)

Any suggestions / alternative solutions are welcome.

-- 
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