ich dieses Menü für meine Top-Bar haben:Android Standard-Suche Symbol hat eine seltsame Grenze
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.bma.wol.MainActivity">
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
app:srcCompat="@android:drawable/ic_menu_edit" />
<include layout="@layout/content_main" />
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:weightSum="1"
app:popupTheme="@style/AppTheme.PopupOverlay">
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:contentDescription="@string/app_name"
app:srcCompat="@drawable/dw_logo" />
</android.support.v7.widget.Toolbar>
</android.support.design.widget.AppBarLayout>
</android.support.design.widget.CoordinatorLayout>
und ich zeige es wie dieses
final SearchView searchView = (SearchView) MenuItemCompat.getActionView(menu.findItem(R.id.action_search));
SearchManager searchManager = (SearchManager) getSystemService(SEARCH_SERVICE);
searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
aber es zeigt, wie auf den Punkt:
In der Tat sind alle Standard-Icons (@android:drawable
) in meiner App verwendet werden angezeigt, wie dies und ich verstehe nicht, warum othe r Anwendungen zeigen nicht die seltsame Schatten/Grenze, aber meine tut
Veröffentlichen Sie Ihr Manifest, Menü für Suche und durchsuchbare Informationen xml – FAT
Was ist los mit diesem Symbol? – azizbekian
Ich sah das gleiche Problem. Im Grunde geschieht dies aufgrund der standardmäßigen Farbe für die Zeichenfarbe. Es ändert sich automatisch entsprechend Ihrer 'Toolbar',' Actionbar' und 'NavigationView' Farbe. –