Skip to content

Instantly share code, notes, and snippets.

View Rosariobc's full-sized avatar

Rosariobc Rosariobc

  • New York
View GitHub Profile
@Rosariobc
Rosariobc / TextView.java
Created March 24, 2018 21:15 — 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;
@Rosariobc
Rosariobc / ImageView.java
Created March 24, 2018 21:15 — forked from udacityandroid/ImageView.java
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;
@Rosariobc
Rosariobc / StoreContract.java
Created September 17, 2018 00:32 — forked from udacityandroid/StoreContract.java
Example contract class for a table which contains data about the store's headphones stock
public final class StoreContract {
public static abstract class HeadphoneEntry implements BaseColumns {
public static final String TABLE_NAME = "headphones";
public static final String COLUMN_NAME = "name";
public static final String COLUMN_PRICE = "price";
public static final String COLUMN_STYLE = "style";
public static final String COLUMN_IN_STOCK = "in_stock";
public static final String COLUMN_DESCRIPTION = "description";
@Rosariobc
Rosariobc / WeatherContract.java
Created September 17, 2018 00:33 — forked from udacityandroid/WeatherContract.java
Contract class for a weather application called Sunshine
/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software