私のmain.xmlは、いくつかのビューを宣言:私の見解では見えないか、せいぜい隠さ
<Button
android:id="@+id/btnSendSMS"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Send SMS">
</Button>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<com.google.android.maps.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="3.144214421442144214421442144214421442" />
を...と私のメインの活動のコンストラクタは、main.xmlにGUIを設定します。
setContentView(R.layout.main);
私はエミュレータでアプリケーションを実行すると、これらのビュー(button、textView、mapView)が表示されません。代わりに、トップの近くにGoogle検索バーが表示され、フレンドリーな緑の友達が私にアドバイスします。あなたのホーム画面... "
これはAndroidの土地にある誰にとってもおなじみのシナリオですか?
レイアウトはあなたのビューですか? –