Imagepicker like datepicker in android - android

Is it possible to make image picker in android like date picker or time picker? Actually i am making an app in which i need to make a image picker from where user can select small image. Like date picker or time picker here in this picker user can scroll and select small images then numbers. Please anybody help me to achieve this.

I think you want to use UI controller like iphone. Basically you are talking about wheel UI controller of android. Specifically it is not in-built android UI Controller but you have to make it costume. Please check this tutorial is exactly what you want : Here
Hope you got solution.

There is no imagepicker available in android . You can use intent to pick image, Click on the below link Android image picker for local files only.
Hope it helps.

Related

Creating a DateTimePicker React-Native Android?

I'am trying to create a DateTimePicker for react-native android,the ios side has it in one view but for android its separate. Calling it is not a task but i like to include it both in one view like in ios (my concept in below screenshot).
Not completely like the above some how customize it reduce both its size, is there an option to place them at specific portions of screen.
I repeat the case is react-native(react-js) not android(java)
It is not possible to customize the android picker and reduce their sizes
you suggested.
Instead I would use this library: react-native-date-picker. With that picker you are able to select time and date in the same picker, even in Android. I had exactly the same problem myself and couldn't find any solution to it, so I ended up creating that picker.

input date picker on android shows wrong picker on WebView

I've got an HTML5 INPUT (type="datetime-local") in a WebView, but when I select it, it shows a date-time field that looks like this:
But the same identical element in Chrome looks like this:
This is under Android 7.1, with Chrome v55 installed, so Chrome is being used the WebView component. So, both should show the same thing, right?
I need the latter picker to show up in the WebView, it is much more user friendly (to scroll you can just flick up and down rather than having to repeatedly press the plus or minute buttons.
How do I accomplish this?
Update: I have tried creating this natively using a DatePickerDialog and it does the same thing! I'm targeting minSdkVersion=22, targetSdkVersion=25 (although I have also tried minSdkVersion=25). How do I force Android to display the correct picker for my app?
Update 2: I downloaded a sample app using the native DatePickerDialog and it displays the dialog ok. I don't like the idea of having to try to find the difference between the two projects which is causing the behavioral difference as it could be anything and take an excessive amount of time to find.
Update 3: Using the answer provided by Oleg, I was able to reproduce the second picker using android:Theme.Holo.Light.DarkActionBar. But if I use android:Theme.DeviceDefault.Light I can get a calendar view for input type="date". But the corresponding time picker in the Default theme (the round clock) does not show up for input type="time" and ``input type="datetime-local"` doesn't use the calendar view either.
As discussed in comments, you are likely missing the proper theme. Given that you have access to working app, please apply the same theme, it should solve it

Android: Implementing WhatsApp File Picker

I want to implement something like WhatsApp file picker in Android, but I do not really know how to do it.
WhatsApp Android version has a nice file picker ripple transition and I want to implement it in my app.
Is there any ready component to do something like this or maybe I should extend a dialog?
I have also been searching for a library like that for ages and today, I found it here
Universal Media Picker
Screenshot
Try it out and let me know if you liked it :)

Calendar Uneditable Event and change the navigation of date

https://developer.mozilla.org/fy-NL/demos/detail/html5-calendar/launch
based on the codes above it uses the browser's back/forward buttons to change day.
which of the codes make it do that? I can't figure out why.
and any advice how can I make the event that can't be edited out?
planning it to launch on a mobile application using phonegap
You should have a look at https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history. There you have a great starting point to become familiar with the history object.
If you have a look at the calendar.js from the above example they are using the History API very often.

Built-in date time picker control in Android that looks like the datetime picker of the Calendar Application

Is the control shown in the image below built-in in the Android Framework or it is a custom control. If it is custom control, should it be built using a button with background that pops a calendar dialog on click?
Thanks
These are just normal TextViews with a custom background selector and an OnClickListener that triggers the dialog.
If you want to know how a certain view or layout is built, you can use a tool called hierachyviewer (which I used here too). It shows the view hierachy of running apps on your device and is included in the Android SDK in your ANDROID_SDK/tools directory. The program is a bit unintuitive at first, but certainly a useful thing to know. See the documentation for more information about this.

Categories

Resources