This is a simple wrapper View for the new TextInputLayout from Design Library.
Normaly you use the TextInputLayout like this
This is a simple wrapper View for the new TextInputLayout from Design Library.
Normaly you use the TextInputLayout like this
| /* | |
| * Copyright (C) 2015 Hooked On Play | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| // You can place it in the root build.gradle | |
| allprojects { | |
| tasks.withType(JavaForkOptions) { | |
| // Forked processes like GradleWorkerMain for tests won't steal focus! | |
| jvmArgs '-Djava.awt.headless=true' | |
| } | |
| } |
| def publish = project.tasks.create("copyReleaseApkToCustomDir") | |
| publish.description "Copies release apk to custom directory" | |
| android.applicationVariants.all { variant -> | |
| if (variant.buildType.name.equals("release")) { | |
| variant.outputs.each { output -> | |
| if ( output.outputFile != null && output.outputFile.name.endsWith('.apk')) { | |
| def task = project.tasks.create("copyAndRename${variant.name}Apk", Copy) | |
| def outputFile = output.outputFile | |
| println "Creating " + rootProject.name + "-${versionName}.apk" + " from " + project.name + "-${variant.name}.apk" |
| import android.graphics.drawable.ColorDrawable; | |
| import android.graphics.drawable.Drawable; | |
| import android.widget.TextView; | |
| /** | |
| * Simple Utils class to help in fixing the issue where Button's and TextView's compound drawables will un-center | |
| * text when either one of a left and right or top and bottom compound drawable is not there. The centering of the | |
| * text is achieved by adding a transparent drawable of the same bounds to the opposite side. | |
| * <p/> | |
| * Methods: |
| /* | |
| * Copyright 2015 whs.su | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software | |
| * distributed under the License is distributed on an "AS IS" BASIS, |
about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar.
Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and
rendering normally. Some settings may also make firefox unstable.
I am not liable for any damages/loss of data.
Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions
(HTTPS Everywhere No longer required: Enable HTTPS-Only Mode, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.
Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.
Use the Raspberry Pi Configuration tool or sudo raspi-config to:
| /* | |
| * Copyright (C) 2016 Jeff Gilfelt. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| public class ConnectionStreamDetectionExample { | |
| /** | |
| * Returns the correct input stream based on the content encoding | |
| * @param connection | |
| * @return | |
| * @throws IOException | |
| */ | |
| private static InputStream getInputStream(HttpURLConnection connection) throws IOException { | |
| InputStream inputStream = null; |