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
0 answers

how add android frame animation to an imagebutton?

hi im still fairly new to android and im having an issue with one of my activities, i have a layout with 4 imagebuttons each takes the user to a new activity, i want each of these imagebuttons to be animated i have the animations working in a…
martinseal1987
  • 1,862
  • 8
  • 44
  • 77
0
votes
2 answers

Image buttons position appearing differently in different phones

I created a xml file having 5 image buttons but when i run my app in my phone they are not in position with the background( i.e, not in the position i wanted). they acquire position which are little bit downwards then i expected. here is the…
Info Seeker
  • 107
  • 4
  • 9
0
votes
1 answer

Image As Share Button

how to call ShareActionProvider on image button click in android ? i want to share my application's link (PlayStore) if it's not possible, how to use image btton as share button? i don't want to implement actionbar.. below is my code
Anonymous
  • 1,389
  • 3
  • 11
  • 16
0
votes
1 answer

How to make frames to ImageButtons?

I'm developing an android app that contains two image buttons, these image buttons seem to be frameless or don't have bounds around them , look at the following figures: instead, i want to make the buttons look like if they have bounds on their…
MRefaat
  • 515
  • 2
  • 8
  • 22
0
votes
1 answer

Images not fully appear in scrollview

I created a scrollview that contains LinearLayout which have some ImageButtons in it, some pics is cut a part from the left as in the following image: as you see in the image, the cut image reserves a place can contains all of it, also the same at…
MRefaat
  • 515
  • 2
  • 8
  • 22
0
votes
2 answers

how to locate files in a android library project

I have a android library project in which a ImageButton is used. The image file is located in src/assets/img. How to use imageButton.setImageUri() to set the image for this button? The library project will be exported as a jar file which will be…
David
  • 57
  • 4
0
votes
2 answers

Android Development- using multiple image buttons

I am attempting to create an android app, I am a relative novice. I am tryin to use multiple image buttons, however, I cannot get it to work, here is the code that I am using. Public class MapScreen extends Activity { @Override protected void…
user2980885
  • 113
  • 2
  • 7
0
votes
2 answers

ImageButton resize how to do

I want to resize an ImageButton, but when i change the size of the ImageButton with the mouse on graphical layout on eclipse, and leave the left mouse button, the ImageButton returns to its original size. I have already tried this:…
Samjack
  • 190
  • 1
  • 1
  • 11
0
votes
1 answer

ImageButton position

I'm trying to put an ImageButton on my app. This is a sort of hidden button, is the blue rectangle. Now, i want to put this button right and down, but as you can see, i can't, because there are two space to the right and down. (Where there are the…
Samjack
  • 190
  • 1
  • 1
  • 11
0
votes
1 answer

Android: Insert immage button dynamically through code

i want to insert an image to do a button. But i want insert it through the code, no with the .xml file. There is someone that have any idea?
Samjack
  • 190
  • 1
  • 1
  • 11
0
votes
1 answer

How to assign a flexible size to the image button?

I want to create image buttons with a flexible size so that they can fit in any android device without problems, that's the code I'm using:
MRefaat
  • 515
  • 2
  • 8
  • 22
0
votes
1 answer

Android app crashes while running on the OS

I made a simple android app that contains only some image buttons in a GridLayout, while running it on eclipse it runs without any problems or errors but when coming to the emulator it gives me nothing and when run it in my tablet it crashes, Hint:…
MRefaat
  • 515
  • 2
  • 8
  • 22
0
votes
1 answer

imagebutton pass reference

I am trying to pass an imagebutton as a reference through an indexed array. I thought I could set the ID and then pass that ID as such: MyButton=(ImageButton) findViewById(R.id.imageButton1); MyButton.setId(0); Then in my onClick I want to pass…
0
votes
2 answers

Android listview image button

First of all I'd like to thank all of you for helping me on numerous occasions before. SO have alwasy been my go-to place when faced with problems with programming. This time however, I've been unable to find a solution to my problem... I'm…
Todai
  • 164
  • 9
0
votes
2 answers

Passing messages between Android activities?

I am working on an app and need help with message passing between two screens. The first screen is a Sign-up form with an image button that is supposed to show the user's display pic. When the user first opens this screen, the ImageButton uses a…
Darth Coder
  • 1,738
  • 7
  • 33
  • 56