2012-01-19 5 views
0

이 Android 개발에 새로운 점이 있습니다. 현재 Android 설치용 Mono를 따르는 HelloM4A 프로젝트로 놀고 있습니다.테마 설정 Holo.Light in Mono for Android

나는 또한 Google이 우리가 디자인 gudide를 사용하기를 원한다는 것을 알아 채었고, 나는 그 가이드에서 그들이 사용하는 테마를 발견했다. 그것은 Holo Light이라고합니다.

이제 어떻게 프로젝트에 해당 테마를 추가 할 수 있습니까? 테마를 다운로드해야합니까, 아니면 전화에서 표준입니까?

아래 코드를 시도했지만 빌드 오류가 발생했습니다. 이상한 점은 내 Error list에서 오류를 찾지 못했기 때문입니다.

[Activity(Label = "HelloM4A", MainLauncher = true, Icon = "@drawable/icon", Theme = "@style/Theme.Holo.Light")] 
public class Activity1 : Activity 
{ 
    int count = 1; 

    protected override void OnCreate(Bundle bundle) 
    { 
     base.OnCreate(bundle); 

     // Set our view from the "main" layout resource 
     SetContentView(Resource.Layout.Main); 

     // Get our button from the layout resource, 
     // and attach an event to it 
     Button button = FindViewById<Button>(Resource.Id.MyButton); 

     button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); }; 
    } 
} 

이 내 프로젝트 레이아웃이다 : 어떤 도움에 감사드립니다

enter image description here

!

답변

2

u 프로젝트에는 이름 매니페스트 파일이 있습니다. u님께 서 아래의 주제와 같은 활동을 해 주셔야합니다. 대신 theme.transulent.notilebar 의

<activity 
     android:name="com.aviz.pep.android.ui.classname" 
     android:theme="@android:style/Theme.Translucent.NoTitleBar" > 
    </activity> 

는 테마의 이름을 추가하지만

+0

감사를 최신 SDK를 사용하고 있는지 확인합니다,하지만 당신은 (내 게시물에) 내 프로젝트 레이아웃에서 보는 바와 같이 나는이 없습니다 매니페스트 파일 내가 만들어야하니? 어디 있어야합니까? Android 용 Visual Studio 및 Mono를 사용하는 Rememeber – Martin

+0

링크가 도움이 될 수도 있습니다 – aviz

+0

http://msdn.microsoft.com/en-us/library/ms235229(v=vs.80).aspx – aviz