Skip to content
This repository has been archived by the owner on Dec 4, 2022. It is now read-only.

Commit

Permalink
update supportLibrary
Browse files Browse the repository at this point in the history
switch to vector drawables
  • Loading branch information
andriydruk committed Feb 25, 2016
1 parent 7c0e18b commit 1a4b812
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
23 changes: 16 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,28 @@ android {
dataBinding {
enabled true
}

defaultConfig {
// Stops the Gradle’s automatic rasterization of vectors
generatedDensities = []
}
// Flag that tells aapt to keep the attribute ids
aaptOptions {
additionalParameters "--no-version-vectors"
}
}

dependencies {
//Android Support Libraries Version
def supportLibrary = '23.1.1'
def supportLibrary = '23.2.0'

compile 'com.github.andriydruk:rxdnssd:0.5.0'
compile "com.android.support:support-v4:${supportLibrary}"
compile "com.android.support:appcompat-v7:${supportLibrary}"
compile "com.android.support:design:${supportLibrary}"
compile "com.android.support:recyclerview-v7:${supportLibrary}"
compile "com.android.support:cardview-v7:${supportLibrary}"
compile "com.android.support:support-annotations:${supportLibrary}"
compile "com.android.support:support-v4:$supportLibrary"
compile "com.android.support:appcompat-v7:$supportLibrary"
compile "com.android.support:design:$supportLibrary"
compile "com.android.support:recyclerview-v7:$supportLibrary"
compile "com.android.support:cardview-v7:$supportLibrary"
compile "com.android.support:support-annotations:$supportLibrary"
compile 'io.reactivex:rxandroid:1.1.0'
compile 'io.reactivex:rxjava:1.1.0'
}
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/ic_autorenew.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M12,6v3l4,-4 -4,-4v3c-4.42,0 -8,3.58 -8,8 0,1.57 0.46,3.03 1.24,4.26L6.7,14.8c-0.45,-0.83 -0.7,-1.79 -0.7,-2.8 0,-3.31 2.69,-6 6,-6zm6.76,1.74L17.3,9.2c0.44,0.84 0.7,1.79 0.7,2.8 0,3.31 -2.69,6 -6,6v-3l-4,4 4,4v-3c4.42,0 8,-3.58 8,-8 0,-1.57 -0.46,-3.03 -1.24,-4.26z"/>
</vector>
2 changes: 1 addition & 1 deletion app/src/main/res/layout-sw600dp/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_gravity="end|right|bottom"
android:src="@mipmap/ic_action_refresh"
app:srcCompat="@drawable/ic_autorenew"
android:layout_margin="@dimen/fab_margin"
android:visibility="@{serviceName == null ? View.GONE : View.VISIBLE}"
android:onClick="@{fabOnClickListener}"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_service.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
android:layout_width="wrap_content"
app:layout_anchor="@id/appbar"
app:layout_anchorGravity="bottom|right|end"
android:src="@mipmap/ic_action_refresh"
app:srcCompat="@drawable/ic_autorenew"
android:layout_margin="@dimen/fab_margin"
android:clickable="true"/>

Expand Down
Binary file removed app/src/main/res/mipmap-xhdpi/ic_action_refresh.png
Binary file not shown.

0 comments on commit 1a4b812

Please sign in to comment.