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

Buttons not show good

I want to show some buttons in bottom of page, my Buttons are images and text then i use Button tag in XML. I have 4 picture for buttons(PNG pic). I write this XML but my buttons not show together and not stand in bottom of page, these show a…
SensorS
  • 383
  • 3
  • 8
  • 20
0
votes
1 answer

Android, Set ImageButton Background To Null and Set onClick Highlight Color

Is it possible to set the background of an ImageButton to "@null" and still choose an onClick highlight color? Many thanks EDIT I am using the following xml on my ImageButton so that the android background is null but my custom background…
RobbieP14383
  • 145
  • 4
  • 15
0
votes
1 answer

Wait 3 Seconds before Continuing without Final

What I am trying to do is to have my program wait 3 seconds before changing the images. I did my research, and it seems like this could fix it, but it is telling me that I need to make c1 and c2 final. However, that will ruin the rest of my…
Evorlor
  • 7,263
  • 17
  • 70
  • 141
0
votes
1 answer

Getting ImageButton Name

I am having some trouble with my code, and I am trying to figure out where each ImageButton is in my ArrayList to see if the problem is there. How do I retreive the name of an ImageButton from an ArrayList? List images = new…
Evorlor
  • 7,263
  • 17
  • 70
  • 141
0
votes
1 answer

Should I use the AlertDialog to display several options for changing ImageButton backgrounds?

I am trying to achieve this outcome: Upon ImageButton click an AlertDialog is shown (or possibly another function for pop up where the background is dimmed out) allowing for 5 other small images to be set as the background for said button. onClick…
RobbieP14383
  • 145
  • 4
  • 15
0
votes
1 answer

ImageButton background clash

Noob question for all of you So I have set up an ImageButton to my app but the problem is the white back ground of my picture clashes with the white default background of the android app. can someone please tell me the default hex color of an…
alaboudi
  • 3,187
  • 4
  • 29
  • 47
0
votes
1 answer

Click on a specific part of an ImageView

I would like to be able to touch a specific part of an ImageView and display a toast. Here is my xml file "dessintest.xml" :
Pozinux
  • 964
  • 2
  • 10
  • 22
0
votes
1 answer

how to know which image button I click in datalist

I want to change imageurl which image button I click in datalist.So I must get a diffence propertie of imagebutton in datalist.My code is below;
Murat Akarsu
  • 71
  • 5
  • 14
0
votes
1 answer

ImageButton added to webview won't resize

I have a WebView that I want to add my own back button to, The webview is one that has been set up specifically for viewing pdfs in app. I have added the button and it works but I am unable to resize it or move it around the screen, and as a result…
0
votes
1 answer

Add more image button in a linearlayout dymanically

In my android project, I had a table view and I want to add some image buttons dynamically. So I code like this TableLayout table = (TableLayout)findViewById(R.id.tableLayout_1); TableRow rows = new…
ramesh
  • 4,008
  • 13
  • 72
  • 117
0
votes
2 answers

showing image use after input text URL and press button

i have error code help me to fix it, getting text URL from edittext after click button and showing image on imageView, MainActivity.java public class MainActivity extends Activity { Button bt; EditText et; ImageView iv; Runnable stream; …
0
votes
1 answer

Centering a Glyph in a TSpeedButton

I am building an app (D5) that uses a TSpeedButton and the Glyphs are loaded at runtime. All good, but the positioning options, Top, Left, Right and Bottom are pretty clunky as a 32 x 32 Glyph on a 40 x 40 button always goes to the top left, right…
user2566616
  • 103
  • 1
  • 5
0
votes
1 answer

Re-initialise position of ImageButton in Android

In this problem i wanted to change the position of the ImageButton frequently. After the first initialization the ImageButton is not changing its position. Here is the code... runOnUiThread(new Runnable() { public void run() { …
0
votes
2 answers

Image button change to press state when click item in listview in android

I have a list view with customize item, item in list view include: text view and image button, i have set background for image button with a selector. My problem is when i click on item in list view, image button change state to press (click event…
Du Huynh
  • 151
  • 1
  • 13
0
votes
1 answer

Android image button format

I am making an Android app and have created some imagebuttons for navigation. However, when I assign images to the buttons, the height of the button is never fully filled by the images as can be seen here (the underlying button sticking out has been…
heyred
  • 2,031
  • 8
  • 44
  • 89