Commit f68f0494 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Add some padding around the home button

parent 08638b20
...@@ -64,6 +64,7 @@ import android.widget.AdapterView.OnItemClickListener; ...@@ -64,6 +64,7 @@ import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button; import android.widget.Button;
import android.widget.CheckBox; import android.widget.CheckBox;
import android.widget.EditText; import android.widget.EditText;
import android.widget.ImageView;
import android.widget.ListView; import android.widget.ListView;
import android.widget.ProgressBar; import android.widget.ProgressBar;
import android.widget.TextView; import android.widget.TextView;
...@@ -162,6 +163,12 @@ public class MainActivity extends SherlockFragmentActivity { ...@@ -162,6 +163,12 @@ public class MainActivity extends SherlockFragmentActivity {
mActionBar.setDisplayOptions(0, ActionBar.DISPLAY_SHOW_TITLE); mActionBar.setDisplayOptions(0, ActionBar.DISPLAY_SHOW_TITLE);
mActionBar.setDisplayHomeAsUpEnabled(true); mActionBar.setDisplayHomeAsUpEnabled(true);
/* Add padding between the home button and the arrow */
ImageView home = (ImageView)findViewById(Util.isHoneycombOrLater()
? android.R.id.home : R.id.abs__home);
if (home != null)
home.setPadding(20, 0, 0, 0);
/* Set up the sidebar click listener */ /* Set up the sidebar click listener */
listView.setOnItemClickListener(new OnItemClickListener() { listView.setOnItemClickListener(new OnItemClickListener() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment