[android-developers] Re: Linkify
What about sending attachments with the email ? On Sunday, 31 October 2010 03:25:21 UTC+5:30, Priyank wrote: > > Hi, > > I am stuck at a place when I was using Linkify to create Link an email > id to the Android email app. > > I have a large sentence in a textview which has an email id. On > clicking on it, it opens my android email app. But The problem is > that, I cannot add any subject or message in the mail. Is there any > way of doing this using linkify ? Or do I have to use any other way > for doing this. > I initially used a textview which had just the email id, from which I > could add the subject and message, but i will have to keep the email > id in a separate line. I want the entire line in the textview where > the email id comes in the middle of the sentence. > > I am currently doing like this: > > TextView emailLink; > emailLink = (TextView) > this.findViewById(R.id.support_request); > Linkify.addLinks(emailLink,Linkify.EMAIL_ADDRESSES); > > Thanks, > Priyank -- 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. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/df25fd68-2866-4a54-8a11-ea10059c16f5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] WebView's size issue when Orientation changes
Please help me on this http://stackoverflow.com/questions/18655827/webview-orientation-change-issue -- 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/groups/opt_out.
[android-developers] Fetching email ids to which user has sent email
I am working on an App where i want to open a mail client and allow user to enter mail ids to send mail.Once User clicks on send button mail should be sent and return back to the my app with all the mail ids i have sent mail to. I have done everything but i don't know how i can get the callback with all the mail ids user has sent mail to.Please if anyone knows anything i can do to get the mail ids would be a great help. -- 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/groups/opt_out.
[android-developers] Issue regarding Device screen resolutions
I have created 2 layout folders under res/layout 1) layout-hdpi-960x540 and 2) layout-sw360dp the first folder i have created for motorola razr devices for the resolution of 960x540 devices. and the second folder i am using for google nexus device. Now the problem i am facing is that the layouts under layout-sw360dp folder are being rendered for motorola device i.e( 960x540 of resolution ). How can i get the layouts rendered from layout-hdpi-960x540 for the device of the resolution(960X540)? 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 --- 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/groups/opt_out.
[android-developers] Changing width of TabIndicator in View Pager
Hi guys , I want to reduce the width of the tabIndicator of the StripTabTitle in view pager. Here is the detailshttp://stackoverflow.com/questions/16037137/changing-width-of-tabindicator-in-view-pager.Please help. -- -- 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/groups/opt_out.
[android-developers] showing more than three PagerTabStrip in ViewPager at a time
am using a ViewPager in which I am able to have 3 PagerTabStrip. But I want to have more than 3, maybe 4 or 5. I tried using setTextSpacing() but that didn't work. There is no direct option also to have some a some amount of PaperTitleStrip. Any Suggestions how can we implement the same. -- -- 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/groups/opt_out.
[android-developers] Re: showing more than three PagerTabStrip in ViewPager at a time
cool ...I ll try that. Thanks On Monday, 15 April 2013 14:12:47 UTC+5:30, Piren wrote: Thats because it can only display 3. if you want more, you'll have to create your own. Just take the source code for the strip and extrapolate it for more than 3, shouldn't be that hard. (or just write your own from scratch, shouldn't be that hard either) On Monday, April 15, 2013 10:32:11 AM UTC+3, Ansh wrote: am using a ViewPager in which I am able to have 3 PagerTabStrip. But I want to have more than 3, maybe 4 or 5. I tried using setTextSpacing() but that didn't work. There is no direct option also to have some a some amount of PaperTitleStrip. Any Suggestions how can we implement the same. -- -- 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/groups/opt_out.
[android-developers] Over scroll behavior of an ExpandableListView
I have implemented overscroll feature on ExpandableListView using this LINKhttp://jasonfry.co.uk/blog/android-overscroll-revisited/ and i can only see over scrolling behavior of List when i expand any child of the group in the ExpandableListView. I want it to over scroll the list if it is not expanded also.can anyone have any guess to achieve 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 --- 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/groups/opt_out.
[android-developers] Re: Over scroll behavior of an ExpandableListView
I have made this working with setting setOverScrollMode(View.OVER_SCROLL_ALWAYS); but now in motorola razr and defy it is bouncing fine but in samsung s3 if we scrolls it stays at the same position but not bounces back. What the heck is this.Please help me . On Tuesday, 2 April 2013 15:56:22 UTC+5:30, Ansh wrote: I have implemented overscroll feature on ExpandableListView using this LINK http://jasonfry.co.uk/blog/android-overscroll-revisited/ and i can only see over scrolling behavior of List when i expand any child of the group in the ExpandableListView. I want it to over scroll the list if it is not expanded also.can anyone have any guess to achieve 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 --- 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/groups/opt_out.
[android-developers] Re: Translate Animation doesn't work with samsung's S3
This has been fixed see my comment in the same stackoverflow link. On Friday, 22 March 2013 11:28:00 UTC+5:30, Ansh wrote: Hi guys , i am doing translate animation where i need to move my view( which is at the center of the screen ,but not exactly ) upward so that it can fit to the container placed 9dp from top.I have figured it out that if i translate view from 0%p to 52%p it will exactly fit the in the container layout for XHDPI devices.which worked perfect on google galaxy nexus device ( 720 X 1280 ) but the same thing is not working on samsung s3.In S3 i need to move the view onlty 50%p.Please tell me how can i resolve this devices dependent issue?And Why this happens? Is it happening because of screen sizes if so , please suggest me the solution. for better understanding please have a look at : http://stackoverflow.com/questions/15546791/translateanimation-with-p-not-working-in-in-samsung-s3 -- -- 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/groups/opt_out.
[android-developers] Translate Animation doesn't work with samsung's S3
Hi guys , i am doing translate animation where i need to move my view( which is at the center of the screen ,but not exactly ) upward so that it can fit to the container placed 9dp from top.I have figured it out that if i translate view from 0%p to 52%p it will exactly fit the in the container layout for XHDPI devices.which worked perfect on google galaxy nexus device ( 720 X 1280 ) but the same thing is not working on samsung s3.In S3 i need to move the view onlty 50%p.Please tell me how can i resolve this devices dependent issue?And Why this happens? Is it happening because of screen sizes if so , please suggest me the solution. for better understanding please have a look at : http://stackoverflow.com/questions/15546791/translateanimation-with-p-not-working-in-in-samsung-s3 -- -- 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/groups/opt_out.
[android-developers] Re: Animating the ExpandableListView
I am also looking for the solution please respond anyone with solution.But Don't give solution using simpleListView. On Friday, 17 September 2010 13:06:48 UTC+5:30, Kumar Bibek wrote: Hi All, Is it possible to animate the expanding and collapsing of the groups in a ExpandableListView. I could not find any examples anywhere. Kumar Bibek http://techdroid.kbeanie.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 --- 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/groups/opt_out.
[android-developers] Issue with SetCustomAnimations in fragments
Hi Guys I am having issue with the CustomAnimations setting while fragments are being replaced. here is the detailed questionhttp://stackoverflow.com/questions/15362137/facing-issue-with-setcustomanimations-while-replacing-fragments Please help me as it has already eaten my whole day -- -- 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/groups/opt_out.
[android-developers] Re: Customizing progress Dialogs
Thanks buddy On Wednesday, February 13, 2013 11:07:04 AM UTC+5:30, ravi . wrote: You can use ProgressBar widget. It will show only spinner -- -- 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/groups/opt_out.
[android-developers] Re: Changing Radio stations through headphones
Thanks Manish i ll try it out and get back with the result On Saturday, March 2, 2013 6:25:24 PM UTC+5:30, manish pathak wrote: Yes ansh , you can do it by easily by java code... following link will help you http://stackoverflow.com/questions/6287116/android-registering-a-headset-button-click-with-broadcastreceiver Thanks Regards Manish Pathak Mobile Technology Innovator -- -- 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/groups/opt_out.
[android-developers] Re: Changing Radio stations through headphones
I got an answer -NOT POSSIBLE with the link http://stackoverflow.com/questions/7567489/fm-radio-app-to-change-the-radio-station-from-the-handsfree Guys do u agree with that? On Wednesday, February 6, 2013 1:06:57 PM UTC+5:30, Ansh wrote: Hi Guys , I am an android developer developing apps for 2 yrs.I am having HTC one v and when i listens to radio and want to change the station i need to change it through my phone's radio app.I need to know if i can do it via headset directly with the hardware button on the headset like some nokia phones provides this feature( changing the songs and radio channels ) ?Is it possible through java code or NDK ? -- -- 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/groups/opt_out.
[android-developers] Customizing progress Dialogs
Hi Guys , I want to customize the progress dialog for my app.I want to show only spinner spinning without the black background.I have googled a lot but nothings seems to be working.Please tell me how can i achieve that effect. -- -- 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/groups/opt_out.
[android-developers] Changing Radio stations through headphones
Hi Guys , I am an android developer developing apps for 2 yrs.I am having HTC one v and when i listens to radio and want to change the station i need to change it through my phone's radio app.I need to know if i can do it via headset directly with the hardware button on the headset like some nokia phones provides this feature( changing the songs and radio channels ) ?Is it possible through java code or NDK ? -- -- 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/groups/opt_out.
[android-developers] Re: Click events doesn't work on a button after Animation
Hey guys , Please help me , i have still not found the solution. On Tuesday, 22 January 2013 17:57:32 UTC+5:30, Ansh wrote: Hi guys , i am facing a weird problem.I have a layout and there is a button inside that layout.On clicking of the button i need to translate that layout towards up say for example 30%.I am able to achieve this but when animation ends i loose click event on the button which a very weird and known issue to all the forums and stack overflow.I searched every where but could not find a solution.I have read that When layout is animated it looks that it has been animated but it is View resides at there original position .Then how can i perform onClick of a button which is now placed to the new postion? 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
Re: [android-developers] Click events doesn't work on a button after Animation
Hi Blake / Mark, I chose Mark's second option and yes i got the flash effect at the end.But as you say that move the view before animation , but I am calculating the views position at the end of animation and moving the layout.If i move the view before animation how would i suppose to find the position ? *Can you guys suggest better idea for that?* here is the code snippet : Animation animation = new TranslateAnimation(0, 0, 0, -200); animation.setDuration(1000); relativeMain.startAnimation(animation); animation.setAnimationListener(new AnimationListener() { @Override public void onAnimationStart(Animation animation) { } @Override public void onAnimationRepeat(Animation animation) { } @Override public void onAnimationEnd(Animation animation) { left = relativeMain.getLeft(); top = relativeMain.getTop(); right = relativeMain.getRight(); bottom = relativeMain.getBottom(); relativeMain.layout(left, top - 200, right , bottom -200 ); // layout to be moved upward after translate animation } }); On Wednesday, 23 January 2013 20:43:13 UTC+5:30, G. Blake Meike wrote: If you choose Mark's second solution, be sure to move the view *before* the animation. If you don't you'll get a flash at the end of the animation, when you move the view. -blake -- 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
Re: [android-developers] Click events doesn't work on a button after Animation
*Ok Blake , i have done the same way you described.I have moved the layout before animation starts and it moved towards up but now when the animations starts on the layout it ll start animating from the new position which i set before starting the animation for the layout.* * * *Any better solution so that i can make the animation smooth? * On Thursday, 24 January 2013 10:31:04 UTC+5:30, Ansh wrote: Hi Blake / Mark, I chose Mark's second option and yes i got the flash effect at the end.But as you say that move the view before animation , but I am calculating the views position at the end of animation and moving the layout.If i move the view before animation how would i suppose to find the position ? *Can you guys suggest better idea for that?* here is the code snippet : Animation animation = new TranslateAnimation(0, 0, 0, -200); animation.setDuration(1000); relativeMain.startAnimation(animation); animation.setAnimationListener(new AnimationListener() { @Override public void onAnimationStart(Animation animation) { } @Override public void onAnimationRepeat(Animation animation) { } @Override public void onAnimationEnd(Animation animation) { left = relativeMain.getLeft(); top = relativeMain.getTop(); right = relativeMain.getRight(); bottom = relativeMain.getBottom(); relativeMain.layout(left, top - 200, right , bottom -200 ); // layout to be moved upward after translate animation } }); On Wednesday, 23 January 2013 20:43:13 UTC+5:30, G. Blake Meike wrote: If you choose Mark's second solution, be sure to move the view *before* the animation. If you don't you'll get a flash at the end of the animation, when you move the view. -blake -- 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] Click events doesn't work on a button after Animation
Hi guys , i am facing a weird problem.I have a layout and there is a button inside that layout.On clicking of the button i need to translate that layout towards up say for example 30%.I am able to achieve this but when animation ends i loose click event on the button which a very weird and known issue to all the forums and stack overflow.I searched every where but could not find a solution.I have read that When layout is animated it looks that it has been animated but it is View resides at there original position .Then how can i perform onClick of a button which is now placed to the new postion? 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
Re: [android-developers] Click events doesn't work on a button after Animation
Thanks for your comment Mark. - Do not use TranslateAnimation, but instead switch to the newer ViewPropertyAnimator framework (and NineOldAndroids for a backport), * I can't use ViewPropertyAnimator framework because i need to support for below 3.0 API level.* - Do not bother with setFillAfter(true), but instead attach an AnimationListener that will adjust the layout so the widget is in its new position when the animation ends *I Could not understand clearly.Can you please explain more about this idea?Dummy code would be great as i am new to animations.* On Tuesday, 22 January 2013 18:08:54 UTC+5:30, Mark Murphy (a Commons Guy) wrote: This is expected behavior. Either: - Do not use TranslateAnimation, but instead switch to the newer ViewPropertyAnimator framework (and NineOldAndroids for a backport), or - Do not bother with setFillAfter(true), but instead attach an AnimationListener that will adjust the layout so the widget is in its new position when the animation ends On Tue, Jan 22, 2013 at 7:27 AM, Ansh youra...@gmail.com javascript: wrote: Hi guys , i am facing a weird problem.I have a layout and there is a button inside that layout.On clicking of the button i need to translate that layout towards up say for example 30%.I am able to achieve this but when animation ends i loose click event on the button which a very weird and known issue to all the forums and stack overflow.I searched every where but could not find a solution.I have read that When layout is animated it looks that it has been animated but it is View resides at there original position .Then how can i perform onClick of a button which is now placed to the new postion? 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-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.5 Available! -- 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: Animations in the list view
Hats off to you man ...you are a life saver. Although the animation with this code is not smoother like the one in the video but its as smooth as it can be and its good in terms of lines of code and other unnecessary stuffs i used to achieve. check this out and provide me your feedback http://youtu.be/BrIJ-1HblIY On Thursday, 17 January 2013 13:59:16 UTC+5:30, skink wrote: On 12 Sty, 19:40, Ansh yourans...@gmail.com wrote: Hi guys I am new to animation in android.I am trying to translate childitem/ of a listview.First child view should translate from middle to top of the list and the list should also slide down during the translate animation and make the space of the view being translated.Please help me guys as it has eaten up my mind for past 3days. i am trying to achieve exactly the same in this video. http://youtu.be/xPLhfEJuz4k here you have sample code to start with: import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.os.Bundle; import android.view.View; import android.view.animation.AlphaAnimation; import android.view.animation.Animation; import android.view.animation.TranslateAnimation; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.ArrayAdapter; import android.widget.EditText; import android.widget.ListView; public class AnimatedListActivity extends Activity implements OnItemClickListener, OnClickListener, Runnable { private final static String TAG = AnimatedListActivity; private ArrayAdapterString mAdapter; private int mInsertPosition; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.lv); ListView lv = (ListView) findViewById(R.id.lv); lv.setClipChildren(false); lv.setOnItemClickListener(this); lv.setDivider(null); mAdapter = new ArrayAdapterString(this, android.R.layout.simple_list_item_1); mAdapter.add(10); mAdapter.add(20); mAdapter.add(30); mAdapter.add(40); mAdapter.add(50); mAdapter.add(60); mAdapter.add(70); mAdapter.add(80); mAdapter.add(90); lv.setAdapter(mAdapter); } @Override public void onItemClick(AdapterView? parent, View view, int position, long id) { AlertDialog.Builder b = new AlertDialog.Builder(this); b.setPositiveButton(android.R.string.ok, this); b.setTitle(Enter Integer); EditText et = new EditText(this); et.setId(99); b.setView(et); b.show(); } @Override public void onClick(DialogInterface dialog, int which) { AlertDialog d = (AlertDialog) dialog; EditText et = (EditText) d.findViewById(99); String newItem = et.getText().toString(); ListView lv = (ListView) findViewById(R.id.lv); int cnt = mAdapter.getCount(); for (int i = 0; i cnt; i++) { String item = mAdapter.getItem(i); if (newItem.compareTo(item) 0) { mAdapter.insert(newItem, i); mInsertPosition = i; lv.setSelection(i); lv.post(this); break; } } } @Override public void run() { ListView lv = (ListView) findViewById(R.id.lv); // here animations start int first = lv.getFirstVisiblePosition(); int last = lv.getLastVisiblePosition(); for (int k = 0; k last - first + 1; k++) { View child = lv.getChildAt(k); int pos = lv.getPositionForView(child); Animation animation = null; if (pos == mInsertPosition) { // instead of alpha animation you can make your // new inserted item move here animation = new AlphaAnimation(0, 1); } else if (pos mInsertPosition) { animation = new TranslateAnimation( Animation.ABSOLUTE, 0
[android-developers] Re: Animations in the list view
Yes i took help from your code.The popup which is floating upwards is a layout of the same type as the layout being used for the ListView. On Thursday, 17 January 2013 18:00:22 UTC+5:30, skink wrote: Ansh wrote: Hats off to you man ...you are a life saver. Although the animation with this code is not smoother like the one in the video but its as smooth as it can be and its good in terms of lines of code and other unnecessary stuffs i used to achieve. check this out and provide me your feedback http://youtu.be/BrIJ-1HblIY is it done based of my code? how did you animate item which is added to the list? is it a popup window or some child of a frame layout? pskink -- 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: Animations in the list view
sure dude ,i ll share the link of my blog once i finish with this On Thursday, 17 January 2013 18:26:46 UTC+5:30, skink wrote: Ansh wrote: Yes i took help from your code.The popup which is floating upwards is a layout of the same type as the layout being used for the ListView. share a code snippet then... pskink -- 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: Animations in the list view
Thanks for replying again. * * * you can override its height in the getview() and set it at 1 dp high (tip: don't set the row view to View.GONE). At the end of the animations you will just be fiddling around with row heights and view contents so you shouldn't need the notifyDatasetChanged().* * * I could not get you by setting it at 1 dp high.And what i need to do after animation ends?Please explain little more. On Tuesday, 15 January 2013 19:01:13 UTC+5:30, Spiral123 wrote: in that case I'd think about insert a new row into the list when the listview is first displayed. from the example its always going to be at position(0) in the list so you can override its height in the getview() and set it at 1 dp high (tip: don't set the row view to View.GONE). At the end of the animations you will just be fiddling around with row heights and view contents so you shouldn't need the notifyDatasetChanged(). On Tuesday, January 15, 2013 4:14:52 AM UTC-5, Ansh wrote: Hi Nick , Thanks a lot for your reply. I did the same you suggested but it had revealed few issues: after implementing all three steps and when i did below step also *- After the animations have finished insert a new Row into the List at the insertion point, change the child view height back to a single row height and destroy the dummy row view.* * * *-*when i inserted Row into the insertion point and called notifyDatasetChanged for the list to update the row it showed some jerk because list's getview method called and repopulate the list again and i needed not to change the child view height back as getView changed its height back to original.Animation was not that smooth as its in the youtube video. If i misunderstood your stpes ,and if possible ,could u please create a demo project and send it to me to yourans...@gmail.com.I ll be grateful to you. On Monday, 14 January 2013 18:55:46 UTC+5:30, Spiral123 wrote: I think this is not very different to a question we had a couple of weeks ago. This is what I would do: - I would not use 2 ListViews. I would leave the original ListView underneath and dynamically create a new View that was a single RowView and put that on top and slide it around. - I would not insert an extra row into the original ListView. Instead find the child view at the top of the list and double the height of it. Make sure the gravity of the content is such that is sticks to the bottom of the view. - Slide the dummy row view up until it lies directly over the top (blank) part of the child view. - After the animations have finished insert a new Row into the List at the insertion point, change the child view height back to a single row height and destroy the dummy row view. I think that should give you the appearance you want. Judging from the neutral background and lack of row dividers I'm guessing whoever wrote the sample behind your youtube example did something similar. Best, Nick On Monday, January 14, 2013 3:16:59 AM UTC-5, Ansh wrote: I have tried one way of doing this kind of animation.I have taken 2 listviews and made first list view's visibility gone.Then i have taken one separate layout( the same custom layout i am using for the listview )and trying to translate that layout from middle to top and once it reaches to top and making it's visibility to gone.and the same time when the view is translating, i am sliding down the list also and once the view's animation ends i am setting list animation to fillAfter = true and fillEnabled=true and list1.setVisibility = gone and list2.setVisibility = visible sothat list2 should be visible but what happening is list1 is not getting gone it still be there because of the bug when we use fillAfter = true and fillEnabled=true.How can i make my list1 visibility to gone ? On Sunday, 13 January 2013 00:10:47 UTC+5:30, Ansh wrote: Hi guys I am new to animation in android.I am trying to translate childitem/ of a listview.First child view should translate from middle to top of the list and the list should also slide down during the translate animation and make the space of the view being translated.Please help me guys as it has eaten up my mind for past 3days. i am trying to achieve exactly the same in this video. http://youtu.be/xPLhfEJuz4k -- 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: Animations in the list view
Hi Nick , Thanks a lot for your reply. I did the same you suggested but it had revealed few issues: after implementing all three steps and when i did below step also *- After the animations have finished insert a new Row into the List at the insertion point, change the child view height back to a single row height and destroy the dummy row view.* * * *-*when i inserted Row into the insertion point and called notifyDatasetChanged for the list to update the row it showed some jerk because list's getview method called and repopulate the list again and i needed not to change the child view height back as getView changed its height back to original.Animation was not that smooth as its in the youtube video. If i misunderstood your stpes ,and if possible ,could u please create a demo project and send it to me to yourans...@gmail.com.I ll be grateful to you. On Monday, 14 January 2013 18:55:46 UTC+5:30, Spiral123 wrote: I think this is not very different to a question we had a couple of weeks ago. This is what I would do: - I would not use 2 ListViews. I would leave the original ListView underneath and dynamically create a new View that was a single RowView and put that on top and slide it around. - I would not insert an extra row into the original ListView. Instead find the child view at the top of the list and double the height of it. Make sure the gravity of the content is such that is sticks to the bottom of the view. - Slide the dummy row view up until it lies directly over the top (blank) part of the child view. - After the animations have finished insert a new Row into the List at the insertion point, change the child view height back to a single row height and destroy the dummy row view. I think that should give you the appearance you want. Judging from the neutral background and lack of row dividers I'm guessing whoever wrote the sample behind your youtube example did something similar. Best, Nick On Monday, January 14, 2013 3:16:59 AM UTC-5, Ansh wrote: I have tried one way of doing this kind of animation.I have taken 2 listviews and made first list view's visibility gone.Then i have taken one separate layout( the same custom layout i am using for the listview )and trying to translate that layout from middle to top and once it reaches to top and making it's visibility to gone.and the same time when the view is translating, i am sliding down the list also and once the view's animation ends i am setting list animation to fillAfter = true and fillEnabled=true and list1.setVisibility = gone and list2.setVisibility = visible sothat list2 should be visible but what happening is list1 is not getting gone it still be there because of the bug when we use fillAfter = true and fillEnabled=true.How can i make my list1 visibility to gone ? On Sunday, 13 January 2013 00:10:47 UTC+5:30, Ansh wrote: Hi guys I am new to animation in android.I am trying to translate childitem/ of a listview.First child view should translate from middle to top of the list and the list should also slide down during the translate animation and make the space of the view being translated.Please help me guys as it has eaten up my mind for past 3days. i am trying to achieve exactly the same in this video. http://youtu.be/xPLhfEJuz4k -- 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: Animations in the list view
I have tried one way of doing this kind of animation.I have taken 2 listviews and made first list view's visibility gone.Then i have taken one separate layout( the same custom layout i am using for the listview )and trying to translate that layout from middle to top and once it reaches to top and making it's visibility to gone.and the same time when the view is translating, i am sliding down the list also and once the view's animation ends i am setting list animation to fillAfter = true and fillEnabled=true and list1.setVisibility = gone and list2.setVisibility = visible sothat list2 should be visible but what happening is list1 is not getting gone it still be there because of the bug when we use fillAfter = true and fillEnabled=true.How can i make my list1 visibility to gone ? On Sunday, 13 January 2013 00:10:47 UTC+5:30, Ansh wrote: Hi guys I am new to animation in android.I am trying to translate childitem/ of a listview.First child view should translate from middle to top of the list and the list should also slide down during the translate animation and make the space of the view being translated.Please help me guys as it has eaten up my mind for past 3days. i am trying to achieve exactly the same in this video. http://youtu.be/xPLhfEJuz4k -- 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: Animations in the list view
Hi Nobu, Thanks for your reply.But Can you please elaborate on the solutions you have suggested.I have tried lot to achieve the task.Is this task possible to achieve? On Sunday, 13 January 2013 00:57:55 UTC+5:30, Nobu Games wrote: The quick and incorrect approach would be starting these growing animations from your ListAdapter's getView method. Right before you return the convertView you'd start the animation object on that view. However, there is a problem with that animation approach because ListViews lays out its child views (items) and determines their positions. So using an Animation object for transforming the height of an item (grow animation) would not affect the other list items. They would statically remain in their locations and your new item that slides in will just grow into a gap that is exactly that item's full size. Following solution ideas: - You override ListView and add some layout animation behavior that does what you need - Animate the height of your added item using a Timer object. Trigger re-layouts of the ListView in order to align the other child views accordingly. (However, I don't know whether you'll need to constantly invalidate your listadapter in order to make that work. This might turn out to be a pretty wasteful approach!) On Saturday, January 12, 2013 12:40:47 PM UTC-6, Ansh wrote: Hi guys I am new to animation in android.I am trying to translate childitem/ of a listview.First child view should translate from middle to top of the list and the list should also slide down during the translate animation and make the space of the view being translated.Please help me guys as it has eaten up my mind for past 3days. i am trying to achieve exactly the same in this video. http://youtu.be/xPLhfEJuz4k -- 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] Animations in the list view
Hi guys I am new to animation in android.I am trying to translate childitem/ of a listview.First child view should translate from middle to top of the list and the list should also slide down during the translate animation and make the space of the view being translated.Please help me guys as it has eaten up my mind for past 3days. i am trying to achieve exactly the same in this video. http://youtu.be/xPLhfEJuz4k -- 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] Galaxy S3, a rotation animation is shown when going from a normal portrait activity to camera activity and coming back.
Hi guys, In my app i am trying to take a pic from camera and displaying it in the imageview.Everything works fine but when i took pic from samsung galaxy s3 , it changed the orientation and displays the camera activity andonActivity result it displayed the pic in the imageView but in a fraction of seconds it changed the orientation again removed the pic from imageview.Its very weird how can i resolve this issue? -- 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] Adding more functionality to the notification bar
Hi I want to know how can i modify the behavior of the notifications of in the notification bar.Say for example if i have got a msg it shows me in the notification bar and when i scroll the notification bar and when i click on the msg icon it navigates me to the msg app to show the msg.I want to do something on the long press of the notification. How can i achieve the functionality. I am an android application developer but new to NDK or lower level of android programming. please let me know how can i best achieve the goal? -- 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
Re: [android-developers] Adding more functionality to the notification bar
Thanks for replying On Thursday, 11 October 2012 16:14:39 UTC+5:30, Mark Murphy (a Commons Guy) wrote: On Thu, Oct 11, 2012 at 6:19 AM, Ansh youra...@gmail.com javascript: wrote: I want to do something on the long press of the notification. How can i achieve the functionality. This list is for developing apps with the Android SDK, and you cannot do something on the long press of the notification via the Android SDK, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 Available! -- 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: startActivityForResult() from service
Hi Archana You can't do startActivityForResults in the service. I guess you want to do something after user has enabled the bluetooth from the setting.For this to achieve what you can do is write your code on OnResume checking the status of the bluettoth if it's not then navigate user to the setting screen asking him/her to enable it . OnResume(){ if( bluetooth is not enable ){ open bluetooth setting screen or directly enable it }else{ bluetooth is already enabled do what u want } } I don't know whether it will work but try this On Thursday, 11 October 2012 17:43:02 UTC+5:30, Archana wrote: Hi, I have defined a service. I need to call startActivityForResult(intent,REQUEST_CODE) from this. I saw http://stackoverflow.com/questions/3448485/startactivityforresult-from-a-service But can someone explain me? 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: startActivityForResult() from service
On Thursday, 11 October 2012 17:43:02 UTC+5:30, Archana wrote: Hi, I have defined a service. I need to call startActivityForResult(intent,REQUEST_CODE) from this. I saw http://stackoverflow.com/questions/3448485/startactivityforresult-from-a-service But can someone explain me? 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] READING A FILE FROM INTERNAL MEMORY
Hi all, My client has a requirement of reading a file from apps private space. A file that can be a doc/pdf/txt file, has to be read from my apps internal memory with the permissions like read or read write.And i have to open that file from the third party app.i have that it is not possible ,but i would like to know is there any way i can achieve this task. NOTE : creating our own file viewer is not preferable due to long development time. Thanks Anshul -- 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] VIDEO PLAYER Problem
Other recipients: hey i m new to android and when i m trying to play a video file using the below code i m having the proble m tht its not forwading (buffering is not being done)the video.and it is displying the first scene only. HERE IS THE CODE: package com.examples; import java.io.InputStream; import android.app.Activity; import android.graphics.PixelFormat; import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.widget.MediaController; import android.widget.VideoView; public class MediaVedio extends Activity { /** Called when the activity is first created. */ private MediaController mc; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); VideoView video = (VideoView) findViewById(R.id.videoView1); Uri uri = Uri.parse(android.resource:// +getPackageName()+ /+R.raw.ansh1); mc = new MediaController(MediaVedio.this); video.setMediaController(mc); video.setVideoURI(uri); video.requestFocus(); video.isPlaying(); video.start(); } } -- 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] media player
hey i m new to android and when i m trying to play a video file using the below code i m having the proble m tht its not forwading (buffering is not being done)the video.and it is displying the first scene only. HERE IS THE CODE: package com.examples; import java.io.InputStream; import android.app.Activity; import android.graphics.PixelFormat; import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.widget.MediaController; import android.widget.VideoView; public class MediaVedio extends Activity { /** Called when the activity is first created. */ private MediaController mc; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); VideoView video = (VideoView) findViewById(R.id.videoView1); Uri uri = Uri.parse(android.resource:// +getPackageName()+ /+R.raw.ansh1); mc = new MediaController(MediaVedio.this); video.setMediaController(mc); video.setVideoURI(uri); video.requestFocus(); video.isPlaying(); video.start(); } } -- 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