Skip to content

Instantly share code, notes, and snippets.

View saturov's full-sized avatar

Eugene Saturov saturov

View GitHub Profile
compile 'com.android.support:percent:23.0.0'
app:layout_widthPercent=”25%”
<android.support.percent.PercentRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<View
app:layout_widthPercent="25%"
android:layout_height="100dp"
app:layout_marginLeftPercent="5%"
android:background="#ff0000" />
compile 'com.android.support:appcompat-v7:23.0.+'
// в библиотеке есть зависимость appcompat-v7:23.0.0
compile 'com.trello:rxlifecycle-components:0.3.0'
// даже если rxlifecycle-components использует 23.0.0,
// сборка будет использовать 23.0.1, так как она указана явно
compile 'com.android.support:appcompat-v7:23.0.1'
// The Fabric Gradle plugin uses an open ended version to
// react quickly to Android tooling updates
classpath 'io.fabric.tools:gradle:1.+'
$ ./gradlew androidDependencies
$ ./gradlew dependencies
$ ./gradlew :app-dir:dependencies
// Add this to your build.gradle
task buildscriptDependencies << {
buildscript.configurations.classpath.each { println it }
}