Questions tagged [imagebutton]

An image button is a button that displays an image, regardless of platform

An image button is a button that displays an image, regardless of platform

1801 questions
6
votes
1 answer

Using same id for multiple buttons

Well, I'll say it like this. I have a table with 2 columns. The first colum has names of items, the 2nd colums contains x amount of logos/indicators (ImageButtons). Several items can have the same logo/indicators. My question is can I assign…
Tom
  • 1,747
  • 5
  • 23
  • 39
6
votes
2 answers

Android - different image for rollover on ImageButton

Is it possible to specify a different image when the user's focus comes to an ImageButton? I want to display an image button on a LinearLayout and change the image when the user's focus comes on the button or when the user presses the…
lostInTransit
  • 70,519
  • 61
  • 198
  • 274
6
votes
5 answers

Getting row index from an ImageButton click in a GridView

I have a Gridview with ImageButtons added to a column via a templatefield. I've attached a function to the "OnClick" event. Once in this function, how can I get the index of the row that has the button that has been clicked. It appears that all I…
Jeffrey
  • 1,837
  • 5
  • 25
  • 40
6
votes
1 answer

JavaFX drop down button

How can I create a "Drop down button" in JavaFX? So far i was using a ChoiceBox for the purpose , now that I have to assign an image to the ChoiceBox, ChoiceBox.setGraphic() // is not available as like Buttons So I am planning to change it to a…
user3164187
  • 1,382
  • 3
  • 19
  • 50
6
votes
4 answers

Capturing LinearLayout onClick events with ImageButton inside it

I have an ImageButton and a TextView wrapped in a LinearLayout like this:
Richard
  • 28,691
  • 8
  • 33
  • 34
6
votes
3 answers

ImageButton using Transitions in Android

I'm trying to create a transparent (no button background) ImageButton that has a custom selector. I have the selector working against the button but I now want the selector drawables to cross-fade into each other. I saw the TransitionDrawable object…
Jeremy Edwards
  • 14,620
  • 17
  • 74
  • 99
6
votes
3 answers

background color in a ImageButton

I put a background color in a ImageButton? How?
Pedro
  • 451
  • 2
  • 6
  • 5
6
votes
3 answers

How to add a drop shadow effect to a circular ImageView in Android?

I have an ImageView in my layout which is circular. I want to have a shadow effect to the ImageView1.Can anyone tell me how can I do this? My codes are as follows: main.xml
user3509091
6
votes
3 answers

ImageButton onClick change color

I'm creating an ImageButton like so:
ono
  • 2,984
  • 9
  • 43
  • 85
6
votes
3 answers

One ASP.Net ImageButton not working in Chrome (but another is... and both work in IE 9)

One of my image buttons is not working in Chrome, but the other button is (they both work in IE 9): Not working
DNR
  • 3,706
  • 14
  • 56
  • 91
6
votes
1 answer

Difference between image button and button

What is the difference between Button and ImageButton, where if we use any image in button's background its also work like image button. So why we use image button? Thanks in advance :)
MBMJ
  • 5,323
  • 8
  • 32
  • 51
6
votes
5 answers

Add an image button with transparent background

I want to add image buttons on my main app screen that have a transparent background. I have created the images in GIMP and saved them with transparent backgrounds in png format but when I add them to my android app in Eclipse they appear with a…
Izzy Dev.
  • 89
  • 1
  • 2
  • 4
5
votes
1 answer

How to create an irregular shaped imagebutton where transparent part of image is not clickable?

I have an irregular shaped PNG image for example a round image where the corners are transparent. How can I create an imagebutton of this image and not letting the corners being touchable? If possible I may want to create other irregular shaped…
Wuahaha
  • 93
  • 1
  • 2
  • 10
5
votes
3 answers

Imagebutton full image, round corners

Well.. I have some ImageButtons in my Android application. I want them to display the full picture. I mean: I want the ImageButton to be JUST the picture, you know? Ok... so far, so good... I can do it use the property "background". However I also…
Carlos Pereira
  • 1,914
  • 6
  • 24
  • 35
5
votes
1 answer

iOS - removing borders around a Round Rect button

I got a simple question. I have a Round Rect button which contains an image (like ImageButton in Android). I want to remove the borders around the button, how do you do it?
KaiserJohaan
  • 9,028
  • 20
  • 112
  • 199