Menu

Blog

WordPress logo - blue background

How to get AMP pages to validate with CloudFlare and WordPress

If you’re using AMP pages (Accelerated Mobile Pages) and CloudFlare on your WordPress website/blog you’ve probably noticed some validation errors. This guide assumes you have the WordPress AMP plugin installed. To fix the validation errors go to Page Rules on the CloudFlare dashboard and add a rule for your website. Use the following url pattern: *thewirelessguy.co.uk/*/amp/* Obviously […]

Material Design

How to set up your Android app project to use Material Design with AppCompat

AppCompat v21.+’s Theme.AppCompat extends Theme.Base.AppCompat which extends Theme.Platform.AppCompat which extends android:Theme.Material on 21+ devices (i.e. Android 5.0 Lollipop) so you only need to extend Theme.AppCompat to use Material theme if you are using the AppCompat v21 (or above) library.

First add compile ‘com.android.support:appcompat-v7:21.0.0’ to the dependancies section of your build.gradle file.