Only have private space drawable section for beginning of private space section and keep letters for everything else.

spec: https://www.figma.com/design/uMzPkNMZpb7EyfHDo8usIa/V-%E2%80%A2-Toast-Butter?node-id=2746-180205&node-type=frame&m=dev
As of recent request: Only using the bubble background for everything and have private space go back to using letters.

Will include divider in followup.

bug:358673724
Test photo: https://drive.google.com/file/d/1dC3fgfWiumhyLm4vI-VfnXIYQyjPyrnk/view?usp=sharing
Flag: com.android.launcher3.letter_fast_scroller

Change-Id: I30487581eec4bd3e1921de4e3d899cfe2e2a703f
This commit is contained in:
Brandon Dayauon committed 2024-10-10 16:31:39 -07:00
1 parent e710e70bc8
commit 9d60a18c5c
4 files changed
+54 -9

No files matched your search

@@ -16,6 +16,9 @@
package com.android.launcher3.allapps;
import static androidx.constraintlayout.widget.ConstraintSet.MATCH_CONSTRAINT;
import static androidx.constraintlayout.widget.ConstraintSet.WRAP_CONTENT;
import android.content.Context;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
@@ -23,6 +26,7 @@ import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.graphics.ColorUtils;
import com.android.launcher3.R;
@@ -70,6 +74,20 @@ public class LetterListTextView extends TextView {
setVisibility(VISIBLE);
}
/**
* Applies a viewId to the letter list text view and sets the background and text based on the
* sectionInfo.
*/
public void apply(AlphabeticalAppsList.FastScrollSectionInfo fastScrollSectionInfo,
int viewId) {
setId(viewId);
setText(fastScrollSectionInfo.sectionName);
ConstraintLayout.LayoutParams lp = new ConstraintLayout.LayoutParams(
MATCH_CONSTRAINT, WRAP_CONTENT);
lp.dimensionRatio = "v,1:1";
setLayoutParams(lp);
}
/**
* Animates the letter list text view based on the current finger position.
*