我的Android开发环境搭建好了,也能正常的运行程序,但是我的AVD的背景是白色的,看视频教程都是黑色的背景,我不知道是怎么搞的,请高手指导一下,万分感谢!

解决方案 »

  1.   

    这个白色黑色无所谓的 你想让它是黑色在布局上加
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/userassess_view_item_ll"
        android:layout_width="fill_parent"
        android:layout_height="1dp"
        android:background="@android:color/black" >
      

  2.   

    我新建了一个HelloWorld项目,main.xml中的布局是这样的:
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >
        
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:layout_centerVertical="true"
            android:padding="@dimen/padding_medium"
            android:text="@string/hello_world"
            tools:context=".MainActivity" /></RelativeLayout>里面怎么没有<?xml version="1.0" encoding="utf-8"?>呢?我这两天刚安装的是最新版本的SDK,在线安装的ADT,是版本的问题还是我开发环境没有搭建成功呢?谢谢指导!
      

  3.   

    <?xml version="1.0" encoding="utf-8"?>是XML的头文件,不过反正也都是Android内部读取的配置文件,他能读就行了没有也无所谓
      

  4.   


    <?xml version="1.0" encoding="utf-8"?>
    严格说来并不属于XML