當在橫向模式中的工具欄中添加後退按鈕時,後退按鈕不在工具欄的垂直中心。如何實現工具欄垂直中心的後退箭頭(向上按鈕)
我唯一能做的就是在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