Hatanın ne anlattığını anlıyorum, ancak Özel Başlık ile birleştirmeye çalıştığım başlık özelliklerini göz önünde bulundurarak ne kullanabileceğimi bilmiyorum.Özel Başlığı Diğer Başlık Özellikleriyle Birleştirilemiyor
inspection_title.axml
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/inspectionTitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:marqueeRepeatLimit="-1"/>
LiftInspection.cs
[Activity(ScreenOrientation = Android.Content.PM.ScreenOrientation.Portrait)]
public class LiftInspection : ExpandableListActivity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
string callInfo = Intent.GetStringExtra("CallInfo");
RequestWindowFeature(WindowFeatures.CustomTitle);
SetContentView(Resource.Layout.LiftInspection);
Window.SetFeatureInt(WindowFeatures.CustomTitle, Resource.Layout.inspection_title);
TextView title = (TextView) FindViewById(Resource.Id.inspectionTitle);
title.Text = callInfo;
}
tezahür ya da bir şey içinde hiçbir ek başlık özelleştirme yoktur
. Bu istisnayı oluşturmak için CustomTitle ile ne birleştirmek mümkün olabilir? böylece başka bunu değiştirmeye çalışırsanız, Temanızın ismi "AppTheme" ise AndroidManifest.xmlfinal Window window = getWindow();
boolean useTitleFeature = false;
if(window.getContainer() == null) {
useTitleFeature = window.requestFeature(Window.FEATURE_CUSTOM_TITLE);
}
SetContentView(Resource.Layout.LiftInspection);
if (useTitleFeature) {
window.setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.inspection_title);
}
bana yardımcı Öyle mi: – kinghomer