I want to give permission to user, you have not select future time and date.
I want to make that is unable to pick data from the current time.How to how to hide plus sign if we add more time from the current time.
If Current time: May 8, 2013
+ + +
May 8 2013
- - -
Now I want to click + sign, then then it is not activable. So how to code this. please give some ideas.
I have a feeling you're asking multiple questions.
You want to make DatePicker a required input field
You want to make sure the user doesn't pick the initial default value, because this would imply that the user didn't even bother reading the form.
You want to make sure that the user inputs the date manually, instead of using the built-in buttons, because using buttons would make it too easy for the user to just click a button randomly a couple of times just to get rid of the form.
Am I correct?
If so, I'd suggest not even using DatePicker in the first place. There are other controls you can use to achieve the effect you're looking for.
Related
I am very very new to Kotlin. I made a calculator app that could only add/subtract/multiply/divide and it was still a bit finicky, that's the extent of my knowledge.
I would like to make a very simple app that convert from Celsius to Fahrenheit, BUT every demo I have seen so far required the user to hit a button after they are done inputting the temperature in order for the conversion to occur.
I'd like to make the app have two text fields, which both update live as the other one is being filled out. This way, the user doesn't need to hit any additional "confirm" button, as the conversion will be done in real-time as text is being entered. And when the user switches to the opposing field, the same is done vice versa.
I'm not sure what this is called or how to even begin to Google it. Any pointers? Is this something feasible for a beginner to learn, or is it way more involved than I am anticipating? Am using Android Studio. Thanks!
You can attach TextWatcher using addTextChangedListener to EditText which will be called whenever user will input anything in the EditText
I have just begun using Flutter to create a mobile app.
The first thing I need the app to do is to take an Address/location as input from the user.
I would like to use a text input field that once you start typing it suggests locations based on the google place API.
Sadly there is no widget to enable this out of the box, but it shouldn't be so hard to do. Google's places API returns results based on any text input, so you can just keep sending keystrokes until the user sees (and selects) their desired location. I've got the API working already.
Now I'm struggling with how to build the front end experience.
I was hoping to have a drop-down text field, but I'm not finding anything similar in the widget library.
My next best idea was an input field with a DropdownButton class next to it. I want to make the DropdownButton invisible (0 width) but programmatically make it drop down once the user begins typing.
Sadly I don't see any way to control the visibility of the Dropdown List, so I'm not sure this will work.
Does anyone have any better ideas?
Image of what I have so far but obviously this is not optimal:
It's probably late for an answer but I'll still post this in case anyone else is still curious about this.
If you have the API wired up then what might prove useful is this third-party package.
It's called Flutter Typeahead.
It's a generic input with dropdowns and the data can come from any API and not just the Google Places API.
I'm starting a project, which is a work out log on Android. I want the app to use a calender and when the user clicks on a the box of the date they want edited, they are able to add an exercise and how many reps and sets they completed. My question is do I have to create a calender from scratch or is there a way to use one built into Android?
I have used TimesSquare before. It should work really well for what you are trying to do.
I want to develop an app which user cant open after given days time or will pop up activity that time span is over .
I want to design an app. which user can use for 15 days after that user cant use its functionality.
For “normal” software a solution is to read the install date and add the time span. Then check on every start or resume the date. If the time is over show a dialog and finish app.
I know this is not really save solution if the customer knows it, so please don’t discuss about this. But is maybe a better solution than building two apps?
I have an idea how to enhance the text selection (long press on a word select it, with two handles you can correct the selection) on Android for an academic project. I don't see a problem with coding the logic from this enhancement, but as I'm new to the Android world I'm pretty lost how to integrate it into the OS. I'm very certain that I have hours of reading the API before me, but I wouldn't mind to lighten the jungle a bit. That's why I asking here.
In a nut shell:
I want to implement an own text selection gesture that should replace the current selection method (long press on a word select it, with two handles you can correct the selection) in the browser and PDF reader. Actually one can say if possible system wide. My first idea is to make an App that overrides the current behaviour.
Is it possible to replace the current test selection mechanism system wide? In other words, is there a way to override the given text selection behaviour with an own App? Like you can change the keyboard with a different one(swipe keyboard, SwiftKey X, etc.). Or is it not possible to modify Android on such a low level with an App?
Which packet or classes in Android are responsible for the text selection?
I'm very thankful for every hint on that topic.