次のコードではこの出力結果が表示されますが、テキスト表示は表示されません。
テキストビューを表示するにはどうすればよいですか?
このスプラッシュ画面は残っています...
ありがとうございます。Androidのスプラッシュ画面
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="hello.agam"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".HelloAndroidActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/textview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/hello"/>
</activity>
</application>
</manifest>
また、私はこれを試してみました:
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
what ...?私は混乱しています、あなたは何を求めていますか? – JoxTraex
エミュレータでAndroidアプリを初めて実行するのですか?メモ帳のように、Androidサンプルアプリケーションの1つをエミュレータで正常に実行できますか? –