Skip to content

Commit

Permalink
rename library to pullzoomrecyclerview
Browse files Browse the repository at this point in the history
  • Loading branch information
dinuscxj committed Jun 9, 2016
1 parent 5ba97e2 commit 09631be
Show file tree
Hide file tree
Showing 33 changed files with 317 additions and 122 deletions.
1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

22 changes: 0 additions & 22 deletions .idea/compiler.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/copyright/profiles_settings.xml

This file was deleted.

18 changes: 0 additions & 18 deletions .idea/gradle.xml

This file was deleted.

22 changes: 0 additions & 22 deletions .idea/misc.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,22 @@ Using RecyclerView requires three steps:<br/>
* You can reset the default smooth scroll to top interpolator(the default is DecelerateInterpolator)

## Usage
```java
Add dependency
```gradle
dependencies {
compile 'com.dinuscxj:pullzoomrecyclerview:1.0.0'
}
```

Used in xml
```xml
<app.dinus.com.pullzoomrecyclerview.recyclerview.PullZoomRecyclerVie
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
```

Used in java
```java
mPullZoomRecyclerView.setAdapter(new Adapter());
mPullZoomRecyclerView.setLayoutMannager(new LinearLayoutManager(context));
Expand Down
13 changes: 8 additions & 5 deletions app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,14 @@
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content>
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
<orderEntry type="jdk" jdkName="Android API 23 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="support-v4-23.2.0" level="project" />
<orderEntry type="library" exported="" name="recyclerview-v7-23.2.0" level="project" />
<orderEntry type="library" exported="" name="appcompat-v7-21.0.3" level="project" />
<orderEntry type="library" exported="" name="support-annotations-23.2.0" level="project" />
<orderEntry type="library" exported="" name="appcompat-v7-24.0.0-alpha1" level="project" />
<orderEntry type="library" exported="" name="animated-vector-drawable-24.0.0-alpha1" level="project" />
<orderEntry type="library" exported="" name="support-vector-drawable-24.0.0-alpha1" level="project" />
<orderEntry type="library" exported="" name="recyclerview-v7-24.0.0-alpha1" level="project" />
<orderEntry type="library" exported="" name="support-v4-24.0.0-alpha1" level="project" />
<orderEntry type="library" exported="" name="support-annotations-24.0.0-alpha1" level="project" />
<orderEntry type="module" module-name="pullzoomrecyclerview" exported="" />
</component>
</module>
11 changes: 6 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
compileSdkVersion 23
buildToolsVersion "23.0.3"

defaultConfig {
applicationId "app.dinus.com.pullzoomrecyclerview"
applicationId "com.dinuscxj.pullzoomrecyclerview"
minSdkVersion 11
targetSdkVersion 21
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
Expand All @@ -21,6 +21,7 @@ android {

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:appcompat-v7:24.0.0-alpha1'
compile 'com.android.support:recyclerview-v7:+'
compile project(':pullzoomrecyclerview')
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package app.dinus.com.pullzoomrecyclerview;
package com.dinuscxj.pullzoomrecyclerview;

import android.app.Application;
import android.test.ApplicationTestCase;
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="app.dinus.com.pullzoomrecyclerview" >
package="com.dinuscxj.pullzoomrecyclerview" >

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:name="com.dinuscxj.pullzoomrecyclerview.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -17,12 +17,12 @@
</intent-filter>
</activity>
<activity
android:name=".PullZoomHeaderActivity"
android:name="com.dinuscxj.pullzoomrecyclerview.PullZoomHeaderActivity"
android:label="@string/title_activity_pull_zoom_header" >
</activity>

<activity
android:name=".PullZoomFooterActivity"
android:name="com.dinuscxj.pullzoomrecyclerview.PullZoomFooterActivity"
android:label="@string/title_activity_pull_zoom_footer" >
</activity>
</application>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package app.dinus.com.pullzoomrecyclerview;
package com.dinuscxj.pullzoomrecyclerview;

import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package app.dinus.com.pullzoomrecyclerview;
package com.dinuscxj.pullzoomrecyclerview;

import android.os.Bundle;
import android.support.annotation.NonNull;
Expand All @@ -9,8 +9,8 @@
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import app.dinus.com.pullzoomrecyclerview.recyclerview.PullZoomRecyclerView;
import app.dinus.com.pullzoomrecyclerview.recyclerview.RecyclerListAdapter;

import com.dinuscxj.pullzoom.PullZoomRecyclerView;

import java.util.ArrayList;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package app.dinus.com.pullzoomrecyclerview;
package com.dinuscxj.pullzoomrecyclerview;

import android.content.Intent;
import android.os.Bundle;
Expand All @@ -10,7 +10,7 @@
import android.view.ViewGroup;
import android.widget.TextView;

import app.dinus.com.pullzoomrecyclerview.recyclerview.PullZoomBaseView;
import com.dinuscxj.pullzoom.PullZoomBaseView;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
package app.dinus.com.pullzoomrecyclerview;
package com.dinuscxj.pullzoomrecyclerview;

import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import app.dinus.com.pullzoomrecyclerview.recyclerview.PullZoomRecyclerView;
import app.dinus.com.pullzoomrecyclerview.recyclerview.RecyclerListAdapter;


public class PullZoomHeaderActivity extends PullZoomActivity {

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package app.dinus.com.pullzoomrecyclerview.recyclerview;
package com.dinuscxj.pullzoomrecyclerview;

import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PullZoomHeaderActivity"
android:textAllCaps="false"
android:id="@+id/pull_zoom_header" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:textAllCaps="false"
android:text="PullZoomFooterActivity"
android:id="@+id/pull_zoom_footer"/>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_pull_zoom_header.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent">

<app.dinus.com.pullzoomrecyclerview.recyclerview.PullZoomRecyclerView
<com.dinuscxj.pullzoom.PullZoomRecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/menu/menu_pull_zoom_header.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<menu 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"
tools:context="app.dinus.com.pullzoomrecyclerview.PullZoomHeaderActivity">
tools:context="com.dinuscxj.pullzoomrecyclerview.PullZoomHeaderActivity">
<item android:id="@+id/action_settings" android:title="@string/action_settings"
android:orderInCategory="100" app:showAsAction="never" />
</menu>
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'

classpath 'com.android.tools.build:gradle:1.1.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
classpath 'com.github.dcendents:android-maven-plugin:1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
17 changes: 16 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,19 @@
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# org.gradle.parallel=true
BINTRAY_USER=dinuscxj
BINTRAY_KEY=fcf157d1267398372fa3853eb5e6d8e277246151

PROJ_GROUP=com.dinuscxj
PROJ_VERSION=1.0.0
PROJ_NAME=pullzoomrecyclerview
PROJ_WEBSITEURL=https://github.com/dinuscxj/PullZoomRecyclerView
PROJ_ISSUETRACKERURL=https://github.com/dinuscxj/PullZoomRecyclerView/issues
PROJ_VCSURL=https://github.com/dinuscxj/PullZoomRecyclerView.git
PROJ_DESCRIPTION=A pull to zoom-in RecyclerView for android
PROJ_ARTIFACTID=pullzoomrecyclerview

DEVELOPER_ID=dinuscxj
DEVELOPER_NAME=dinus_developer
DEVELOPER_EMAIL=dinus_developer@163.com
1 change: 1 addition & 0 deletions pullzoomrecyclerview/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
Loading

0 comments on commit 09631be

Please sign in to comment.