Skip to content

Instantly share code, notes, and snippets.

View csarq's full-sized avatar

catherine sarquís csarq

View GitHub Profile
@csarq
csarq / MainActivity.java
Last active April 19, 2018 13:31
Basic Table Tennis Scoring App
/** I apologise for this messy code! It's because I'm a complete beginner, but I'd really appreciate any advice in improving it/cleaning it up!
The majority has been gathered from various internet search results, and so I'm making this available for any other learners wanting
to play around with the code/app
- Remember to replace occurrances of "ball" with the name of your video file
- The background video wouldn't run for me on the emulator, so try running directly to your android device
- Place your video in a "raw" folder that sits within the "res" folder.
*/
package com.example.android.tabletennisscore;
@csarq
csarq / forxml.xml
Last active July 27, 2018 06:12
preparing xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".MainActivity"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:fillViewport="true">