更改 TimePicker 上的标题? [英] Changing the title on a TimePicker?

查看:36
本文介绍了更改 TimePicker 上的标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试寻找一种解决方案来更改 TimePicker 对话框上的标题.现在它说明了系统时间是什么(例如12:23 AM"),但我想将其更改为更具描述性的内容.有人有什么建议吗?

I'm trying to look for a solution to change the title on a TimePicker dialog. Right now it says whatever the system time is (ex. "12:23 AM") but I want to change this to something a little more descriptive. Does anyone have any suggestions?

推荐答案

根据要求.:)

TimePicker 对话框是指实际的 TimePickerDialog?因为那个有一个 setTitle(CharSequence text)方法.TimePickerDialog 是什么在官方教程中使用.http://developer.android.com/reference/android/app/AlertDialog.html#setTitle(java.lang.CharSequence)

By TimePicker dialog do you mean the actual TimePickerDialog? Because that has a setTitle(CharSequence text) method. The TimePickerDialog is what is used in the official tutorial. http://developer.android.com/reference/android/app/AlertDialog.html#setTitle(java.lang.CharSequence)

这篇关于更改 TimePicker 上的标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆