亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

安裝了ECLIPSE集成變成這樣了怎么辦

package com.example.hellojava;


import android.support.v7.app.ActionBarActivity;

import android.support.v7.app.ActionBar;

import android.support.v4.app.Fragment;

import android.os.Bundle;

import android.view.LayoutInflater;

import android.view.Menu;

import android.view.MenuItem;

import android.view.View;

import android.view.ViewGroup;

import android.os.Build;


public class MainActivity extends ActionBarActivity {


? ? @Override

? ? protected void onCreate(Bundle savedInstanceState) {

? ? ? ? super.onCreate(savedInstanceState);

? ? ? ? setContentView(R.layout.activity_main);


? ? ? ? if (savedInstanceState == null) {

? ? ? ? ? ? getSupportFragmentManager().beginTransaction()

? ? ? ? ? ? ? ? ? ? .add(R.id.container, new PlaceholderFragment())

? ? ? ? ? ? ? ? ? ? .commit();

? ? ? ? }

? ? }



? ? @Override

? ? public boolean onCreateOptionsMenu(Menu menu) {

? ? ? ??

? ? ? ? // Inflate the menu; this adds items to the action bar if it is present.

? ? ? ? getMenuInflater().inflate(R.menu.main, menu);

? ? ? ? return true;

? ? }


? ? @Override

? ? public boolean onOptionsItemSelected(MenuItem item) {

? ? ? ? // Handle action bar item clicks here. The action bar will

? ? ? ? // automatically handle clicks on the Home/Up button, so long

? ? ? ? // as you specify a parent activity in AndroidManifest.xml.

? ? ? ? int id = item.getItemId();

? ? ? ? if (id == R.id.action_settings) {

? ? ? ? ? ? return true;

? ? ? ? }

? ? ? ? return super.onOptionsItemSelected(item);

? ? }


? ? /**

? ? ?* A placeholder fragment containing a simple view.

? ? ?*/

? ? public static class PlaceholderFragment extends Fragment {


? ? ? ? public PlaceholderFragment() {

? ? ? ? }


? ? ? ? @Override

? ? ? ? public View onCreateView(LayoutInflater inflater, ViewGroup container,

? ? ? ? ? ? ? ? Bundle savedInstanceState) {

? ? ? ? ? ? View rootView = inflater.inflate(R.layout.fragment_main, container, false);

? ? ? ? ? ? return rootView;

? ? ? ? }

? ? }


}


正在回答

1 回答

不要的刪除就好了

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
Android攻城獅的第一門課(入門篇)
  • 參與學習       312492    人
  • 解答問題       4931    個

想快速掌握Android應用開發基礎,選擇學習這門課程就對了。

進入課程

安裝了ECLIPSE集成變成這樣了怎么辦

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號