Back to project page ReqDroid.
The source code is released under:
GNU General Public License
If you think the Android project ReqDroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.vrs.reqdroid.activities; //w w w. j av a 2 s .c o m import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.support.v4.app.ListFragment; import android.support.v4.app.NavUtils; import android.support.v7.app.ActionBarActivity; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import com.vrs.reqdroid.R; import com.vrs.reqdroid.fragments.ProjetosListFragment; /** * Implementa a tela de abrir projetos. * * @author Vinicius Rodrigues Silva <vinicius.rodsilva@gmail.com> * @version 1.0 */ public class TelaAbrirProjetoActivity extends ActionBarActivity{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.listview_projetos); getSupportActionBar().setDisplayHomeAsUpEnabled(true); ListFragment fragment = new ProjetosListFragment(); FragmentManager fragmentManager = getSupportFragmentManager(); FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); fragmentTransaction.replace(android.R.id.content, fragment); fragmentTransaction.commit(); } @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.menu_aplicativo, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.menusobre: Intent i = new Intent(TelaAbrirProjetoActivity.this, TelaSobreActivity.class); startActivity(i); break; // Respond to the action bar's Up/Home button case android.R.id.home: NavUtils.navigateUpTo(this, new Intent(this, TelaPrincipalActivity.class)); return true; } return super.onOptionsItemSelected(item); } }