---
title: "设置内存卡资源图片"
author: "xun005"
date: "2013-03-12T10:11:57Z"
tags: []
categories: ["移动开发"]
slug: "untitled"
draft: false
lastmod: "2013-03-12T10:11:57Z"
id: 1827966
url: "https://xun005.iteye.com/blog/1827966"
---

String imageDir = Environment.getExternalStorageDirectory().getPath() + "/theme/";  
                    mTextViewAppUpload.setTextColor(getResources().getColor(R.color.white));  
                    mTextViewAppUpdate.setTextColor(getResources().getColor(R.color.white));  
                     
                    head\_bgView.setBackgroundDrawable(Drawable.createFromPath(imageDir + "index\_head\_bj.png"));  
                     
                    lineIV.setImageDrawable(Drawable.createFromPath(imageDir + "user\_line.png"));  
                    iv\_back.setImageDrawable(Drawable.createFromPath(imageDir + "second\_logo\_selected.png"));  
                    headShortcutIcon.setImageDrawable(Drawable.createFromPath(imageDir + "head\_arrow.png"));