Yalantis/uCrop

Toolbar text and icon color is not getting changed

Open

#467 aperta il 2 nov 2018

Vedi su GitHub
 (8 commenti) (3 reazioni) (0 assegnatari)Java (2134 fork)batch import
help wanted

Metriche repository

Star
 (11.748 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

My app is using different color than white for the text and icons which appears at the top of crop screen. I've tried to change the color using theme color change in style but no success. Can you please guide me how can i change the color of text color which appears on Toolbar here is the code of manifest:

<activity
            android:name="com.yalantis.ucrop.UCropActivity"
            android:screenOrientation="portrait"
            android:theme="@style/uCropStyle"></activity>

here is the style i've applied to chage the color:

<style name="uCropStyle" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimaryDark">@color/black</item>
        <item name="colorAccent">@color/black</item>
        <item name="colorPrimary">@color/yellow</item>
        <item name="android:textColor">@color/black</item>
    </style>

Guida contributor