Skip to content

Commit

Permalink
Fix: renaming resources to avoid conflicts with users resources.
Browse files Browse the repository at this point in the history
Update: Updating gradle version
  • Loading branch information
mzelzoghbi committed Jul 2, 2017
1 parent 0840313 commit bf300da
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.android.tools.build:gradle:2.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Nov 22 16:21:50 EET 2016
#Sat Mar 11 14:07:55 EET 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
6 changes: 3 additions & 3 deletions zgallery/src/main/java/com/mzelzoghbi/zgallery/ZGallery.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private ZGallery(Activity activity, ArrayList<String> imagesURLs) {
}

/**
* Set toolbar title
* Set z_toolbar title
*
* @param title
* @return
Expand All @@ -51,7 +51,7 @@ public ZGallery setTitle(String title) {
}

/**
* Setting toolbar Color ResourceId
* Setting z_toolbar Color ResourceId
*
* @param colorResId
* @return
Expand All @@ -62,7 +62,7 @@ public ZGallery setToolbarColorResId(int colorResId) {
}

/**
* Setting toolbar color
* Setting z_toolbar color
*
* @param color enum color may be black or white
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class ZGalleryActivity extends BaseActivity {

@Override
protected int getResourceLayoutId() {
return R.layout.activity_gallery;
return R.layout.z_activity_gallery;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public final class ZGridActivity extends BaseActivity implements GridClickListen

@Override
protected int getResourceLayoutId() {
return R.layout.activity_grid;
return R.layout.z_activity_grid;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public GridImagesAdapter(Activity activity, ArrayList<String> imageURLs, int img

@Override
public ImageViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
return new ImageViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_image, null));
return new ImageViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.z_item_image, null));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public HorizontalListAdapters(Activity activity, ArrayList<String> images, OnImg

@Override
public HorizontalImageViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
return new HorizontalImageViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_image_horizontal, null));
return new HorizontalImageViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.z_item_image_horizontal, null));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public boolean isViewFromObject(View view, Object object) {

@Override
public Object instantiateItem(ViewGroup container, int position) {
View itemView = mLayoutInflater.inflate(R.layout.pager_item, container, false);
View itemView = mLayoutInflater.inflate(R.layout.z_pager_item, container, false);

final ImageView imageView = (ImageView) itemView.findViewById(R.id.iv);
Glide.with(activity).load(images.get(position)).listener(new RequestListener<String, GlideDrawable>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
android:id="@+id/mainLayout"
android:orientation="vertical">

<include layout="@layout/toolbar" />
<include layout="@layout/z_toolbar" />

<com.mzelzoghbi.zgallery.CustomViewPager
android:id="@+id/pager"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
android:layout_height="match_parent"
android:orientation="vertical">

<include layout="@layout/toolbar"/>
<include layout="@layout/z_toolbar"/>

<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bf300da

Please sign in to comment.