Skip to content

Instantly share code, notes, and snippets.

@ahmedmtaher
ahmedmtaher / TextView.java
Created June 28, 2018 22:39 — forked from udacityandroid/TextView.java
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;
@ahmedmtaher
ahmedmtaher / MainActivity.java
Created July 1, 2018 12:46 — forked from anonymous/MainActivity.java
Activity Lifecycle exercise
package com.example.android.lifecycle;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {