为甚EditText只显示一部分
还有背景蓝色为甚会覆盖其他控件颜色<RelativeLayout 
          android:id="@+id/cfc000"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_centerInParent="true"
          android:background="#0000FF"
          android:padding="10px">
      
          <TextView 
              android:id="@+id/cfc001"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_alignParentLeft="true"
              android:text="hello cfc:"/>
          
          <EditText 
              android:id="@+id/cfc002"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_below="@id/cfc001"
              android:layout_marginTop="10px"/>
          
          <Button 
              android:id="@+id/cfc003"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="确定"
              android:layout_alignRight="@id/cfc002"
              android:layout_below="@id/cfc002"/>
          
          <Button 
              android:id="@+id/cfc004"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="取消"
              android:layout_toLeftOf="@id/cfc003"
              android:layout_below="@id/cfc002"
              android:layout_marginRight="50px"
              android:paddingTop="20px"/>
     
      </RelativeLayout>
      
android开发控件layoutrelativelayout

解决方案 »

  1.   

    4.0以上的Theme EditText都长这样了
      

  2.   

    和Manifest文件中的theme有关系,一般使用默认的holo就好
     <application
            android:allowBackup="true"
            android:icon="@drawable/ic_launcher"
            android:label="@string/app_name"
            android:theme="@style/AppTheme" >
      

  3.   

    4.0以后的EditText就是这个样式。
    你是给RelativeLayout设置的背景色,所有包含在这个RelativeLayout的View都会用这个背景色啊。