---
title: "Android TextView背景色、圆角、内部填充设置"
author: "jackeysion"
date: "2015-06-01T13:50:12Z"
tags: ["Android", "XML"]
categories: ["移动开发"]
slug: "android-textview"
draft: false
lastmod: "2015-06-01T13:50:12Z"
id: 2215884
url: "https://jackeysion.iteye.com/blog/2215884"
---

把TextView的android:background属性设置成自定义的一个xml样式文件。 \[code="xml"] android:background="@drawable/textview\_style" \[/code] textview\_style.xml文件里的内容： \[code="xml"] \[/code] corner android:radius属性就是圆角的设置