Xamarin.forms Main.axml在哪里使用?
在我的Android项目中,我有一个名为Xamarin.forms Main.axml在哪里使用?,xamarin.forms,Xamarin.forms,在我的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" androi
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"
android:padding="10dp">
<TextView
android:text="HELLO WORLD"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/msgText"
android:textAppearance="?android:attr/textAppearanceMedium"
android:padding="10dp" />
</LinearLayout>
此文件引用在何处以及
文本视图出现在何处?在主活动的OnCreate
覆盖中,有
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;
SetContentView(Resource.Layout.Main);