0
我在Android中遇到問題。我在這件事上很新,所以請不要這麼辛苦地對待我。所以我的問題是我想在表格佈局中集成表格佈局。我編寫的代碼和IDE沒有顯示任何問題,它沒有任何問題安裝到模擬器,但是當我想運行應用程序,它給了我一個錯誤(不幸的是,應用程序名稱已停止)。就是這樣。我在這裏鏈接一些代碼。我感謝你的幫助。Android中標籤佈局中的表格佈局
package hu.EasyBank;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
public class BetetAttekint extends TabActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TabHost tabhost=getTabHost();
TabHost.TabSpec spec;
Intent intent;
intent=new Intent().setClass(this, BetetAttekint.class);
spec=tabhost.newTabSpec("betet").setIndicator("Betétek Áttekintése").setContent(intent);
tabhost.addTab(spec);
}
}