[android-developers] Size of app screen
I am a new developer. If I submit an app with a fixed screen size of 720x1280 will it be accepted? If not, what will they store accept? 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] Repeating background does not repeat
Hi all, Basically, I want to set a repeating background on a given ImageView when loading an image from network. Easy stuff to do. But I'm facing a strange problem using a dedicated drawable with tileMode set to repeat. Actually, sometimes the source image is correctly repeated, sometimes it's not, which obviously makes the background very ugly cause the source image is stretched. The problem occurs randomly (on both emulator and G1). I'm using the following XML (background.xml) to define my repeating background: bitmap xmlns:android=http://schemas.android.com/apk/res/android; android:src=@drawable/back android:tileMode=repeat /bitmap and I use it this way: ImageView android:id=@+id/header_image android:layout_width=fill_parent android:layout_height=@dimen/header_image_height android:background=@drawable/background /ImageView This works perfectly... sometimes. Of course, I can do the same thing using that code: Bitmap mBackBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.back); BitmapDrawable mBackgroundDrawable = new BitmapDrawable(getResources(), mBackBitmap); mBackgroundDrawable.setTileModeXY(Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); mHeaderImage.setBackgroundDrawable(mBackgroundDrawable); This works very well... always! ^_^ But it sounds a little bit dumb to do it myself through code: it seems easier to maintain it from XML and this background is used in so many layouts in my application. Has anyone already faced this problem? Am I missing something? Any guess is welcome. Thanks. Vince -- 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] End of fling within Gallery
Hi everyone, I'd like to implement a Gallery subclass that acts like the SlowAdapter sample, i.e. that loads the content of visible views once fling is over. While ListView is provided with OnScrollListener, which does the trick, I can't find such a simple solution for Gallery. At the moment, the only way I see would be to customize the Gallery source code. Obviously, I would like to avoid such a solution if possible. Did I miss something? Thanks for helping. Regards, Vince -- 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] End of fling within Gallery
Hi everyone, I'd like to implement a Gallery subclass that acts like the SlowAdapter sample, i.e. that loads the content of visible views once fling is over. While ListView is provided with OnScrollListener, which does the trick, I can't find such a simple solution for Gallery. At the moment, the only way I see would be to customize the Gallery source code. Obviously, I would like to avoid such a solution if possible. Did I miss something? Thanks for helping. Regards, Vince -- 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: End of fling within Gallery
Okay. I think I got setCallbackDuringFling wrong. I will try again ;-) -- 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: Using an image in a listview
What does your getView code look like. Are re-inflating your row view every time it's called, are there multiple views for the rows etc? Vince On Jan 6, 10:18 am, Patrick Plaatje patrick.plaa...@ndcvbk.nl wrote: Hi all, for my app i'm using a listview to display rss news articles. All goes well, and the implementation is almost done. But when using my app, i'm not really satisfied with the smoothness and user experience of it. The main problem is that when i scroll through the listview, which contains an image for each row in the listview, the scrolling isn;t smooth, it executes the getview override every time. I already threw out the holder startegy, as it slowed the scrolling... any thoughts? Thanx, Patrick -- 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: Application closes unexpectedly
Hi. Thanks for the response. I've pasted everything in logcat that was printed. I have USB debugging turned on for the phone. Is there anything else that I need to turn on to see the exceptions? On Dec 23, 1:32 pm, Mark Murphy mmur...@commonsware.com wrote: Vince wrote: I am a brand new developer to Android.. I wrote a pretty simple application that uses the gesture library. The appitself seems to run fine in the simulator. However, when I installed theappon my Google Dev Phone 1 (G1) last night, it doesn't seem to work. I've upgraded my G1 with the 1.6 image from the htc developer site I see the first screen/activity for about a second and the application exits without and errors. Here is what my manifest looks like: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.blahblah android:debuggable=true android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=4 / uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / uses-permission android:name=android.permission.READ_CONTACTS/ uses-permission uses-permission android:name=android.permission.CALL_PHONE/uses- permission application android:icon=@drawable/icon android:label=@string/ application_name activity android:name=Gesture1Activity android:label=@string/application_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=Gesture2Activity android:label=@string/label_gesture_list / activity android:name=Gesture3Activity android:label=@string/label_create_gesture / /application /manifest Here's the output for logcat: D/AndroidRuntime( 860): D/AndroidRuntime( 860): AndroidRuntime START D/AndroidRuntime( 860): CheckJNI is OFF D/AndroidRuntime( 860): --- registering native functions --- I/jdwp ( 860): received file descriptor 20 from ADB D/ddm-heap( 860): Got feature list request I/ActivityManager( 101): Starting activity: Intent { flg=0x1000 cmp=com.blahblah/.Gesture1Activity } D/AndroidRuntime( 860): Shutting down VM D/dalvikvm( 860): DestroyJavaVM waiting for non-daemon threads to exit E/AndroidRuntime( 860): ERROR: thread attach failed D/dalvikvm( 860): DestroyJavaVM shutting VM down D/dalvikvm( 860): HeapWorker thread shutting down D/dalvikvm( 860): HeapWorker thread has shut down D/jdwp ( 860): JDWP shutting down net... D/jdwp ( 860): +++ peer disconnected I/dalvikvm( 860): Debugger has detached; object registry had 1 entries D/dalvikvm( 860): VM cleaning up D/dalvikvm( 860): LinearAlloc 0x0 used 677572 of 4194304 (16%) W/InputManagerService( 101): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub $pr...@439a9eb8 You're missing large chunks of your LogCat. If the application has a force-close error, you should get a Java stack trace in LogCat that points out the error. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android 2.0 Programming Books:http://commonsware.com/books -- 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: Application closes unexpectedly
Sorry.. that was a typo on my part. That should have been without any errors meaning that I'm not seeing any exceptions or anything in logcat On Dec 24, 9:38 am, Mark Murphy mmur...@commonsware.com wrote: Vince wrote: Hi. Thanks for the response. I've pasted everything in logcat that was printed. I have USB debugging turned on for the phone. Is there anything else that I need to turn on to see the exceptions? Perhaps I misunderstood what you wrote. Could you please clarify: I see the first screen/activity for about a second and the application exits without and errors. In particular, I am not certain what without and errors means. Is that supposed to be without any errors? If so, then something in that activity may be calling finish(). Off the top of my head, I cannot think of a scenario where an activity will exit on its own with no force-close dialog and no finish() call. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Training in US: 22-26 February 2010:http://onlc.com -- 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] Application closes unexpectedly
I am a brand new developer to Android.. I wrote a pretty simple application that uses the gesture library. The app itself seems to run fine in the simulator. However, when I installed the app on my Google Dev Phone 1 (G1) last night, it doesn't seem to work. I've upgraded my G1 with the 1.6 image from the htc developer site I see the first screen/activity for about a second and the application exits without and errors. Here is what my manifest looks like: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.blahblah android:debuggable=true android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=4 / uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / uses-permission android:name=android.permission.READ_CONTACTS/ uses-permission uses-permission android:name=android.permission.CALL_PHONE/uses- permission application android:icon=@drawable/icon android:label=@string/ application_name activity android:name=Gesture1Activity android:label=@string/application_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=Gesture2Activity android:label=@string/label_gesture_list / activity android:name=Gesture3Activity android:label=@string/label_create_gesture / /application /manifest Here's the output for logcat: D/AndroidRuntime( 860): D/AndroidRuntime( 860): AndroidRuntime START D/AndroidRuntime( 860): CheckJNI is OFF D/AndroidRuntime( 860): --- registering native functions --- I/jdwp( 860): received file descriptor 20 from ADB D/ddm-heap( 860): Got feature list request I/ActivityManager( 101): Starting activity: Intent { flg=0x1000 cmp=com.blahblah/.Gesture1Activity } D/AndroidRuntime( 860): Shutting down VM D/dalvikvm( 860): DestroyJavaVM waiting for non-daemon threads to exit E/AndroidRuntime( 860): ERROR: thread attach failed D/dalvikvm( 860): DestroyJavaVM shutting VM down D/dalvikvm( 860): HeapWorker thread shutting down D/dalvikvm( 860): HeapWorker thread has shut down D/jdwp( 860): JDWP shutting down net... D/jdwp( 860): +++ peer disconnected I/dalvikvm( 860): Debugger has detached; object registry had 1 entries D/dalvikvm( 860): VM cleaning up D/dalvikvm( 860): LinearAlloc 0x0 used 677572 of 4194304 (16%) W/InputManagerService( 101): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub $pr...@439a9eb8 -- 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] Issues with installing subclipse and android plugin
Anyone having issues with getting galileo eclipse for java working on Ubuntu with both subclipse and the android plugin? I can get the android plugin working when subclipse is not installed in eclipse, but as soon as I install subclipse all the configuration options for android plugin disappears from eclipse. The jar files for the android plugin are still in the ~/.eclipse/ org.eclipse.platform_3.5.0_1328626006/plugins directory. I'm running the following version of ubuntu: No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu 8.04.3 LTS Release:8.04 Codename: hardy Here's the information about my eclipse: Eclipse IDE for Java Developers Build id: 20090619-0625 Any help would be appreciated. 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] EditText causes background to resize
Hi, I'm experimenting a problem while editing text through an EditText view. Here is my layout: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/background EditText android:layout_with=fill_parent android:layout_height=wrap_content / /LinearLayout The background is 320x455px, the application runs in portrait mode. When clicking on the EditText view, the virtual keyboard gets visible, thus causing the background to be resized... I don't want the background to be resized. I can't even understand this behaviour: keyboard should simply comes over the application without modifying it? Any guess? --~--~-~--~~~---~--~~ 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: EditText causes background to resize
Hi Mark, Thank you for your quick reply (and by the way, I bought your book, it has been a very good help). I haven't deal with IME yet. Thus, I believe I didn't happen to specify adjustResize (did I?) as I ignored this property :-). I should therefore get the pan-and-scan default... which is not the case. Anyway, I should have a closer look at IME. Another clue might be the use of my LinearLayout as a ViewStub loaded from a FrameLayout which in turn is used through the merge tag? I'm probably making mistakes. If you have any piece of sample code to provide, you'll be welcome :-) Vincent --~--~-~--~~~---~--~~ 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: EditText causes background to resize
Mark, While you were writting this huge (but very interesting post!), I simply add android:windowSoftInputMode=adjustPan in my Manifest and it does the trick. Seems a little weird as it is supposed to be the default one, but it is also highly recommended that you always specify one or the other, which I did :-) And, from now, I should always do that before adding any EditText. As an exercice, I removed the merge/stub stuck without adding the key line in the Manifest but the behaviour remained, obviously, the same. Thanks again for your time. Always good to read you. --~--~-~--~~~---~--~~ 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: Very strange StackOverflow exception
Hi fadden, Here is the stack trace: 05-21 08:38:08.050: ERROR/AndroidRuntime(952): Uncaught handler: thread main exiting due to uncaught exception 05-21 08:38:08.098: ERROR/AndroidRuntime(952): java.lang.StackOverflowError 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.text.StaticLayout.init(StaticLayout.java:97) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.text.StaticLayout.init(StaticLayout.java:54) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.text.StaticLayout.init(StaticLayout.java:45) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.TextView.makeNewLayout(TextView.java:4769) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.TextView.assumeLayout(TextView.java:4669) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.TextView.onDraw(TextView.java:3753) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.draw(View.java:5838) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1486) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.draw(View.java:5944) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.FrameLayout.draw(FrameLayout.java:352) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.buildDrawingCache(View.java:5617) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.getDrawingCache(View.java:5458) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1422) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.draw(View.java:5841) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.FrameLayout.draw(FrameLayout.java:352) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1486) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1484) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.draw(View.java:5841) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.FrameLayout.draw(FrameLayout.java:352) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.drawChild(ViewGroup.java:1486) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.view.View.draw(View.java:5841) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at android.widget.FrameLayout.draw(FrameLayout.java:352) 05-21 08:38:08.098: ERROR/AndroidRuntime(952): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw (PhoneWindow.java:1847) 05-21 08:38:08.098:
[android-developers] Re: Very strange StackOverflow exception
Indeed, you're right. Which does not explain why a single character can cause the all app to crash :-( Any guess? --~--~-~--~~~---~--~~ 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] Very strange StackOverflow exception
Hi all, I'm facing a very curious problem that gives rise to a StackOverflow exception. I'm using a LinearLayout that contains two TextViews. I'm using one of these TextViews to display the price of an item. I'd like the price to be displayed in euros so I use the following code: price.setText(item.price + €); This code causes StackOverflow exception to be raised whereas the following code: price.setText(item.price); works perfectly. All the more, the first code works well in debug mode: no exception is raised! Finally, I'm using the same code in different parts of my app and it works perfectly too, displaying the '€' character! Obviously, I tried replacing '€' by the unicode '\u20AC'. Same result. I also tried to load this character from a resource. Same result. It's driving me mad. I read on a post that such StackOverflow exception could be caused by a hierarchy 15 levels deep. But I'm confident I don't deal with so much levels. Any help? 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: MapView in SDK 1.5
Thanks Mark Raphael, By can't find it I meant that I could not find MapView in the SDK reference accessible through ./docs on my computer :-) After making a simple search, I found it in ./add-ons which corroborates what Raphael just said. I know what to do ;-)! Thanks again --~--~-~--~~~---~--~~ 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] MapView in SDK 1.5
Hi all, I've just downloaded the Cupcake SDK. I'm afraid I can't find MapView anymore... Any help? 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] How to get filter text from a ListView?
Hi all, I'm using a ListView with text filter enabled. I wonder if there is any way to get filter text? I'm afraid there is a setFilterText (String) method but not a public String getFilterText(). Or I'm missing something? 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] Problem with text filter in ListView
Hi all, I'm experiencing a very strange problem while using text filtering in a ListView. I'm using a FrameLayout described as follow: FrameLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/container android:layout_width=fill_parent android:layout_height=fill_parent ListView android:id=@android:id/list android:layout_width=fill_parent android:layout_height=fill_parent /ListView ListView android:id=@+id/list2 android:visibility=gone android:layout_width=fill_parent android:layout_height=fill_parent /ListView WebView android:id=@+id/webview android:visibility=gone android:layout_width=fill_parent android:layout_height=fill_parent /WebView /FrameLayout Basically, I enable text filtering on my first ListView through setTextFilterEnabled(true). I can click on any item of this list to move forward to my second ListView (making the second list visible and hiding the first one). Finally, I can click on any item of my second ListView to display a WebView (making the WebView visible and hiding the second ListView). Everything works fine as long as I don't use text filtering on my first ListView. When I filter it, I can move to my second ListView by clicking an item, everything still works fine. But when I click an item in the second list, I get both my WebView and my first ListView displayed! It's obviously ugly. All the more, I can even use text filtering to filter my first list and see it being refreshed. My code remains exactly the same in both situations. I use setVisibility(View.GONE) and setVisibility(View.VISIBLE) to show or hide views. Any guess? 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: Problem when updating ListView
I have an additional problem. The second time the ArrayAdapter is updated, I can't click on any item of the ListView! It seems that ListView loses onListItemClick! But after scrolling using the trackball, everything works well. I'm totally disapointed... --~--~-~--~~~---~--~~ 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] Problem when updating ListView
Hi all, I have a ListView with a footer View that is bind to a custom ArrayAdapter within a ListActivity. When creating the activity, I fill in the ArrayAdapter with some items through a dedicated thread. At the end, the thread calls setListAdapter and requestFocus through a handler. At this point, everything works fine. I mean, when scrolling the ListView, all items get hilighted correctly, even when the footer view gets focused. Now, I need to update the items in the ListView by adding a few items more. Again, I use a thread to update the ArrayAdapter and use a handler to post invalidate() on the ListView. Now, when I scroll down the ListView and reach the footer view, the last item of the list gets unreadable when losing focus. The same happens with the first item of the list when reaching a header view or a parent tab. I tried requestFocus() again but it didn't work. I also tried android:drawSelectorOnTop=false with no more result. Any guess? Help is welcomed. 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] Problem with Rotate3dAnimation using WebView
Hi all, I'm using the demo API 3d Transition to switch between a ListView and a WebView. The animation works... but my WebView is reversed, so is the content of the WebView, that makes it impossible to read. I understand the animation is rotating around the Y axis but I want it to display the WebView the right way. I think it has something to do with the following code: protected void applyTransformation(float interpolatedTime, Transformation t) { final float fromDegrees = mFromDegrees; float degrees = fromDegrees + ((mToDegrees - fromDegrees) * interpolatedTime); final float centerX = mCenterX; final float centerY = mCenterY; final Camera camera = mCamera; final Matrix matrix = t.getMatrix(); camera.save(); if (mReverse) { camera.translate(0.0f, 0.0f, mDepthZ * interpolatedTime); } else { camera.translate(0.0f, 0.0f, mDepthZ * (1.0f - interpolatedTime)); } camera.rotateY(degrees); camera.getMatrix(matrix); camera.restore(); matrix.preTranslate(-centerX, -centerY); matrix.postTranslate(centerX, centerY); } When I comment the camera.rotateY(degrees) statement, the WebView gets readable but the animation is not the same. Any idea? 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: Problem with Rotate3dAnimation using WebView
Hi Filipe, Thanks! I was looking for something like this. I haven't try this one ;-) It does the trick! Regards, Vince --~--~-~--~~~---~--~~ 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: ADB via USB
On Oct 24, 12:06 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yeah. I'm wating for a x64 driver myself :-\ On Oct 23, 12:28 pm, Declan Shanaghy [EMAIL PROTECTED] wrote: But is the driver x64 compatible? Same problem here, wish there was a way to ping google on this so that they can see it as more people needing this. In the mean time, virtualbox with Ubuntu will work, though it's hardly an optimal solution. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---