SDK하는 SDK (23)을 사용하는 내 응용 프로그램을 업데이트 한
/SDK와 추가 패딩/여유가 홈 화살표 (즉, getSupportActionBar().setDisplayHomeAsUpEnabled(true)
)에는 위쪽 화살표와 활동 제목 사이에 추가 (원치 않는) 공간이 있습니다.
위쪽 화살표가없는 활동의 경우 활동 제목이 전과 동일하므로 추가 채우기/여백이 활동 제목이 아닌 위쪽 화살표와 연관되어 있음을 나타냅니다.
제 질문은 레이아웃을 어떻게 변경하여 SDK 23에서와 같이 SDK 24와 동일하게 보이게 할 수 있습니까?
화살표와 제목 SDK (23)를 사용하여 사이 작은 간격 :
SDK (24) 사용하여 대형 (원치 않는)를 사이에 격차 화살표 제목 :
여기 내 오래된 빌드입니다 .gradle (SDK 23) : 여기
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.example.myapp"
minSdkVersion 19
targetSdkVersion 23
versionCode 42
versionName "0.42"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-vision:9.0.2'
compile 'ch.acra:acra:4.7.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:support-v13:23.4.0'
compile 'com.journeyapps:zxing-android-embedded:[email protected]'
compile 'com.google.zxing:core:3.2.1'
}
는 새로운 build.gradle입니다 (SDK 24) :
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.example.myapp"
minSdkVersion 19
targetSdkVersion 24
versionCode 42
versionName "0.42"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-vision:9.0.2'
compile 'ch.acra:acra:4.7.0'
compile 'com.android.support:support-v4:24.0.0'
compile 'com.android.support:recyclerview-v7:24.0.0'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:design:24.0.0'
compile 'com.android.support:support-v13:24.0.0'
compile 'com.journeyapps:zxing-android-embedded:[email protected]'
compile 'com.google.zxing:core:3.2.1'
}
그런데 buildToolsVersion "24" – penguin
을 사용할 수 있습니다. "빌드 도구 개정판 24.0.0을 찾지 못했습니다"라는 메시지가 표시되지만 설치 링크가 있습니다. :-) (우연히 문제가 해결되지 않았습니다.) –
SDK 관리자로부터 Android SDK 빌드 도구를 다운로드 했습니까? – penguin