---
title: "更改TextView的背景色"
author: "wzz_momo"
date: "2010-05-10T14:26:57Z"
tags: ["Android", "Java"]
categories: ["移动开发"]
slug: "textview"
draft: false
lastmod: "2010-05-10T14:26:57Z"
id: 663003
url: "https://wzz-momo.iteye.com/blog/663003"
---

1、android:background="@drawable/white" \[code="java"] \[/code] 2、mTextView02.setBackgroundDrawable \[code="java"] Resources resources = this.getBaseContext().getResources(); Drawable HippoDrawable = resources.getDrawable(R.drawable.white); mTextView01.setBackgroundDrawable(HippoDrawable); \[/code]