Skip to content

Commit

Permalink
Fix Lint Issue. Temporarily set minSDKVersion to 19.
Browse files Browse the repository at this point in the history
  • Loading branch information
imallan committed Jul 15, 2015
1 parent de6c65c commit 1799c22
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ android {

defaultConfig {
applicationId "uk.co.imallan.jellyrefreshlayout"
minSdkVersion 16
minSdkVersion 19
targetSdkVersion 22
versionCode 1
versionName "1.0"
Expand Down
2 changes: 1 addition & 1 deletion jellyrefresh/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
buildToolsVersion "22.0.1"

defaultConfig {
minSdkVersion 16
minSdkVersion 19
targetSdkVersion 22
versionCode 1
versionName "1.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package uk.co.imallan.jellyrefresh;

import android.animation.ValueAnimator;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
Expand Down Expand Up @@ -71,7 +72,7 @@ private void setupHeader() {
return;
}

View headerView = LayoutInflater.from(getContext()).inflate(R.layout.view_pull_header, null);
@SuppressLint("InflateParams") View headerView = LayoutInflater.from(getContext()).inflate(R.layout.view_pull_header, null);
final JellyView jellyView = (JellyView) headerView.findViewById(R.id.jelly);
final TextView textLoading = (TextView) headerView.findViewById(R.id.text_loading);
jellyView.setJellyColor(mJellyColor);
Expand Down
4 changes: 3 additions & 1 deletion jellyrefresh/src/main/res/layout/view_pull_header.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">

Expand All @@ -20,6 +21,7 @@
android:text="Loading..."
android:textColor="@android:color/white"
android:textSize="18sp"
android:textStyle="bold" />
android:textStyle="bold"
tools:ignore="HardcodedText" />

</FrameLayout>

0 comments on commit 1799c22

Please sign in to comment.