How to removing space between home (and up) button and title on android action bar? -
in app, there space i dont want between icons , action bar title. menu button default 1 when 1 creates navigation activity. , arrow brought including
<activity android:name=".shipmentlist" android:label="shimpment" android:parentactivityname=".mainnavigationactivity"> <meta-data android:name="android.support.parent_activity" android:value="com.mobile.mainnavigationactivity" /> </activity>
in androidmanifest.
on each version upgrade found issues ui changes. issue android version 24. happened when installed , upgraded build it. maybe new default design android.. can build toolbar instead of builtin actionbar, able padd wish. or, if don't mind - can downgrade 23.0.3 , appcompat 23.3.0
*by way- if downgrade 23.0.0 - 23.2.0 have issue colorstate = contextcompat.getcolorstatelist(chatactivity.this,r.color.mycolor); colorstate change on button have no effect.
any way - build.gradle has normal padding between home , title in actionbar:
apply plugin: 'com.android.application' android { compilesdkversion 23 buildtoolsversion '23.0.3' defaultconfig { applicationid "com.xxxxx.xxxxx.xxxx" minsdkversion 19 targetsdkversion 23 versioncode 1 versionname "1.0.7" } buildtypes { release { shrinkresources true minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } repositories { maven { url 'https://raw.githubusercontent.com/felixb/mvn-repo/master/' } mavencentral() } productflavors { } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:support-v4:23.3.0' compile 'com.android.support:support-annotations:23.3.0' compile 'com.android.support:appcompat-v7:23.3.0' compile 'com.android.support:design:23.3.0' }
Comments
Post a Comment