wie ich neu bei Android bin ich zurück in meiner Symbolleiste, ich möchte die Polsterung/Marge von links reduzieren Wie kann ich das tun? danke in adwance.reduzieren linken Rand der Navigation Symbol der Symbolleiste in Android
das ist mein Design-Code
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay">
<TextView
android:id="@+id/tripidtoolbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:text="name"
android:textColor="#ffffff"
android:textSize="18sp"
android:textStyle="bold"
/>
<TextView
android:id="@+id/dayNotoolbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:textColor="#ffffff"
android:layout_marginRight="10dp"
android:text="day"
android:textAllCaps="true"
android:textSize="18sp"
android:textStyle="bold"
/>
</android.support.v7.widget.Toolbar>
dies ist, wie ich manuell Taste zurück
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_vouchers_details);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
toolbar.setNavigationIcon(R.drawable.arrowbackwhite);
toolbar.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
setSupportActionBar(toolbar);
dies mein Bildschirm ist (Zurück-Taste havin linken Rand)
Mögliche hinzufügen Duplikat von [Android: entferne den linken Rand vom benutzerdefinierten Layout der Aktionsleiste] (http: // st ackoverflow.com/questions/27354812/android-remove-left-margin-from-actionbars-custom-layout) –
@EvgeniyMishustin: ich versuche diese Frage, aber immer noch nicht mein Problem gelöst .. –