question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When you set the title, the content text is transparent.

See original GitHub issue
private void setTitleText(CharSequence contentText) {
    if(this.mTitleTextView != null && !contentText.equals("")) {
        // THIS LINE SHOULD NOT EXIST
        this.mContentTextView.setAlpha(0.5F);
        this.mTitleTextView.setText(contentText);
    }
}

Why this code sets the mContextTextView alpha to 0.5?

MaterialShowcaseView.Builder builder = new MaterialShowcaseView.Builder(activity);
builder.setTarget(view);
builder.setTitleText(titleResource);
builder.setContentText(detailResource);
builder.setContentTextColor(android.R.color.white);
builder.setDismissText(R.string.showcase_got_it);
builder.setDismissOnTouch(false);
builder.setDelay(Constants.SHOWCASE_SHOW_DELAY);
builder.setMaskColour(ContextCompat.getColor(activity, R.color.primary_showcase));
builder.singleUse(singleUseId);

Setting the content text color does not solve the problem…

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
sandrocsimascommented, Mar 19, 2016

Yes, but the user can set this in setContentTextColor, setting a transparent color. As you said, it should be a choice and i didn’t like the way it was. =( When i set the content text color to WHITE, it was very bad to read, depending the colors you use as your background. Furthermore, i think its bad practice to change the contentText inside the setTitleText method. This is not clear to user. See my PR: #85

1reaction
noordawodcommented, Feb 10, 2017

Agree that this should NOT exist in the library, but offloaded to the developer. Opacity should not change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make Transparent Text Title in Adobe Premiere ...
Create a clear transparent text in Adobe Premiere Elements which will make your video out, and how to add your favorite color. ⭐...
Read more >
Can I change the transparency of the title background, but not ...
I'm looking for a way to change the transparency of the black title square at barrycooper.com, while keeping the white title text at...
Read more >
How to Set Opacity of Images, Text & More in CSS
To set the opacity of a background, image, text, or other element, you ... The last is set to be completely transparent, which...
Read more >
Transparent background with opaque text - html - Stack Overflow
I told you to do that to prove the title isn't translucent, not to keep it like that permanately. On my screen, it...
Read more >
Setting title text to transparent - Avid Community
Simply set in/out points on your "Graphic Fill" layer, select the piece of video you want to put inside the text, and using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found