I am using Sherlock Action Bar for my project. But I face on problem. I am using this code in OnCreate method.
ActionBar actionBar = getSupportActionBar();
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
View iconImage = findViewById(android.R.id.home);
iconImage.setPadding(100, 0, 0, 0);
In android 4.1 the “iconImage” is not null. But on android 2.3. iconImage is always null.
Do you know why? and Do you know how can I get home button in android 2.3.
Note : I checked , I can detect home button click action by implement onOptionsItemSelected method.
Please help me !
“You cannot access the home view because it exists above the content view and in the window decoration”
See more here by the author of ActionBarSherlock
P/s: VNese 😀