Skip to content

Instantly share code, notes, and snippets.

View YassineOuardini's full-sized avatar

Yassine Ouardini YassineOuardini

View GitHub Profile
udacityandroid /
Created June 27, 2015 23:27
Android for Beginners : Menu Starter Code
import android.os.Bundle;
import android.view.View;
public class MainActivity extends AppCompatActivity {
udacityandroid /
Created June 15, 2015 18:24
Android for Beginners : Simplified ImageView class
* Displays an image, such as an icon.
public class ImageView extends View {
// Resource ID for the source image that should be displayed in the ImageView.
private int mImageId;
// Context of the app
private Context mContext;
udacityandroid /
Created June 15, 2015 18:23
Android for Beginners : Simplified TextView class
* Displays text to the user.
public class TextView extends View {
// String value
private String mText;
// Text color of the text
private int mTextColor;