Skip to content

Instantly share code, notes, and snippets.

View franciscofranco's full-sized avatar
💭
Wtf, this isn't a social network, fuck the status

Francisco Franco franciscofranco

💭
Wtf, this isn't a social network, fuck the status
View GitHub Profile
@franciscofranco
franciscofranco / gist:428185021140785bfe65
Last active August 29, 2015 14:08
Custom Lollipop Preference Category layout for pre 5.0
<?xml version="1.0" encoding="utf-8"?>
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/title"
android:layout_width="match_parent"
android:layout_height="48dp"
android:gravity="center_vertical"
android:paddingLeft="64dp"
android:textColor="#DE000000"
android:textStyle="bold"
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="56dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/drawer_icon"
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/white"
android:orientation="vertical"
android:windowMinWidthMajor="@android:dimen/dialog_min_width_major">
<LinearLayout