를 만듭니다나는이 오류가 과거를 얻을 수없는 것 AndroidRuntimeException
android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
나는 실행하고 API> 다음과 같이 14
매니페스트는 다음과 같습니다
<activity
android:name=".activity.ActivityWelcome"
android:label="@string/app_label_name"
android:launchMode="singleTask"
android:clearTaskOnLaunch="true"
android:theme="@style/My.Theme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
나의 활동은 다음과 같습니다 :
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.welcome);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.window_title_main);
...
R.layout.window_title_main
은 어디에 : 다른 사람을 위해 작동하는 것 같다 왜이
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_title"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:paddingLeft="5dp" >
<TextView
android:id="@+id/textview_title"
android:drawableLeft="@null"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:marqueeRepeatLimit="-1"/>
</LinearLayout>
작동하지 않습니다?
는 http://stackoverflow.com/a/8634785/603233를 참조 [Window.FEATURE를 사용하려고의 –
가능한 중복 \ _CUSTOM \ _title하지만 예외를 가지고 : 당신은 다른 제목 기능을 사용하여 사용자 정의 제목을 결합 할 수 없습니다. .] (http://stackoverflow.com/questions/2686556/try-to-use-window-feature-custom-titl e- but-got-exceptionyou-can-combine-cust) –