Skip to content

Instantly share code, notes, and snippets.

@tobsbot
tobsbot / app:build.gradle
Created December 26, 2015 16:15
An example showing an apk split by architecture and screen density.
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "application.yourcompany.domain"
versionCode 100
versionName "1.0.0"
@tobsbot
tobsbot / toolbar(v21).xml
Created March 5, 2015 21:11
A linear layout with a view to simulate the toolbar shadow in lollipop on older devices.
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:elevation="4dp"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"