2017-11-15 6 views
0

時間ピッカーの選択したテキスト値のサイズを変更したい。timepicker選択値のテキストサイズ

同じライブラリがありますか?

私が検索したところ、アンドロイドにはカスタマイズはありません。 iOS時間ピッカーに似たのUIを開発する必要があります。 IOSに似たアンドロイドbrucetoo/PickViewについては

答えて

0

これは、私たちはIOSシステムWheelViewウィジェットのような日付または地域を選択するためのヘルパーlibです。 WheelViewウィジェットで

依存

compile 'com.brucetoo.pickview:library:1.2.3' 

DatePickerPopWin pickerPopWin = new DatePickerPopWin.Builder(MainActivity.this, new DatePickerPopWin.OnDatePickedListener() { 
         @Override 
         public void onDatePickCompleted(int year, int month, int day, String dateDesc) { 
          Toast.makeText(MainActivity.this, dateDesc, Toast.LENGTH_SHORT).show(); 
         } 
        }).textConfirm("CONFIRM") //text of confirm button 
          .textCancel("CANCEL") //text of cancel button 
          .btnTextSize(16) // button text size 
          .viewTextSize(25) // pick view text size 
          .colorCancel(Color.parseColor("#999999")) //color of cancel button 
          .colorConfirm(Color.parseColor("#009900"))//color of confirm button 
          .minYear(1990) //min year in loop 
          .maxYear(2550) // max year in loop 
          .showDayMonthYear(true) // shows like dd mm yyyy (default is false) 
          .dateChose("2013-11-11") // date chose when init popwindow 
          .build(); 

enter image description hereを使用するための時間を選択する機能を追加しました

+0

@Sahana Prabhakarはあなたの問題をこの回答で解決できませんでしたか?あなたの質問によると、私はあなたの問題を解決するgitのライブラリを与えている。 –

関連する問題