Fix Search colors on KitKat
This commit is contained in:
parent
f477ab84d5
commit
01e8654fbd
|
@ -486,6 +486,9 @@ public class SearchFragment extends BaseListFragment<SearchInfo, ListExtractor.I
|
|||
+ lastSearchedString);
|
||||
}
|
||||
searchEditText.setText(searchString);
|
||||
if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.LOLLIPOP) {
|
||||
searchEditText.setHintTextColor(searchEditText.getTextColors().withAlpha(128));
|
||||
}
|
||||
|
||||
if (TextUtils.isEmpty(searchString) || TextUtils.isEmpty(searchEditText.getText())) {
|
||||
searchToolbarContainer.setTranslationX(100);
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
android:hint="@string/search"
|
||||
android:textColor="@color/white"
|
||||
android:imeOptions="actionSearch|flagNoFullscreen"
|
||||
android:inputType="textFilter|textNoSuggestions"
|
||||
android:maxLines="1"
|
||||
|
@ -46,6 +47,7 @@
|
|||
android:layout_gravity="center"
|
||||
android:contentDescription="@string/search"
|
||||
android:scaleType="fitCenter"
|
||||
app:tint="@color/white"
|
||||
app:srcCompat="@drawable/ic_close"
|
||||
tools:ignore="RtlHardcoded" />
|
||||
</FrameLayout>
|
||||
|
|
Loading…
Reference in New Issue