2016-08-13 3 views
1

Meine Navigationsleiste zeigt Symbol in einem Filter nicht wirkliche Farbe wie t diese Filter entfernenNavigationsleiste Symbol Farbe

: Ich bin mir bitte helfen, Schritt für Schritt.

Vielen Dank!

Screenshot:

enter image description here

+0

Gehen Sie zu Ihrer Datei Menu.xml der Navigationsleiste und ändern Sie die Symbole entsprechend !! Welche möglicherweise in Drawable Ordner oder Mipmap-Ordner ist !! –

+0

ich ändere es, aber ändere meine Farbe der Symbole und Symbole erscheinen schwarz! –

+0

Das Problem sind die grauen Kreise anstelle Ihrer Symbole? – motis10

Antwort

3

Dieses Problem ist duplicated. Aber ich füge die Erklärung hinzu.

Ihr Layout-Datei ist wie folgt: (activity_main.xml)

<android.support.v4.widget.DrawerLayout 
     xmlns:android="http://schemas.android.com/apk/res/android" 
     xmlns:app="http://schemas.android.com/apk/res-auto" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent"> 

    <!-- The main content view --> 
    ... 


    <android.support.design.widget.NavigationView 
      android:id="@+id/navigation_view" 
      android:layout_width="wrap_content" 
      android:layout_height="match_parent" 
      android:layout_gravity="start" 
      app:menu="@menu/navigation_item"/> 

</android.support.v4.widget.DrawerLayout> 

Ihre Aktivität ist wie folgt: (MainActivity.java)
Anruf navigationView.setItemIconTintList.

public class MainActivity extends AppCompatActivity { 
    ... 

    @Override 
    protected void onCreate(Bundle savedInstanceState) { 
     super.onCreate(savedInstanceState); 
     setContentView(R.layout.activity_main); 

     ... 


     NavigationView navigationView = (NavigationView) findViewById(R.id.navigation_view); 
     navigationView.setItemIconTintList(null); 

     ... 
    } 
    ... 
} 
+0

danke Problem ist resloved :) –

Verwandte Themen