package 패키지명;
//ActionBarSherlock를 사용하기 위해 임포트해줘야 하는 것들
import com.actionbarsherlock.app.ActionBar;
import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuItem;
import com.actionbarsherlock.view.MenuInflater;
//(..기타 임포트 생략)
 
public class MainActivity extends SherlockActivity {
//기본 Activity 대신 SherlockActivity를 상속받습니다.
 
@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main_layout);
    }
 
@Override
    public boolean onCreateOptionsMenu(Menu menu) {
    //메뉴 버튼 구현부분
    MenuInflater inflater = getSupportMenuInflater();
        inflater.inflate(R.menu.main_layout, menu);
        return true;
 
    }
 
}