Hi Arun,
it should to work.
i dont know the full flow of your code.
if u will send ur code, then i can help you.its not a big issue,its simplest
program.




On Mon, Jul 18, 2011 at 11:06 AM, arun kumar <arun.kata...@gmail.com> wrote:

> thank you for reply....
> while changing that code am getting application force close.
>
>
> On Sat, Jul 16, 2011 at 2:49 PM, gaurav gupta 
> <gaurav.gupta...@gmail.com>wrote:
>
>> Hi Arun,
>> Add this line in ur program
>>
>>  if (((ImageView) v).isClickable()) {
>>                             img4.setVisibility(View.VISIBLE);
>> *img3.setVisibility(View.GONE);*
>>                                                    }
>>                            else {
>>                             img4.setVisibility(View.INVISIBLE);
>>                                                   }
>>                                                                     }
>>     });
>>
>> On Sat, Jul 16, 2011 at 12:25 PM, arun kumar <arun.kata...@gmail.com>wrote:
>>
>>>
>>>
>>> ---------- Forwarded message ----------
>>> From: arun kumar <arun.kata...@gmail.com>
>>> Date: Fri, Jul 15, 2011 at 2:52 AM
>>> Subject: image view listener
>>> To: android-developers@googlegroups.com
>>>
>>>
>>> Hi
>>>
>>> am having two image one is placed rightside and other is placed leftside
>>> to the layout ....when i click on image 1 ....image 3 has to display
>>> inbetween image 1 and image 2....similarly when i click on image 2... image
>>> 4 has to display inbetween image1 and image2....
>>>
>>>
>>> ---->>for me here when i click on image1 ...image 3 has appearing and
>>> when i click on image 2...... image 4 along with image 3 has
>>> appearing//////here image 3 has to disappear
>>>
>>>      ---->i set images 3and 4  as invisible in xml file .......in java
>>> file i wrote onclick listener for image1 and image 2 .....
>>>
>>>         <ImageView android:layout_height="wrap_content"
>>> android:scaleType="center" android:id="@+id/iv8"
>>> android:visibility="invisible" android:layout_width="20dip"
>>> android:src="@drawable/logo8"></ImageView>
>>>          <ImageView android:layout_height="wrap_content"
>>> android:scaleType="center" android:visibility="invisible"
>>> android:onClick="@drawable/logo"  android:id="@+id/iv5"
>>> android:layout_width="30dip" android:src="@drawable/logo5"></ImageView>
>>>
>>>
>>>
>>>
>>> final ImageView img1=( ImageView)findViewById(R.id.iv1);
>>>      img1.setOnClickListener(new OnClickListener() {
>>>                 public void onClick(View v) {
>>>             // TODO Auto-generated method stub
>>>                       ImageView img3 = (ImageView)findViewById(R.id.iv3);
>>>
>>>                      if (((ImageView) v).isClickable()) {
>>>
>>>                             img3.setVisibility(View.VISIBLE);
>>>
>>>                         } else {
>>>                             img3.setVisibility(View.INVISIBLE);
>>>                                                    }
>>>
>>>                        });
>>>
>>>
>>>
>>>     final ImageView img2=( ImageView)findViewById(R.id.iv2);
>>>      img2.setOnClickListener(new OnClickListener() {
>>>                 public void onClick(View v) {
>>>
>>>
>>>                      ImageView img8=(ImageView)findViewById(R.id.iv4);
>>>
>>>                      if (((ImageView) v).isClickable()) {
>>>
>>>                             img4.setVisibility(View.VISIBLE);
>>>
>>>                                                    }
>>>                            else {
>>>
>>>                             img4.setVisibility(View.INVISIBLE);
>>>
>>>                                                   }
>>>                                                                     }
>>>     });
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to