ShowcaseView icon indicating copy to clipboard operation
ShowcaseView copied to clipboard

How to add margin between the TITLE and DETAIL?

Open sandrocsimas opened this issue 8 years ago • 5 comments

I try to change the text appearence of the detail but is not working. How can i add an extra margin between the title and detail?

<style name="ShowcaseDetailTextAppearance" parent="TextAppearance.ShowcaseView.Detail.Light">
    <item name="android:textSize">@dimen/text_extra_large</item>
    <item name="android:textColor">@android:color/white</item>
    <item name="android:layout_marginTop">40dp</item>
</style>

sandrocsimas avatar Feb 28 '16 16:02 sandrocsimas

layout_* attributes cant be added to a TextAppearance. I'll think about the best way to add this feature but in the meantime you could try to use lineSpacingExtra instead?

amlcurran avatar Feb 29 '16 10:02 amlcurran

OK @amlcurran, i will try to use lineSpacingExtra, thanks!

sandrocsimas avatar Feb 29 '16 14:02 sandrocsimas

Not sure if it will work, but will be interesting to see if it does!

amlcurran avatar Feb 29 '16 16:02 amlcurran

@amlcurran, lineSpacingExtra don't work. =(

sandrocsimas avatar Feb 29 '16 20:02 sandrocsimas

@sandro-csimas this is a bit of a hack but I did this:

showcaseView.setContentTitle(Html.fromHtml("Title<br/>"))

tomafc330 avatar Nov 29 '16 22:11 tomafc330