当在横向模式中的工具栏中添加后退按钮时,后退按钮不在工具栏的垂直中心。如何实现工具栏垂直中心的后退箭头(向上按钮)
我唯一能做的就是在Android清单:
<activity
android:name="tack.hardcode.com.tack.MainActivity"
android:label="@string/app_name"
android:screenOrientation="landscape">
这里是我的工具栏的代码
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#3F51B5">
</android.support.v7.widget.Toolbar>
我也有v21.styles实现,我有包括我mainActivity工具栏。
我还应该做什么?
你想实现后退箭头(即上导航)还是要让它处于垂直中心? @KiZo – Pooja 2015-03-31 09:29:10
它已经实现,我只想在app_bar的垂直中心 – KiZo 2015-03-31 09:43:51
你可以发布你的工具栏代码吗?我的意思是XML。 – Pooja 2015-03-31 12:23:10