webview承载的网页中控件调起Android日期控件
<v-text-field class="pt-0" v-model="memo_time" label="time" single-line clearable type="time" :error-messages="errors" required></v-text-field>
在styles文件中添加以下代码
<resources>
<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
<item name="android:timePickerDialogTheme">@style/MyDatePickerDialogTheme</item>
<item name="android:datePickerDialogTheme">@style/MyDatePickerDialogTheme</item>
</style>
<style name="MyDatePickerDialogTheme" parent="Theme.AppCompat.Light.Dialog">
<item name="colorAccent">@color/colorAccent</item>
<item name="android:buttonBarButtonStyle">@style/DatePickerButtonStyle</item>
</style>
<style name="DatePickerButtonStyle" parent="Base.Widget.AppCompat.Button.Borderless">
<item name="android:textColor">@color/colorAccent</item>
<item name="android:backgroundTint">@color/colorAccent</item>
</style>
</resources>
|