Posts

Showing posts with the label Android Design Library

Android Studio XML Preview Not Showing

Answer : I had the same issue it seems some problem with the alpha material library I downgraded the material library dependency in the build.gradle to implementation 'com.google.android.material:material:1.0.0' then invalidated the cache and restarted the studio from File -> Invalidate Caches / Restart... It worked.

Change EditText Hint Color When Using TextInputLayout

Answer : Define android:textColorHint in your application theme: <style name="AppTheme" parent="Theme.AppCompat.NoActionBar"> <item name="colorPrimary">@color/primary</item> <item name="colorPrimaryDark">@color/primary_dark</item> <item name="colorAccent">@color/accent</item> <item name="android:textColorHint">@color/secondary_text</item> </style> Source Create custom style in style.xml <style name="EditTextHint" parent="TextAppearance.AppCompat"> <item name="colorAccent">@android:color/white</item> <item name="android:textColorHint">@color/BackgroundtWhiteColor</item> <item name="colorControlNormal">@color/BackgroundtWhiteColor</item> <item name="colorControlActivated">@color/your color</item> <item name...