In our internal company mobile project, FreeQuest – the leave tracking app, we needed to use a calendar widget. Of course, we could use a classic CalendarView, but the main problem was that this widget isn’t fully customizable. We had to use two types of calendar widgets: a date picker to select dates and a classic calendar to show absence days in the form of icons below the number of the day. Tha
It is not uncommon for developers to find themselves in need of a UI component that is either not provided by the platform they are targeting or is, indeed, provided, but lacks a certain property or behavior. The answer to both scenarios is a custom UI component. The Android UI model is inherently customizable, offering the means of Android customization, testing, and the ability to create custom
拙作のカレンダービュー(CalendarView)は元々左右どちらかのフリック・モーションに反応して現在の月を変更する機能を実装している。 当初は左右のモーションだけで処理をしていたが、人間の指というものは横にしろ縦にしろ機械のように真っ直ぐに動かすものではなく必ずある程度のぶれが発生するため、右に指を弾いているはずが実際には斜め上に弾いている場合があったりと、多分に感覚的なものである。であれば左右の他に上下の動きも捕捉してやることで、より感覚的に操作できてミスも防ぐことができるのではないだろうか。 左右が実装できているのであれば上下は簡単だろうと早速改造に着手したのだが、テストした所CalendarView単体では問題ないものの、通常配置するであろう、ScrollView下に配置した場合に、Y軸のモーションイベント(MotionEvent)に全く反応しないことが判明した。 いろいろ調べて
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く