1
daybuttonsの内容に応じて異なる背景色のカレンダーを作成する必要があります。どのように色を修正できますか?codenameoneを使用して別の日付を選択すると変更されません。 codenameone:カスタムカレンダーボタンの背景
iは、簡単な修正を試みたが、テーマで設定された色が白に引き返すボタンを選択する際@Override
protected void updateButtonDayDate(Button dayButton, int year, int currentMonth, int day) {
//dayButton.setUIID("Container");
dayButton.getAllStyles().setPaddingTop(3);
dayButton.getAllStyles().setPaddingBottom(3);
dayButton.getAllStyles().setBgColor(ColorUtil.BLUE);
}
これは良いですが、選択した日付の予定リストを表示するために、カレンダーにアクションリスナーを設定しました。 setChangesSelectedDateEnabled(false)を使用してもこれは役に立ちません。 – Anas
カレンダーを初期状態にリセットするにはどうすればよいですか?私はすべての選択でそれを再初期化できると思う。 – Anas
心配しないで、私は新しい選択のたびに最後の選択されていないボタンをリセットする仕組みを開発することができますね。ありがとう。 – Anas