属性をButton
に設定できません。私は何が間違っているのか分からないが、Visual Studioは属性が宣言されていないと言っている。 Android:BorderColor
も機能しません。Xamarin.Android Button Borderが宣言されていません
The 'BorderColor' attribute is not declared
マイコード:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white">
<TextView
android:id="@+id/header"
android:text="@string/header"
style="@style/header_text" />
<Button
android:id="@+id/phones_button"
android:layout_below="@id/header"
android:layout_alignParentStart="true"
android:layout_height="100dp"
android:layout_width="150dp"
android:textColor="@color/gray"
android:background="@color/white"
BorderColor="@color/gray"
android:text="@string/phones"
style="@style/button_style" />
</RelativeLayout>
添付した画像ではなく、関連するコードをテキストとして編集してください。 – avojak
申し訳ありません。ちょうど質問を更新しました:)ありがとう! –