This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DrawerActivity extends ActionBarActivity { | |
| private DrawerLayout mDrawerLayout = null; | |
| private ListView mDrawerList = null; | |
| private String[] mDrawerItems; | |
| private ActionBarDrawerToggle mDrawerToggle = null; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_drawer_layout); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * This is a simple and easy approach to reuse the same | |
| * navigation drawer on your other activities. Just create | |
| * a base layout that conains a DrawerLayout, the | |
| * navigation drawer and a FrameLayout to hold your | |
| * content view. All you have to do is to extend your | |
| * activities from this class to set that navigation | |
| * drawer. Happy hacking :) | |
| * P.S: You don't need to declare this Activity in the | |
| * AndroidManifest.xml. This is just a base class. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ReportCard { | |
| //Defining variables | |
| private String mMateria; | |
| private double mNota; | |
| //Constructor | |
| public ReportCard( String materia, double nota){ | |
| mMateria = materia; | |
| mNota = nota; | |
| } | |
| //Getter Methods |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Carro { | |
| private int mModelo; | |
| public Carro() { | |
| mModelo = 0; | |
| setup(); | |
| } | |
| public Carro(int modelo) { |
NewerOlder