Skip to content

Instantly share code, notes, and snippets.

View ericlucero's full-sized avatar

Eric Lucero ericlucero

  • Panamá
View GitHub Profile
@ericlucero
ericlucero / Activity_Main.xml
Created July 29, 2016 00:45
Activity_Main.xml for Basketball Score Counter
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.android.courtcounter.MainActivity">
@ericlucero
ericlucero / styles.xml
Created July 29, 2016 00:44
XML styles.xml file with colors
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light">
<!-- Primary theme color of the app (sets background color of app bar) -->
<item name="colorPrimary">#FF9800</item>
<!-- Background color of buttons in the app -->
<item name="colorButtonNormal">#FF9800</item>
</style>
</resources>
@ericlucero
ericlucero / MainActivity.java
Last active July 29, 2016 00:43
Contador de Puntos para BasketBall
package com.example.android.courtcounter;
import android.os.ParcelUuid;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
int scoreTeamA = 0;