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

J1.5 - How to add image button into joomla article

I am trying to add the images as button into existing article of web page. When I click on that button it have to redirect into another page or Url. I have searched on net. I didn't get satisfied response. I have gone through this page too. Any…
Dhasneem
  • 4,037
  • 4
  • 33
  • 47
0
votes
2 answers

OnClick imageview to take you from mainactivity to a second activity class?

i have gotten it to launch the splash screen then go to the main menu, but i can't seem to get my image button to take me to the next screen(it stops working), if you'd kindly help i'd much appreciate it. The following is my manifest:
ToeKnee
  • 47
  • 1
  • 10
0
votes
0 answers

Custom cursor on ASP.NET ImageButton control hover

To draw a sort of map, I have a table and need to dynamically add one ImageButton in each cell. So far, no problem. But then I have to change all the controls' onmouseover cursors when one of them is clicked. More precisely, I would like the cursor…
Flash_Back
  • 565
  • 3
  • 8
  • 31
0
votes
0 answers

ImageView.setImageDrawable(d) Vs ImageButton.setImageDrawable(d)

It's observed that both Views have different implementation behaviors for same method, as per documentation there is no difference except some style. Observation: ImageButton.setImageDrawable(d) maintains aspect ratio and does not stretch image…
CoDe
  • 11,056
  • 14
  • 90
  • 197
0
votes
3 answers

Fitting imageButtons into different screen sizes

i am new to android programming. I have a problem scaling ImageButtons to different screen-resolutions. I made different image sizes based on the dpi and put them into hdpi(120px*72px,160dpi), mdpi(80px*48px,160dpi) and xhdpi(160px*96px,160dpi) But…
mind
  • 432
  • 6
  • 18
0
votes
2 answers

imageButton onClick is not activating specified method

I have 2 imagebuttons which refer to the same openTheBag method onClick. But weird thing which I can't get my head around right now is that when I click @id/purse imageButton activates openBug, but @id/red_paint doesn't which even can be seen by…
Nazerke
  • 2,098
  • 7
  • 37
  • 57
0
votes
1 answer
0
votes
3 answers

Change ImageButton states background color on runtime

I need to change colors from a selector whatever on runtime and i need to apply it to 4 different buttons. Here is the ImageButton code:
n4h1n
  • 357
  • 5
  • 19
0
votes
1 answer

Change behavior of buttons inside an arraylist

I have a custom arrayadapter based off of this code, except it instead has a button and an imagebutton side by side rather than the edit text boxes. I also have the rows added at the beginning at the activity with each button's text being changed to…
CheeseCoder
  • 701
  • 1
  • 7
  • 11
0
votes
1 answer

Code throws an error in the Android emulator, but not in Eclipse. Textview change on button click

I'm a new Android application developer, and I want an application that changes a textview widget by clicking a button. Eclipse does not throw and error, but the Android emulator does throw an error. Here is my code: import android.os.Bundle; import…
0
votes
1 answer

[Android]How do I dynamically add image buttons on the click of a button?

How do I dynamically add image buttons on the click of a button? I need to add the image buttons in 2x3 format and it should be horizontally scrollable when it goes out of the screen. package com.example.dynamic; import android.os.Bundle; import…
mkr231
  • 68
  • 2
  • 16
0
votes
1 answer

Is it possible to have a selected and unselected state of a single image placed in an imagebutton?

I have an image for a button. Here it is: My task is to create a selected and unselected state of this image. This image will be my unselected state. Using the same image, my task is to create a selected button with darker background. Is it…
princepiero
  • 1,287
  • 3
  • 15
  • 28
0
votes
2 answers

make Image Button visible if value is present in shared preferences (Android)

I am fairly new to Android development and am trying to create a for loop that checks each key in a shared preferences file and sets the Image Button to visible that corresponds to the value in each key. Example: ImageButton button101 =…
Trent
  • 105
  • 2
  • 8
0
votes
2 answers

Correct way to expand touchable area for a button - TouchDelegate vs Custom Button

What is the correct (or perhaps most convenient) way to expand touchable areas of a button in a listview? When I first saw such expanded area in the Google Drive app, I though it is done using a custom button. I was able to replicate this effect…
Kuba Spatny
  • 26,618
  • 9
  • 40
  • 63
0
votes
1 answer

I want to create multiple button on single image in Android Application

For Example: Consider Circular Image into 4 segments Button1 - Top part of image() Button2 - Bottom part of image() Button3 - Left part of image() Button4 - Right part of image() Please give feedback ASAP. I have read the following post but didn't…