mapView 관련 xml 질문입니다 !(Failed to find style 'mapViewStyle' in current theme)
결론은 main.xml에서
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
아래와 같은 메시지를 뱉어 낸다는 겁니다 ㅠ
Style.xml을 만들어서 메니페스트와 style.xml파일에서 지정해주는등 여러가지 방법을 써봤는데 .....
답이 없네요 ....
main.xml 코드 입니다.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" 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="**********"
/>
</LinearLayout>
자바 코드 입니다
package kr.cup.ac.Map;
import java.util.Locale;
import android.app.Activity;
import android.app.ActivityManager;
import android.content.Context;
import android.location.Criteria;
import android.location.Geocoder;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.TextView;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
public class MapTest extends MapActivity {
/** Called when the activity is first created. */
private MapView mapView;
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mapView = (MapView)findViewById(R.id.mapview);
}
@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}
메니패스트 입니다
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="kr.cup.ac.Map"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="10" />
<USES-PERMISSION android:name="android.permission.INTERNET"></USES-PERMISSION>
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name">
<uses-library android:name="com.google.android.maps" />
<activity
android:name=".MapTestActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
같은 증상 겪어 보신분 ! 답변을 기다리겠습니다 !
그냥 찍기인데...RelativeLayout 바꾸면 안되나요?