Help! Help with setting up the TitanicTextview!

CM_OfficialYT

1/3 Games Approved
Hello everyone, this might be new but I just need a little help and confused about the code that I changed.

Here take a look, I want to change the text color to rainbow one, but when I tried to do:

Java:
private View Switch(final int featNum, final String featName, boolean swiOn) {
        final Switch switchR = new Switch(this);
        ColorStateList buttonStates = new ColorStateList(
                new int[][]{
                        new int[]{-android.R.attr.state_enabled},
                        new int[]{android.R.attr.state_checked},
                        new int[]{}
                },
                new int[]{
                        Color.BLUE,
                        ToggleON, // ON
                        ToggleOFF // OFF
                }
        );
        //Set colors of the switch. Comment out if you don't like it
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            switchR.getThumbDrawable().setTintList(buttonStates);
            switchR.getTrackDrawable().setTintList(buttonStates);
        }
        //---------This Part of the code, it won't turn text into rainbow, instead just a pitch-dark/transparent color...---------//
        TitanicTextView textView = new TitanicTextView(this);
        textView.setText(Html.fromHtml(featName));
        textView.setTextColor(TEXT_COLOR_2);
//--------------- Just right up here----//
        switchR.setPadding(10, 5, 0, 5);
        switchR.setChecked(Preferences.loadPrefBool(featName, featNum, swiOn));
        switchR.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            public void onCheckedChanged(CompoundButton compoundButton, boolean bool) {
                Preferences.changeFeatureBool(featName, featNum, bool);
                switch (featNum) {
                    case -1: //Save perferences
                        Preferences.with(switchR.getContext()).writeBoolean(-1, bool);
                        if (bool == false)
                            Preferences.with(switchR.getContext()).clear(); //Clear perferences if switched off
                        break;
                    case -2:
                        Preferences.isAnimating = bool;
                        Log.d(TAG, String.valueOf(Preferences.isAnimating));
                        break;
                    case -3:
                        Preferences.isExpanded = bool;
                        scrollView.setLayoutParams(bool ? scrlLLExpanded : scrlLL);
                        break;
                }
            }
        });
        new Titanic().start(textView);
        return switchR;
    }

IMG_20250526_203925.jpg


I am using the old LGL Mod Menu Animation 2.8 from 4 years ago, and yes I still have the 2.9, 3.2, and this animation 2.8
 
Back
Top Bottom