不能改变 listview 中的 text 大小和 text 颜色

我想改变 listview 中的 text 大小和 text 颜色。我在 folder layout 中创建了新的xml文件:mytext.xml。

<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android" 
          android:id="@android:id/text1"  
          android:paddingTop="2dip" 
          android:paddingBottom="3dip" 
          android:layout_width="fill_parent" 
          android:layout_height="wrap_content" /> 

我改变了下面的程序:

adapter = new ArrayAdapter<String> (this,android.R.layout.mytext,HistoryList);

但是 eclipse 不能找到 mytext.xml,这是为什么呢?

应该是R.layout.mytext,你导入的R文件的包错了
R文件导入的包应该是你应用的包 注意别导入android.R了 这个是系统包

adapter = new ArrayAdapter<String> (this,R.layout.mytext,HistoryList);

TextView的大小属性是:android:textSize
TextView的颜色属性是:android:textColor
你改变这2个属性即可。