0
首先,我知道有相同的帖子,但幾天後尋找一個有效的答案,並嘗試一切,我仍然有同樣的問題...ActionBarSherlock + Google Maps API,無法在當前主題中找到樣式'mapViewStyle'
讓我們來揭露我的情況:
我使用的是ABS +谷歌地圖,所以我的地圖視圖XML如下:
<?xml version="1.0" encoding="utf-8"?>
<com.actionbarsherlock.internal.view.menu.ActionMenuItemView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ViewContainer"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<com.google.android.maps.MapView
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="0PGmnrCR70lothfjc_sFGTdFtESQPOksYKQWYpw"
android:clickable="true" />
</com.actionbarsherlock.internal.view.menu.ActionMenuItemView>
前幾天一切很好,我能夠在應用程序和所有東西中做我的東西。但突然間,我只是做了一點改動,插入一個框架佈局以在屏幕上顯示更多選項。我試圖回去,但不可能...
我真的沒有分開,我該怎麼辦?也許我可以創建一個新項目並粘貼我的所有代碼,但不能確定它是否會正常工作...
有什麼建議嗎?
順便說一句我的錯誤代碼是這樣一個
Missing styles. Is the correct theme chosen for this layout?
Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.
Failed to find style 'mapViewStyle' in current theme
java.lang.NullPointerException
Exception details are logged in Window > Show View > Error Log
謝謝您的時間!
爲什麼顯式使用ActionMenuItemView是一個內部類? –
現在還不確定爲什麼,但我認爲我遵循了一些教程或示例,您推薦了什麼?改變它或刪除它? – Marcel