Android 애플리케이션을 프로그래밍 중이며 처음부터 아이콘이 작업 표시 줄에 표시되지 않습니다. 이미 많은 솔루션을 읽었거나 적용했지만 표시되지 않습니다. 저를 도와주세요?Android : 아이콘이 ActionBar에 표시되지 않습니다.
Manifest.xml :
(...)
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
(...)
styles.xml :
(...)
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="android:icon">@drawable/ic_launcher</item>
</style>
나는 다음과 같은 구성을 사용하고 있습니다 :
defaultConfig {
applicationId "com.converter.android.converter"
minSdkVersion 11
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
"이미 많은 솔루션을 읽었거나 적용했지만 표시되지 않습니다."- [this like] (http://stackoverflow.com/a/)의 복제본으로 폐쇄 될 것입니다. 26850864/115145) ** 당신이 시도한 것을 완전하고 정확하게 ** 설명하지 않은 경우. – CommonsWare
@CommonsWare, 나는 ** style.xml **에서 parent = "Theme.AppCompat.Light.DarkActionBar"를 변경하려고 시도했습니다. ActionBar actionBar = getActionBar(); 또한 시도했습니다. actionBar.setIcon (R.drawable.ic_launcher) 그러나 이것은 API 14에만 가능합니다. – porthfind
이것은 내가 사용하고있는 테마와 관련이 있다고 생각합니다. – porthfind