Zhien Member Licensed User Jan 21, 2021 #1 I am running into trouble on how to change the timePickerMode back to "spinner" Since Material Theme are using the "clock" by default, I read that you can change the timepicker mode in the manifest file. Here's how my manifest file looks, but it's not showing the spinner. Any ideas would be appreciated! Manifest TimePicker: AddManifestText( <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/> <supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="true"/>) SetApplicationAttribute(android:icon, "@drawable/icon") SetApplicationAttribute(android:label, "$LABEL$") AddApplicationText( <activity android:name="android.widget.TimePicker" android:timePickerMode="spinner" /> ) 'End of default text.
I am running into trouble on how to change the timePickerMode back to "spinner" Since Material Theme are using the "clock" by default, I read that you can change the timepicker mode in the manifest file. Here's how my manifest file looks, but it's not showing the spinner. Any ideas would be appreciated! Manifest TimePicker: AddManifestText( <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/> <supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="true"/>) SetApplicationAttribute(android:icon, "@drawable/icon") SetApplicationAttribute(android:label, "$LABEL$") AddApplicationText( <activity android:name="android.widget.TimePicker" android:timePickerMode="spinner" /> ) 'End of default text.
Erel B4X founder Staff member Licensed User Longtime User Jan 22, 2021 #2 Zhien said: I read that you can change the timepicker mode in the manifest file. Click to expand... Please post a link to the relevant documentation. Upvote 0
Zhien said: I read that you can change the timepicker mode in the manifest file. Click to expand... Please post a link to the relevant documentation.
Zhien Member Licensed User Jan 22, 2021 #3 Erel said: Please post a link to the relevant documentation. Click to expand... Here's the documentation. Thanks for looking into it. https://developer.android.com/reference/android/widget/TimePicker Upvote 0
Erel said: Please post a link to the relevant documentation. Click to expand... Here's the documentation. Thanks for looking into it. https://developer.android.com/reference/android/widget/TimePicker
agraham Expert Licensed User Longtime User Jan 23, 2021 #4 You can't do it in the manifest. Your reference is to the XML layout file which B4A does not use. I wanted to do this but it seems it can't be done programmatically, at least I can't find a way Upvote 0
You can't do it in the manifest. Your reference is to the XML layout file which B4A does not use. I wanted to do this but it seems it can't be done programmatically, at least I can't find a way
Zhien Member Licensed User Jan 26, 2021 #5 Thank you for the update. Please let me know when this is supported later on. Meanwhile, I will just use the default clock. Upvote 0
Thank you for the update. Please let me know when this is supported later on. Meanwhile, I will just use the default clock.
agraham Expert Licensed User Longtime User Jan 27, 2021 #6 Zhien said: Please let me know when this is supported later on. Click to expand... It never will be. B4A uses programmatic layouts, not XML ones. Upvote 0
Zhien said: Please let me know when this is supported later on. Click to expand... It never will be. B4A uses programmatic layouts, not XML ones.