material-components / material-components/material-components-android

[MaterialDatePicker] Make the class open*.

オープン
#680 コメント 3 件 リアクション 9 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

feature request Widget: DatePicker
主要言語
Java
スター
17.4k
フォーク
3.2k
PR マージ指標
30日以内にマージされた PR はありません

説明

Is your feature request related to a problem? Please describe.
I would suggest the class to be made public open, so we could attach the selection listener in a subclass and use "sharedViewModel" to deliver the selected date. At the moment in case of screen rotation, we need to detach the listeners and reattach when the new fragment is ready to avoid a memory leak.

Describe the solution you'd like
Make the class public.

Describe alternatives you've considered
Maybe another way to avoid subclassing it would be the old fashion OnInteractionListener on the parentFragment / activity.

We also happily accept pull requests.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

MaterialDatePicker のエントリポイントから開始し、fragment の再生成時に選択リスナーが現在どのようにアタッチされているかを確認します。要求されたサブクラス化アプローチと、提案されている parentFragment または activity のリスナーを使う代替案を比較します。ローテーション中にリスナーを手動でデタッチしなくても、サポートされている API によって意図したリスナーと sharedViewModel の使用が明確に可能になれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, java
領域
api, mobile
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。