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
0
votes
1 answer

Android webview with popup window force closed

I am working with an android app for web view.It contains an image button. On clicking the image button,it will shows a popup window over web view.The popup window contains edit text fields.On clicking submit button the edit text values are send as…
user3197109
0
votes
2 answers

Why my app keeps crashing

Here is the LogCat, hope it helps: > 01-15 04:10:50.154: E/AndroidRuntime(369): FATAL EXCEPTION: main > 01-15 04:10:50.154: E/AndroidRuntime(369): java.lang.RuntimeException: Unable to start activity >…
GUZI_UY
  • 93
  • 1
  • 9
0
votes
0 answers

When changing the image resourse the image size changes

I have an OnclickListener in my Android app which changes the ImageResourse when clicking the element assigned to it, the problem is when changing the ImageResourse the size of it changes also(fills the height of the Layout and widen the width) and…
MRefaat
  • 515
  • 2
  • 8
  • 22
0
votes
0 answers

Why doesn't this ImageButton's onClick fire in Android 2.3?

I have verified that setOnClickListener is being called, so why doesn't the button click do anything in 2.3? It works fine in 4.1. I am testing on emulators with cameras emulated. I have tried making sure the button is clickable in xml, but that…
Adam Johns
  • 35,397
  • 25
  • 123
  • 176
0
votes
2 answers

Dynamically show and hide imagebuttons inside row of listview

How can i show and hide some imagebuttons inside a row of a listview on listactivity? Ive some list of packages and want show buttons like install and uninstall. But when a package is installed only uninstall button is showed. If click uninstall, i…
borja
  • 125
  • 9
0
votes
7 answers

OnClickListener gets triggered when button in another place

I have four ImageButtons in my app. Three smaller buttons can be either shown or "hidden" below the bigger button. I hide buttons using rotate and translate animations. The problem is: OnClickListener's onClick method always gets triggered no…
Bobrovsky
  • 13,789
  • 19
  • 80
  • 130
0
votes
3 answers

How to Implement single Touch and MultiTouch in Application?

I have project to make Android Application music Instrument, the Application work like a Piano, if I click ImageButton with SingleTouch his play sound but I want application work with MultiTouch, I don't know to implement in my code ? Following is…
Always Newbie
  • 43
  • 1
  • 5
0
votes
2 answers

Javascript Swap Images on Button Click

I currently have 4 buttons that should swap from one image to another once clicked. I can get the first two to work, but once I click the third and fourth, once I click another button the images don't disappear - they stay on the screen. I have the…
lmay08
  • 1
  • 1
0
votes
3 answers

Android Applications Linking Activity

I have two different activities in my android applications. The first(MainActivity) has ImageButton through which onClick it's getting navigate two second activity(Numbers). This is my code of MainActivity package…
SuRaj Creator
  • 945
  • 1
  • 9
  • 25
0
votes
1 answer

Same position for UI elements (buttons, image buttons) on all android devices

My application uses buttons and image buttons constructed via XML and drawable folder. On some devices applications UI elements (buttons and image buttons) losses its position and overlaps on each other and on some devices last button in bottom of…
Rida Shahid
  • 386
  • 7
  • 22
0
votes
1 answer

Get path of image

I have a n application that ask the user to select an image from the gallery and it will be displayed in an imagebutton. How can i get the path of an image found in an imagebutton as a string? please help public class NewPortal extends Activity…
0
votes
1 answer

Change ImageButton's image

I want to allow the App's user to select from Drawable folder an image and change the ImageButton's image. In my App I put in Drawable folder some pictures. It's possible? My idea is : 1) There is an ImageButton 2) User clic on…
user3176937
0
votes
1 answer

Android - A button with Image + background + text

I have a button, the button has a background and a src Image icon. Now I want to have a text on the bottom, inside my button. How can I achieve this? I cannot use ImageButton as it doesn't handle text. Also I cannot use Button as it doesn't handle…
Behnam
  • 6,510
  • 6
  • 35
  • 65
0
votes
1 answer

programmatically put an Image button inside custom buttons of table layout

I am making a game in android and want to add an clickable image button inside custom buttons which are cells of table layout. In my case i need to do it programmatically as it will be device independent code. i am really stuck on to the topic…
Nitish Jha
  • 1
  • 1
  • 3
0
votes
1 answer

Contact form with image as buttons

How can I make the buttons have their images intact and still send the mail or clear the form? I am trying to use image as buttons in this contact form. one button is to clear the form and the other button is to send the mail to a mail id. My php…
GXCPL.Official
  • 267
  • 3
  • 19