Wednesday, February 22, 2012

[android-developers] Re: Image Button Onclik view

Hi kholif,

in xml file for imageview add this one
android:onclick="imageBtnClicked"

and in corresponding java file add this method:

public void imageBtnClicked(View v) {
// add your code here........
}

On Feb 22, 1:58 pm, moktarul anam <mokta...@gmail.com> wrote:
> Hi kholif,
>
> u can use ImageView.setOnclickListener(new setOnclick(){
>
> Onclick(view){
> /// user hide/display code here
>
> }
> }
>
> Moktarul
>
> On Feb 21, 5:33 pm, kholif adig <adig...@gmail.com> wrote:
>
>
>
>
>
>
>
> > hi
>
> > I have some problems in image button
>
> > I have some image button that when clicked on the button will display
> > the same image.
>
> > the problem is if the image double click the botton on the button will
> > display the same image on the first and second positions.
>
> > please give me a solution
>
> > thank you

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

No comments:

Post a Comment