自定义TimePicker的title

https://stackoverflow.com/questions/31976707/how-to-set-a-custom-title-on-time-picker

Java代码

        LayoutInflater inflater = this.getLayoutInflater();
        View dialogView = inflater.inflate(R.layout.text_layout, null);
        TextView texts=(TextView) dialogView.findViewById(R.id.textss);
        texts.setText("Start Time");
        tpd.setCustomTitle(dialogView);

XML布局




你可能感兴趣的:(自定义TimePicker的title)