Skip to main content

All Questions

Tagged with
0 votes
1 answer
931 views

Android change Button visibility after do onClick

If I call method in onClick() one time it works, but if I call it twice time in the onClick() method it doesn't work. private void changeVisible() { if(progressBar.getVisibility() == View....
SBrx's user avatar
  • 1
1 vote
1 answer
353 views

Resizing buttons with keeping the same width when some buttons are invisible

I would like implement automatically resizing buttons keeping the same width when some buttons are invisible. I used code prepared by Andreas Rejbrand at this link, but the issue is more complicated ...
astack's user avatar
  • 161
0 votes
1 answer
38 views

Having trouble with regaining button visibility

I have a couple of buttons that I set to visible and gone on a button click, but when I try to call the state of the button in onResume, it is crashing. What am i doing wrong in my code? Any help ...
Android Newbie's user avatar
0 votes
2 answers
159 views

How do I show a button within my thread here? java android

I've been trying to make a button visible when the counter == 7 but it just keeps crashing whenever I add a method showButton(). This is the method that makes the button visible: public void ...
eanewt's user avatar
  • 1
4 votes
1 answer
60 views

A button with comment having already clicked will not show up the next time user opens app

I want that a button with comment having already clicked will not show up the next time user opens app. I searched on google and understood that I should use shared preferences but I don't know how to ...
Mir Hussain's user avatar
1 vote
1 answer
31 views

Add 2 diagonals lines before my Button

I want to implement button that after Mouse Enter 2 new Buttons appear, i can do that with only change the Visibility property but i want to 2 new Button will appears with diagonal Lines: Any ...
mark yer's user avatar
  • 403
0 votes
2 answers
2k views

Button Visibility in WPF at startup

I have some button that I want them to be hidden when the wpf loads up. I use this: public MainWindow() { mySendButton.Visibility = Visibility.Hidden; myReceiveButton.Visibility =...
axcelenator's user avatar
  • 1,527
-1 votes
3 answers
362 views

Android: To set a button invisible

On double tap, buttons to be toggled visible/invisible. I created my layout dynamically. Its working if the btns are initially visible but I want them initially invisible. My DoubleTap fn is public ...
Sri's user avatar
  • 85
2 votes
2 answers
3k views

Visibility of Gone takes still space of particular control in android?

I am using the LinearLayout and inside there's button I am making visibilty gone based on supported states. SupportedStatuses are true then making Button as Visible but SupprtedStatuse are false then ...
Swift's user avatar
  • 887
-3 votes
5 answers
121 views

Android visibility issue with Button?

I´m using a Button and CheckBox in my code. I want when the button is clicked to make the checkboxes visible, but when I click on this button, then this error is coming in logcat: ...
vivek thakur's user avatar
-1 votes
1 answer
283 views

setVisibility not working [duplicate]

I am trying to hide a button if a logged in user is a Donor. I have my code like this. String typ = user.get("type").toString(); Log.d("before checking type", typ); if (typ == "Donor"){ ...
Yohan Blake's user avatar
  • 1,308
0 votes
2 answers
1k views

Android: Increment Button in loop to setVisibility

I make a game like 4Pics1Word. Now I have 14 buttons and I want to set the visibility of the Buttons in a loop. If the answer has 5 letters, the first 5 Buttons should be Visible For example this ...
Nic's user avatar
  • 1
0 votes
1 answer
537 views

Not able to set the visibility of a button inside a listview programmatically

I am trying to set the visibility of a button based on a certain condition in a listview. Context : The listview has parameters for response to a post . It contains title,description etc of the ...
maya's user avatar
  • 159
1 vote
1 answer
446 views

How can I make a button visible in one activity when clicking a button in another? - Android

So I have a simple quiz game where the user writes his answer on an EditText and then click the buton "Check" to check if his answer is correct. If his answer is correct, the button on the other ...
Carts's user avatar
  • 11
0 votes
1 answer
2k views

How to load an image on button click?

I'm kind of new to HTML / Javascript, and I'm trying to figure out how to make it so when I click a button, an image loads. This is all I can come up with, but then again I am very bad with this stuff,...
user avatar

15 30 50 per page
1 2
3
4 5
7