2015-12-09から1日間の記事一覧
TextWatcherを使います。 1.TextWatcherの登録 // 年のTextWatcherを設定edTextYear.addTextChangedListener(new textWatcherYearMonthDate()); 2.TextWatcher本体 // 年月日のTextWatcher本体public class textWatcherYearMonthDate implements TextWat…
トーストを表示する。 Toast.makeText(getActivity(), "正しい日付を入力して下さい", Toast.LENGTH_SHORT).show(); 簡単ですね。
起動時にカーソルが入るEditTextを指定する。 XML内で <requestFocus/>を使用して指定します。 </requestfocus/>