Skip to content

Instantly share code, notes, and snippets.

Avatar

Edward McEnrue emcenrue

View GitHub Profile
View gist:c4a24dbd9fea6dd6bec7
package com.noteworthy;
import java.util.ArrayList;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;
public class CalendarActivity extends Activity {
View gist:42c0fbd02d6ace30b882
package com.noteworthy;
public class Contributor
{
int pictureResource;
String name;
String contributionClass;
int contributionAmt;
public Contributor(int pictureResource, String name, String contributionClass, int contributionAmt)
View gist:dfa8fc13a909424d379a
package com.noteworthy;
import java.util.ArrayList;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
View gist:64e7d8f58b0c17e71d95
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<stroke android:width="2dp"
android:color="#80FFFFFF" />
<corners android:radius="6dp" />
<gradient android:angle="270"
android:centerColor="#0099FF"
View gist:ba1a5b29d160bcb46a62
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<CalendarView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/calendarView"
View gist:58b1390dab66c5f82791
package com.noteworthy;
import java.util.ArrayList;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.ListView;
public class CalendarActivity extends Activity {
View gist:4e0de1989b465889133a
package com.noteworthy;
import java.util.ArrayList;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
View gist:715fbbc4d004439f3007
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:padding="6dip" >
<ImageView
android:id="@+id/profilePicture"
android:layout_width="wrap_content"
View gist:b02970f3d43abb11734e
package com.noteworthy;
import java.io.ByteArrayOutputStream;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.provider.MediaStore;
import android.util.Base64;
View gist:e272436606a99c7844c1
/*
* Copyright (c) 2014 Kevin Sawicki <kevinsawicki@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
You can’t perform that action at this time.