1. Android Central Question's Avatar
    I'm making a calculator where the answer can be changed with a drag button (like the volume buttom) and when the user drags the button the answer increases or decreases in 5% increments until they reach either end of the bar. Does andriod studio have an option like this?
    07-14-2019 02:39 PM
  2. mustang7757's Avatar
    I'm making a calculator where the answer can be changed with a drag button (like the volume buttom) and when the user drags the button the answer increases or decreases in 5% increments until they reach either end of the bar. Does andriod studio have an option like this?
    Hi, if you can register a account here , me or other members be happy to assist you.
    07-14-2019 02:48 PM
  3. Steenland's Avatar
    Hi I made an account
    07-14-2019 03:07 PM
  4. mustang7757's Avatar
    Hi I made an account
    Hi, ok let's see if any members can help you out , I'll ask around also.
    07-14-2019 03:13 PM
  5. mustang7757's Avatar
    07-14-2019 03:14 PM
  6. Steenland's Avatar
    Much appreciated!
    07-14-2019 03:17 PM
  7. mustang7757's Avatar
    No problem , your welcome
    Much appreciated!
    07-14-2019 03:20 PM
  8. Rukbat's Avatar
    No idea. But you can use a plain slider and not change the value until it's changed by 5%, then show the change. You'll just have to maintain another variable as the slider is being moved - oldValue. And when you change to the new value, update oldValue to the current value. (I'd also keep valueAbove and valueBelow at that point for the 5% up and 5% down values.)
    07-14-2019 03:37 PM
  9. Steenland's Avatar
    Hey thanks for your response! Are there any online examples of this?
    07-14-2019 06:07 PM
  10. Mooncatt's Avatar
    I'm not a programmer by any means, but you have me curious on why you want this function on a calculator. Would you be willing to explain its use?
    07-14-2019 09:02 PM
  11. B. Diddy's Avatar
    I moved this to the Software Development forum for more specific traffic.
    07-15-2019 01:40 PM

Similar Threads

  1. Replies: 1
    Last Post: 07-12-2019, 12:43 PM
  2. Does Galaxy Watch Active Support One Button Voice Recording?
    By Teem01 in forum Samsung Galaxy Watch Active
    Replies: 3
    Last Post: 07-11-2019, 10:12 PM
  3. Replies: 0
    Last Post: 07-11-2019, 12:08 PM
  4. Is it possible to reliably buy a volume button for a Galaxy S4 phone?
    By Android Central Question in forum Samsung Galaxy S4
    Replies: 1
    Last Post: 07-10-2019, 01:02 PM
  5. Is it possible to reliably buy a volume button for a Galaxy S4 phone?
    By Android Central Question in forum Ask a Question
    Replies: 0
    Last Post: 07-10-2019, 11:17 AM
LINK TO POST COPIED TO CLIPBOARD