2017-08-19 28 views
0

<View>は表示されていません、変更はありません。 <View>はタグが機能していません。 私は色を設定しましたが、再び機能しません。 これはなぜ非表示ですか? どうすればよいですか? <View>コードが変更されていません。表示されていません表示

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
       xmlns:app="http://schemas.android.com/apk/res-auto" 
       xmlns:tools="http://schemas.android.com/tools" 
       android:layout_width="match_parent" 
       android:layout_height="match_parent" 
       android:orientation="vertical" 
       tools:context="com.example.android.courtcounter.MainActivity"> 

    <View android:id="@+id/view" 
      android:layout_width="1dp" 
      android:layout_height="match_parent" 
      android:textColor="@android:color/black"/> 

</RelativeLayout> 

doesn't showing ... code's effect

答えて

0

ビューのコード下記のように試してみてください....私を助けてください。

 <View 
     android:id="@+id/view" 
     android:layout_width="match_parent" 
     android:layout_height="3dp" 
     android:background="@android:color/black" /> 
+0

ありがとうヴィシャル.... 私のコードは正しかったが、私のエミュレータは問題がありました。 別のエミュレータを選択すると正常に動作します –

関連する問題