일반적인 Activity에서 CustomTitle을 호출을 하려면 다음과 같이 사용을 합니다. 그리고 잘되고요.
public class Setting extends Activity {
        requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
        setContentView(R.layout.fader);
        getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
}

그런데 문제는 PreferenceActivity에서는 적용이 안된다는 겁니다.
다른것은 상속받은 Activity의 종류가 다를 뿐인데..

public class Setting extends PreferenceActivity {
 @Override
 protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  //XML에서 설정정의를 읽고 이를 현재 액티비티의 뷰로 팽창시킨다. => Manifest에 등록시킨다.
  
        getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
        addPreferencesFromResource(R.xml.setting);
 }
}

뭐 달리 해주어야 하는 방법이 있나요?
profile