opacapp / multiline-collapsingtoolbar

A modified CollapsingToolbarLayout that can deal with multiline titles
Other
782 stars 114 forks source link

Text Shadow Visibility on some text #27

Open moosabaloch opened 7 years ago

moosabaloch commented 7 years ago

screen shot 2016-11-28 at 11 31 38 am I have added text shadow on expanded text everything is working perfect but you can see the shadow of word urdu on background is not adjusted automatically.. code for style:

<style name="expTitle">
        <item name="android:shadowColor">@color/shadow_text_shadow</item>
        <item name="android:shadowDx">2</item>
        <item name="android:shadowDy">2</item>
        <item name="android:shadowRadius">1</item>
        <item name="android:textSize">23sp</item>
        <item name="android:textColor">@color/white</item>
</style>

Code in activity XML

<android.support.design.widget.AppBarLayout
        android:id="@+id/mainappbar"
        android:layout_width="match_parent"
        android:layout_height="300dp"
        android:fitsSystemWindows="true">

<net.opacapp.multilinecollapsingtoolbar.CollapsingToolbarLayout
            android:id="@+id/maincollapsing"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:contentScrim="?attr/colorPrimary"
            app:expandedTitleGravity="center|bottom"
            app:expandedTitleMarginBottom="?attr/actionBarSize"
            app:expandedTitleTextAppearance="@style/expTitle"
            app:layout_scrollFlags="scroll|exitUntilCollapsed"
            app:statusBarScrim="@android:color/transparent"
            app:titleEnabled="true"

            >.....
johan12345 commented 7 years ago

Thanks for the bug report. As we don't use any text shadows in our app, we have not tested this library with text shadows and the code for drawing them is unchanged from the original Design Support Library.

As written in the README, we unfortunately can't spend much time to fix problems like this, but pull requests are welcome!

RaphaelRoyerRivard commented 7 years ago

I'm having the same issue.

apapalillo commented 7 years ago

Same issue here. Good library, but shadows don't display correctly

almaz010891 commented 6 years ago

I'm having the same issue.