2017-08-03 10 views
0

次のエラーを修正するにはどうすればよいですか? ( '+ ID /電話番号テキスト@' の値を有する 'ID' で)許可されていない文字列型が許可されていません - axml Xamarin android

文字列型

Main.axml

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 

android:orientation="vertical" 
android:layout_width="match_parent" 
android:layout_height="match_parent"> 
<TextView 
    android:text="Enter Phoneword" 
    android:textAppearance="?android:attr/textAppearanceLarge" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:id="@+id/textView1" /> 
<EditText 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:id=" @+id/PhoneNumberText" 
    android:text="1-855-XAMARIN" /> 
<Button 
    android:text="Translate" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:id="@+id/TranslateButton" /> 
<Button 
    android:text="Call" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:id="@+id/callbutton" /> 

答えて

2

android:id=" @+id/PhoneNumberText"のIDの宣言には、@+id/PhoneNumberTextの前に空白があります。

スペースを削除し、それが動作するはずです:

android:id="@+id/PhoneNumberText"

関連する問題