2015-01-07 10 views
6
<TextView 
    android:id="@+id/textView1" 
    android:layout_width="match_parent" 
    android:layout_height="10" 
    android:layout_alignBottom="@+id/editText2" 
    android:layout_alignRight="@+id/editText2" 
    android:layout_alignEnd="@+id/editText2" 
    android:layout_marginBottom="63dp" 
    android:text="@string/hello" /> 

文字列を入力しないでテキストを入力するたびに、黄色のI記号が表示されます。だから私はストリングを作った。今、layout_heightで上記のメッセージが表示されます。私はアンドロイド開発に新しいです。エラー:エラー:整数型が許可されていません(値 '10'の 'layout_height')

答えて

10

整数

android:layout_height="10dp" 
値で指定するために使用DPまたはSPのいずれかをこれらのlnksをチェック

または

android:layout_height="35sp" 
関連する問題