Re: [android-developers] Expand layout and fit to screen
Sorry for my bad , heres example ScrollView LinerarView RelativeLayout /RelativeLayoutlayout 1 some more items and when click they will expand RelativeLayout /RelativeLayoutlayout 2 some more items and when click they will expand RelativeLayout /RelativeLayout layout 3 some more items and when click they will expand RelativeLayout /RelativeLayoutlayout 4 some more items and when click they will expand RelativeLayout /RelativeLayoutlayout 5 some more items and when click they will expand Here when i click layout 4 the view will expand and the contents are going out of screen , so i want to move the contents to be fit on screen Say layout shud move up when expanded . /LinerarView /ScrollView Thanks and Regards:- Ankur Goel 09019040351 S/W Engg. On Fri, Apr 25, 2014 at 12:36 AM, TreKing treking...@gmail.com wrote: On Thu, Apr 24, 2014 at 7:25 AM, ANKUR GOEL ankur1...@gmail.com wrote: i am having one scroll View inside that i have multiple relative layout and have some fields in relative layout . That's not possible as ScrollView only supports one direct child. When i click on any relative layout the layout is expanding but the contents are going out of screen . What is the layout? Why is it expanding? Can anybody help me so that the relative layout shud move up and the contents will fit to screen . Move up where? Your description is extremely vague and you will likely not get a good answer. Clarify your issue and it would probably help if you included pictures to go with it. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] FFT algorithm
xexexexexe..TreKing Rules :) On Tue, Apr 22, 2014 at 12:44 PM, Piren gpi...@gmail.com wrote: Haven't checked this group for a while, good to see you're still here :) On Tuesday, April 22, 2014 1:59:03 AM UTC+3, TreKing wrote: On Mon, Apr 21, 2014 at 1:12 PM, Mahmoud Mortada mody.m...@gmail.comwrote: I want an algorithm to analyze sounds working on android. Cool. I want a unicorn that shits gold and farts rainbows. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Expand layout and fit to screen
On Fri, Apr 25, 2014 at 2:34 AM, ANKUR GOEL ankur1...@gmail.com wrote: Here when i click layout 4 the view will expand and the contents are going out of screen , so i want to move the contents to be fit on screen Say layout shud move up when expanded . I don't know what a LinerarView is, but you can try figuring out the y position of that view that expanded and then using: http://developer.android.com/reference/android/widget/ScrollView.html#smoothScrollTo%28int,%20int%29 Or use an expandable list view, which seems like what you've described and does the whole scroll to expanded section thing automatically. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Camera preview center crop without SurfaceTexture
Im trying to show a camera preview to the user of arbitrary size. What I'd like to do is pick an appropriate camera size based on the size of the preview, then effectively do a center-crop of the camera output into this (ie maintain aspect-ratio of the camera preview). As far as i can tell, the camera by default stretches the camera onto the surface view so i need to make the surface view have the same aspect as the chosen camera size and then use another view to crop this. I've had some success by adapting the code from the (rather complicated) android Camera app. (from here) https://android.googlesource.com/platform/packages/apps/Camera.git/+/master I noticed that the app uses two modes of operation depending on whether surface textures are available. I didn't want to get into manually drawing onto canvases as that seems overkill for this so I essentially tried to take the surfaceholder implementation and flip the equality test in PreviewFrameLayout like so: if (longSide shortSide * mAspectRatio) Right now i have the correct behaviour in a small preview, but if i try to make it the start of the screen the application seems to just quit (i think drawing off the screen causes an issue). SO I'm basically back at square 1 and I've been working at this for so long i figure i must just be doing something wrong. can anyone tell me what im doing wrong or if this is even possible? It feels like there is some fundamental limitation preventing me from having one view crop another... -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Location.distanceTo() and Asus Memo Pad.
In one weekend, I suddenly got six reports that distance measure by GPS was way off. Way off. Like walk 500 feet and it says you just walked 32 miles. On further interrogation, ALL of these reports were from device model ME173X, the Asus Memo pad. Possibilities are the following: Getting erroneous or inconsistent results from the Location.distanceTo or Location.distanceBetween method. (Sounds really weird, but some behavior described by an end user could be caused by that.) Getting a bunch of noisy location data form the GPS. But this is already a common scenario, and they would see other effects from it. Anyone aware of any weird things from that device? Nathan -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] supporting multiple screen: issue in 8.3 inch tab
HI, I have developed an application which supports all mobiles and tablets. But one of the user reported that the app is getting crashed after login when navigating to Homescreen. The user ran the app in LG G Pad 8.3 inch size tablet. Here I have tested app in both 7 and 10 tablet but I didn't get any crash but its crashing in 8.3 LG G pad. I don't have logs and tablet so that I could not be able to test or find root cause. LG G pad resolution: 1920*1200 (hdpi and xlarge) and size is 8.3inch Here in my app I used layout structure like this, res/layout-sw600dp/main_activity.xml # For 7” tablets (600dp wide and bigger) res/layout-sw720dp/main_activity.xml # For 10” tablets (720dp wide and bigger I am suspecting the issue might be due to any layout file, but I am not sure. Can anyone suggest me what can be the issue. Do i need to include and specific layout folder or drawable folder under res folder to support 8.3. Usually from which it should pick layout files and drawable files for this 8.3 inch. I have read supporting mutilple screen article from developer site. Please guide me in this. Regards, Abhilash Baddam -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.