From 5a72f1858c2f73be3558c6cdaa2c84b4c36fa748 Mon Sep 17 00:00:00 2001 From: Michael Kolb Date: Thu, 13 Jan 2011 20:35:06 -0800 Subject: 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 --- src/com/android/browser/BreadCrumbView.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/com/android/browser/BreadCrumbView.java') 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); -- cgit v1.2.3