An image button is a button that displays an image, regardless of platform
0
votes
1answer
18 views
how to code on on image button if image button are in listview in asp.net C#
Here is a code tag code of asp.net
and there is a Image button where i want code on click event for download item
i try to code on click event but it was not working
<asp:ListView ...
0
votes
1answer
30 views
how to set imagebutton resource using a for loop Android
How can i set the same image resource for a series of imagebutton using a for loop ?
ImageButton b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14,
b15, b16, b17, b18, b19, b20, ...
0
votes
0answers
27 views
how to set background for a TextView with compound drawable?
As follows, I have a TextView with compound drawable, and want to set android:background for the compound drawable(not for the whole TextView), so when pressing the compound drawable, it will behave ...
0
votes
2answers
32 views
How to perform operations with Imagebuttons widget in android
I have created a simple application in which I have 3 Imagebuttons in an activity. These buttons are performing some operations. Further I want to create a widget on home screen having the 3 Buttons ...
0
votes
0answers
14 views
Multiple Frame by Frame Animation to one ImageView
I’m trying to create multiple Frame-by-Frame Animations on one Activity (Main.java), when the user select a ImageButton it will do that specific animation (animationone.xml or animationtwo.xml) and ...
0
votes
2answers
29 views
Android ImageButton relative width
I'd like to ask about one of the hardest thing for me (as a programmer) in android. As I make software mostly without designer (to be honest - totally without a designer) I can't figure out the ...
1
vote
2answers
34 views
A certain png image disappeared from layout
i have a layout xml which has 16 image button.
one png image which is declared in that layout does not show in activity.(only android 2.2 / 2.3)
when i add dummy image in drawable, strangely enough, ...
0
votes
1answer
22 views
Imagebutton & onclientclick
Can you have both onlcikc and onclientclick for image button controls? For the life of me I cannot get the onclientclick to fire. I think "onclientclick" gets rendered as "onclick" so how would two ...
0
votes
0answers
9 views
Alert Dialog onTap dialog.getButton Set Background Map Overlay
What am I missing here? I can not set the image of the positive/negative buttons in alert dialog map overlay.
protected boolean onTap(int index)
{
dialog.setView(dialogview);
...
0
votes
1answer
21 views
Set asp:ImageButton ViewState from javascript
I extend System.Web.UI.WebControls.ImageButton control:
EnableViewState server property of the control is set to true.OnClientClick is set to setNextImageSrc(this);return false;. In javascript ...
0
votes
0answers
9 views
Trouble with ImageButton click when view is scaled
I have a class "ZoomableView" that extends LinearLayout. The layout consists of some shapes as well as a series of ImageButtons. When the buttons are clicked, the state toggles between 3 states, ...
0
votes
2answers
66 views
ArrayIndexOutOfBoundsException in android application
I have an ArrayIndexOutofBounds exception in my application. I want to put a previous button in my app. I have 5 elements in my array the button cycles through. How do I make it so when user hits ...
0
votes
0answers
20 views
Cannot record ImageButton control in Android through MonkeyTalk IDE
Monkey Talk IDE is not able to record the ImageButton control operations on Android. However if I explicitly state the name of the control (eg: View "image_control_button_name" tap) then it can ...
-1
votes
2answers
30 views
Display image button from external source
I'm working on a project where I need to display image buttons with some images saved in the sd card or from an Url. How can I do this? Or what's best practice?
The objective is to change the image on ...
0
votes
1answer
20 views
How to display a certain ImageView in a view only when certain buttons from another view are pressed?
I have two different layouts, title_bar and bottom_bar. bottom_bar has 3 different ImageButtons: usersButton, activtyButton, and scanButton, and title_bar has a TextView and a couple ImageViews, the ...
1
vote
1answer
23 views
Is there a way to make text, buttons, progress bar stay in around the same area with any resolution
Is there a way to make text, buttons, progress bar stay in around the same area with any resolution. So if you on a nexus 10 and nexus 7 the text, buttons, progress bar will say around the same place. ...
0
votes
2answers
73 views
Change icon when changing fragment page by viewpager
I'm using a viewpager with 5 fragments to enable horizontal scrolling. I have put an icon that corresponds with each page so the user can know on which page he is. I also programmed that if an icon is ...
0
votes
0answers
18 views
Android OnItemClickListener does not play nice with imagebuttons, bullies them by excluding them from event calls
The problem is I have some imagebuttons in a listview item that I want clicked. The method onItemClick gives as a parameter "view The view within the AdapterView that was clicked (this will be a ...
0
votes
2answers
48 views
Change viewpager fragment by a buttonClick
I'm trying to change the viewpager fragment by clicking on a button. I have 5 fragments, each fragment has it's own xml file (frag1.xml, frag2.xml, and so on). Every fragment has it's 5 buttons that ...
0
votes
1answer
67 views
XCode Create a Button Toggle that shows one image for On and one for Off with function
I am trying to create a toggle button in XCode that is an On and Off switch for toggling incoming text messages. When the feature is on the image is designed to say ON. I need to set this image ...
0
votes
0answers
39 views
WPF styling . Have no idea how to do it
I am trying to make an image button in WPF based on the following article
Custom button template in WPF
The problem with this is that I have No Idea how to make the image to become grayscale when ...
0
votes
2answers
52 views
Changing activities prevents ImageButton setImageResource from working
I have a main activity that changes the image on the ImageButton on every click.
public class MainActivity extends Activity {
protected void onCreate(Bundle savedInstanceState) {
...
2
votes
1answer
51 views
imagebutton image url not changed dynamic on repeater
I am using repeater to bind data & on header template i am using imagebutton for sorting column.
My Client Side Code:
<asp:Repeater runat="server" ID="RptClientDetails" ...
0
votes
1answer
36 views
Changing an ImageButton image programatically
I have sucessfully set an image to an ImageButton using this code:
mGetClickTime.setImageResource(randomImageId);
But I'm trying to problematically change the image by calling a method which ...
0
votes
2answers
53 views
Android: How can I reference layout items outside the Main Activity?
My onCreate method sets the content view and sets up an image button:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
0
votes
0answers
23 views
Need ImageButton to Auto Adjust to Size of Text
I thought this would be a quick solution available online, but no luck. I have an .9.png button. I have different size text fields like: "Chapters" or "Bb"or "Eb". I want the ImageButton to adjust to ...
0
votes
2answers
30 views
Weird Imagebutton result
I try to make a image button for login. But the result is weird. Please see the attachment.
The weird thing is the image button is inside the button...
Hope for helps.
this is xml code...
...
0
votes
1answer
30 views
How can clear ImageButton's background?
I have a ImageButton with default drawable image. From the code I set up the ImageButton layout size so after this modification the image doesn't cover the whole button because of centerInside ...
-1
votes
5answers
67 views
Activity not moving to next activity when button click in android?
I am trying to move from one activity to another activity by clicking to the ImageButton. But when I click to button, it doesn't move to the activity which I specify in the code, and even it does not ...
0
votes
2answers
47 views
Android: how add opacity on ImageButton click?
I tought to use OnTouchListener and tracking down and up events, setting then an alpha value, but I have to add this listener to all ImageButtons (they are really a lot). I wonder if there is a ...