Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add new `OffsetHint` constants for disabling animations

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
android, java
領域
mobile-dev

調査の方向性

CutoutViewIndicator::setOffsetHints(int)、CutoutImageCell、OffsetHint、および既存のメソッド ::justShowTheSelectionsWithoutAnimatingAnything() と ::pleaseGoBackToAnimatingEverything() から着手してください。要求された定数を定義し、便利メソッドの名前と浮動小数点の丸め動作を明確にしてから、この機能が完了したとみなしてください。

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

説明

bug good first issue

Credits to @agrosner for reporting this.

Currently, the value 0 (the standard 'disabled' value for an integer flag) is accepted by CutoutViewIndicator::setOffsetHints(int). Passing that to the function prevents any sort of offset in CutoutImageCell from working, which in turn prevents the indicator from...well, indicating anything.

To make this more transparent, and simpler for new users of the library, I propose two new OffsetHint constants:

  1. an explicit constant STOP_EVERYTHING with value 0
    • this'd disable offset-event visual effects
    • well, at least until a different value is set on the indicator
  2. a constant ONLY_ROUND_NUMBERS with value 1 << 4
    • that'd cause cells to only react to OffsetEvents which return an integer from ::getFraction()
    • ideally some minor rounding to handle floating-point nonsense

Also, a new convenience method or two for setting that second flag: not sure on the name(s), but the should have the same vibe as ::justShowTheSelectionsWithoutAnimatingAnything() and ::pleaseGoBackToAnimatingEverything().

主要言語
Java
スター
21
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

ml-opensource/CutoutViewIndicator のほかの issue

ml-opensource/CutoutViewIndicator の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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