Skip to content

Instantly share code, notes, and snippets.

View srcreigh's full-sized avatar

Shane Creighton-Young srcreigh

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/listview_background_shape" >
<item android:drawable="@drawable/card_background" />
<item>
<shape>
<padding
android:bottom="12dp"
android:left="12dp"
android:top="12dp"
<com.hackthenorth.android.ui.component.TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:textColor="@color/text_color_primary"
android:fontFamily="sans-serif"
android:textStyle="bold"
android:textSize="18sp"
Set<WeakReference<TextView>> toRemove = new HashSet<WeakReference<TextView>>();
for (WeakReference<TextView> weakRef : textviews) {
TextView textView = weakRef.get();
if (textView != null) {
// do stuff here
} else {