2012-10-23 2 views
0

우선, 같은 질문을하는 수천 개의 게시물이 있습니다. 그러나 며칠 만에 유효한 답변을 찾고 모든 것을 시도해 보겠습니다.ActionBarSherlock + Google Maps API, 현재 테마에서 'mapViewStyle'스타일을 찾지 못했습니다.

<?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> 

며칠 전에 모든 것을 내지도보기 XML은 다음 그래서 나는 ABS는 +지도를 구글 사용하고

: 같은 문제가있는 것은 ...

은 그래서 내 상황을 노출하자 좋았어, 나는 애플 리케이션과 모든 내 물건을 할 수있었습니다. 하지만 갑자기 방금 약간의 변경을 가한 다음 프레임 레이 아웃을 삽입하여 화면에 더 많은 옵션을 표시했습니다. 나는 되돌아 가려고했지만 불가능했다. ...

나는 정말로 할 수있다, 나는 무엇을 할 수 있냐? 어쩌면 새 프로젝트를 만들고 모든 코드를 붙여 넣을 수는 있지만 작동 여부를 확실히 알 수는 없습니다 ...

제안 사항?

은 BTW 내 오류 코드는 하나의

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 

이 시간 내 주셔서 감사합니다!

+0

왜 내부 클래스 인 ActionMenuItemView를 명시 적으로 사용하고 있습니까? –

+0

확실하지 않은 이유가 지금은 있지만 자습서 나 몇 가지 예를 따랐을 것입니다. 변경하거나 제거 하시겠습니까? – Marcel

답변

0

마침내 문제가 해결되었지만 화면의 오류가 계속 발생하지만 위닝과 마찬가지로 앱을 실행해도 문제가 없습니다.

내가 만든 유일한 생각, ABS의 특정 레이아웃을 변경하고 프레임 레이아웃을 넣어.