Skip to content

Instantly share code, notes, and snippets.

Fran Riádigos FranRiadigos

View GitHub Profile
View relative_constraint_guideline.xml
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true">
<!-- This View acts like a helper guideline
and anchors to the "relative_view" TextView. -->
<View
@FranRiadigos
FranRiadigos / build.gradle
Last active Jun 15, 2018
Example of overriding an apk name with custom values and signed or unsigned suffix.
View build.gradle
applicationVariants.all { variant ->
variant.outputs.all {
outputFileName =
"${project.name.toLowerCase()}-" + // app
"${variant.flavorName}-" + // develop
"${variant.buildType.name}-" + // debug
"${versionCode}" + // 10101
(variant.buildType.name.contains("release")
&& !variant.signingReady ? "-unsigned" : "") + // unsigned
You can’t perform that action at this time.