Re: [android-developers] how to get item from grid view at specific postion
I apologize if I insulted I was just frustrated please forgive me On Dec 28, 2013 6:56 AM, TreKing treking...@gmail.com wrote: On Fri, Dec 27, 2013 at 9:49 AM, Amit Mangal forum.amit.man...@gmail.comwrote: Hi trek in I am dwawing overlay on the button which is clicked if u need code I can send but I m sure now you should leave programming as u told u r developing last 4 years u r just wasting programming resources I think you just insulted me, but it's hard to tell through your horrible grammar and spelling. I'll assume what you meant was you're right and I'm sorry. In which case, I thank you and accept your apology. - 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/groups/opt_out. -- 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.
Re: [android-developers] how to get item from grid view at specific postion
Hi trek in I am dwawing overlay on the button which is clicked if u need code I can send but I m sure now you should leave programming as u told u r developing last 4 years u r just wasting programming resources On Dec 13, 2013 9:18 AM, TreKing treking...@gmail.com wrote: On Thu, Dec 12, 2013 at 11:01 AM, Amit Mangal forum.amit.man...@gmail.com wrote: Trekin i dont know the solution but one hundered percent sure that u r wrong Let me get this straight. You came here asking for help with this issue. You admit you don't know the answer. Yet you are somehow 100% sure that what I've told you is wrong? Would you mind letting me know how, precisely, you came to this conclusion given your admission that you don't have a solution? I'd really love to know since, if I am incorrect, then I've been coding my apps all wrong for the last 4 years I've been working with Android, Adapters, and the getView method. I'd appreciate your vast insight to correct my massive mistakes! - 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/groups/opt_out. -- 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.
Re: [android-developers] how to get item from grid view at specific postion
On Fri, Dec 27, 2013 at 9:49 AM, Amit Mangal forum.amit.man...@gmail.comwrote: Hi trek in I am dwawing overlay on the button which is clicked if u need code I can send but I m sure now you should leave programming as u told u r developing last 4 years u r just wasting programming resources I think you just insulted me, but it's hard to tell through your horrible grammar and spelling. I'll assume what you meant was you're right and I'm sorry. In which case, I thank you and accept your apology. - 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/groups/opt_out.
Re: [android-developers] how to get item from grid view at specific postion
Trekin i dont know the solution but one hundered percent sure that u r wrong On 12-Dec-2013 7:40 AM, TreKing treking...@gmail.com wrote: On Wed, Dec 11, 2013 at 5:14 PM, Amit Mangal forum.amit.man...@gmail.comwrote: i am trying to add saveForLaterOverlay on button pressed number item in grid view but nothing happing this method just executing when i click the button on image but doing nothing. Your main problem is calling getView() on the adapter. This is not how you use this method. When you click your button, instead of trying to add the layout, modify your object / data model and invalidate the adapter. Then, in your adapter's getView() method, you create or update the view based on the object / data model's state. - 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/groups/opt_out. -- 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.
Re: [android-developers] how to get item from grid view at specific postion
On Thu, Dec 12, 2013 at 11:01 AM, Amit Mangal forum.amit.man...@gmail.comwrote: Trekin i dont know the solution but one hundered percent sure that u r wrong Let me get this straight. You came here asking for help with this issue. You admit you don't know the answer. Yet you are somehow 100% sure that what I've told you is wrong? Would you mind letting me know how, precisely, you came to this conclusion given your admission that you don't have a solution? I'd really love to know since, if I am incorrect, then I've been coding my apps all wrong for the last 4 years I've been working with Android, Adapters, and the getView method. I'd appreciate your vast insight to correct my massive mistakes! - 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/groups/opt_out.
Re: [android-developers] how to get item from grid view at specific postion
On Tue, Dec 10, 2013 at 11:50 PM, Amit Mangal forum.amit.man...@gmail.comwrote: i get position of button pressed using get tag but i am unable to get the relative layout on whihc image and button is displaying. any idea how to get that layout view Your question is not really clear. What does your hierarchy look like? - 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/groups/opt_out.
Re: [android-developers] how to get item from grid view at specific postion
GridView uses an adapter... all of the changes you are talking about doing should be done in your adapter's getView() method. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Dec 11, 2013 at 10:09 AM, TreKing treking...@gmail.com wrote: On Tue, Dec 10, 2013 at 11:50 PM, Amit Mangal forum.amit.man...@gmail.com wrote: i get position of button pressed using get tag but i am unable to get the relative layout on whihc image and button is displaying. any idea how to get that layout view Your question is not really clear. What does your hierarchy look like? - 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/groups/opt_out. -- 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.
Re: [android-developers] how to get item from grid view at specific postion
Here is the code of my getview on button click where i am trying to add relative layout but nothing happing Holder holder; if (convertView == null) { convertView = inflater.inflate(R.layout.grid_image_row, null); holder = new Holder(); holder.iv_product_image = (ImageView) convertView.findViewById(R.id.id_iv_product_image) ; RelativeLayout.LayoutParams iv_product_image_params = new RelativeLayout.LayoutParams(imageWidth,imageHeight) ; holder.iv_product_image.setLayoutParams(iv_product_image_params) ; holder.bt_expand_save_overlay = (Button) convertView.findViewById(R.id.id_bt_expand_save_overlay) ; convertView.setTag(holder); } else { holder = (Holder) convertView.getTag(); } @Override public void onClick(View v) { // TODO Auto-generated method stub int selectedImage = (Integer) v.getTag() ; ViewGroup gridChild = (ViewGroup) mAdapter.getView(selectedImage, null, gvSeach) ; RelativeLayout saveForLaterOverlay = new RelativeLayout(ProductListActivity.this) ; RelativeLayout.LayoutParams saveForLaterOverlayParams = new RelativeLayout.LayoutParams(100,100); saveForLaterOverlay.setLayoutParams(saveForLaterOverlayParams) ; gridChild.addView(saveForLaterOverlay) ; TextView tv=new TextView(ProductListActivity.this); tv.setTextSize(15); tv.setText(Hello); saveForLaterOverlay.addView(tv) ; } }) ; i am trying to add saveForLaterOverlay on button pressed number item in grid view but nothing happing this method just executing when i click the button on image but doing nothing. thanks On Wed, Dec 11, 2013 at 11:49 PM, Justin Anderson magouyaw...@gmail.comwrote: GridView uses an adapter... all of the changes you are talking about doing should be done in your adapter's getView() method. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Dec 11, 2013 at 10:09 AM, TreKing treking...@gmail.com wrote: On Tue, Dec 10, 2013 at 11:50 PM, Amit Mangal forum.amit.man...@gmail.com wrote: i get position of button pressed using get tag but i am unable to get the relative layout on whihc image and button is displaying. any idea how to get that layout view Your question is not really clear. What does your hierarchy look like? - 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/groups/opt_out. -- 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. -- 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
Re: [android-developers] how to get item from grid view at specific postion
On Wed, Dec 11, 2013 at 5:14 PM, Amit Mangal forum.amit.man...@gmail.comwrote: i am trying to add saveForLaterOverlay on button pressed number item in grid view but nothing happing this method just executing when i click the button on image but doing nothing. Your main problem is calling getView() on the adapter. This is not how you use this method. When you click your button, instead of trying to add the layout, modify your object / data model and invalidate the adapter. Then, in your adapter's getView() method, you create or update the view based on the object / data model's state. - 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/groups/opt_out.