summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BreadCrumbView.java
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-01-13 20:35:06 -0800
committerMichael Kolb <kolby@google.com>2011-01-20 11:33:56 -0800
commit5a72f1858c2f73be3558c6cdaa2c84b4c36fa748 (patch)
tree4d27e2f21e1c080baaf07298deb8729dda61a6f7 /src/com/android/browser/BreadCrumbView.java
parent91c83a0ffb0d33a614fefa6ee81ead47ec0d114b (diff)
downloadpackages_apps_Browser-5a72f1858c2f73be3558c6cdaa2c84b4c36fa748.tar.gz
packages_apps_Browser-5a72f1858c2f73be3558c6cdaa2c84b4c36fa748.tar.bz2
packages_apps_Browser-5a72f1858c2f73be3558c6cdaa2c84b4c36fa748.zip
asset drop & naming
drop in new assets get naming in sync with UX Note: not all resources are included yet item_background...xm will be enabled when all required resources come in Change-Id: I321084abd25ef6c533f1f3da636a246e7ee00547
Diffstat (limited to 'src/com/android/browser/BreadCrumbView.java')
-rw-r--r--src/com/android/browser/BreadCrumbView.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/android/browser/BreadCrumbView.java b/src/com/android/browser/BreadCrumbView.java
index b8409f09f..9aaecd700 100644
--- a/src/com/android/browser/BreadCrumbView.java
+++ b/src/com/android/browser/BreadCrumbView.java
@@ -21,6 +21,7 @@ import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.util.AttributeSet;
+import android.util.TypedValue;
import android.view.Gravity;
import android.view.View;
import android.view.View.OnClickListener;
@@ -161,8 +162,12 @@ public class BreadCrumbView extends LinearLayout implements OnClickListener {
private void addBackButton() {
mBackButton = new ImageButton(mContext);
- mBackButton.setImageResource(R.drawable.ic_back_normal);
- mBackButton.setBackgroundResource(R.drawable.browserbarbutton);
+ mBackButton.setImageResource(R.drawable.ic_back_hierarchy_holo_dark);
+ TypedValue outValue = new TypedValue();
+ getContext().getTheme().resolveAttribute(
+ android.R.attr.selectableItemBackground, outValue, true);
+ int resid = outValue.resourceId;
+ mBackButton.setBackgroundResource(resid);
mBackButton.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.MATCH_PARENT));
mBackButton.setOnClickListener(this);