When you set the title, the content text is transparent.
See original GitHub issueprivate 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:
- Created 8 years ago
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Agree that this should NOT exist in the library, but offloaded to the developer. Opacity should not change.