How to make app icon as up enabled in actionbarsherlock (not the title only icon) like in whats app.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
My friend, I think this is Android version/build "feature", because I have two devices, (Nexus S and Nexus 7) (Android 4.1.2 and Android 4.2.2) and I am deploying the app I am developing on both devices, same exact code, on Nexus S the icon is "up", on Nexus 7 the icon and title are both "up".
make sure your android:minSdkVersion="11" which could be seen in the manifest file, Up icon has been included from APK 11. Add the following to your onCreate method For home page put getActionBar().setDisplayHomeAsUpEnabled(false); make sure it false and on other activities you keep it enabled i,e "true". i have made a small sample plz try the below link which may be help you just import into your work space
http://www.mediafire.com/?hktdvts7yyduwv1
The title is clickable together with the icon since Android 4.2.2. WhatsApp uses a custom view to display a two line title. This disables the title click along the way. You can do it the same way:
/res/layout/ab_title.xml:
Add the following to your
onCreate
method:and define the following override method in your activity: