http://developer.android.com/のチュートリアルを完了しました。/tutorials/views/hello-tabwidget.html を参照してください。私のコードでは、すべてのアクティビティにマニフェストや独自のクラスなどの独自のエントリがあります。
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class PetCareActivity extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView textview = new TextView(this);
textview.setText("This is the Pet Care tab");
setContentView(textview);
}
}
The problem is at this point, I can only do things like creating textView. How would I add extra content within the tab, similar to https://market.android.com/details?id=com.bskyb.sportnews&hl=en
ありがとう、
デビッド