1
ロゴを問題の先頭にとどめ、ロゴがすべてのフォームに表示され続けるように、アンドロイドで次のコマンドを使用します。メインページにしか表示されないようにするにはどうしたらいいですか?最初のフォームにのみロゴを残す方法
//Toolbar.axml
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:popupTheme="@style/ThemeOverlay.AppCompat.Light" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/logo"/>
</android.support.v7.widget.Toolbar>
//MainActive
ToolbarResource = Resource.Layout.Toolbar;
ImageViewのImageViewの= FindViewById(Resource.Id.image)。 imageView.Visibility = ViewStates.Visible; –
@José 'NullReferenceException'どのオブジェクトがヌルですか?あなたのコードをデバッグする必要があります – SushiHangover