>
65 | JAVA_HOME="/home/hb/android-studio/jre"
66 | # Determine the Java command to use to start the JVM.
67 | if [ -n "$JAVA_HOME" ] ; then
68 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
69 | # IBM's JDK on AIX uses strange locations for the executables
70 | JAVACMD="$JAVA_HOME/jre/sh/java"
71 | else
72 | JAVACMD="$JAVA_HOME/bin/java"
73 | fi
74 | if [ ! -x "$JAVACMD" ] ; then
75 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
76 |
77 | Please set the JAVA_HOME variable in your environment to match the
78 | location of your Java installation."
79 | fi
80 | else
81 | JAVACMD="java"
82 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
83 |
84 | Please set the JAVA_HOME variable in your environment to match the
85 | location of your Java installation."
86 | fi
87 |
88 | # Increase the maximum file descriptors if we can.
89 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
90 | MAX_FD_LIMIT=`ulimit -H -n`
91 | if [ $? -eq 0 ] ; then
92 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
93 | MAX_FD="$MAX_FD_LIMIT"
94 | fi
95 | ulimit -n $MAX_FD
96 | if [ $? -ne 0 ] ; then
97 | warn "Could not set maximum file descriptor limit: $MAX_FD"
98 | fi
99 | else
100 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
101 | fi
102 | fi
103 |
104 | # For Darwin, add options to specify how the application appears in the dock
105 | if $darwin; then
106 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
107 | fi
108 |
109 | # For Cygwin, switch paths to Windows format before running java
110 | if $cygwin ; then
111 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
112 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
113 | JAVACMD=`cygpath --unix "$JAVACMD"`
114 |
115 | # We build the pattern for arguments to be converted via cygpath
116 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
117 | SEP=""
118 | for dir in $ROOTDIRSRAW ; do
119 | ROOTDIRS="$ROOTDIRS$SEP$dir"
120 | SEP="|"
121 | done
122 | OURCYGPATTERN="(^($ROOTDIRS))"
123 | # Add a user-defined pattern to the cygpath arguments
124 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
125 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
126 | fi
127 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
128 | i=0
129 | for arg in "$@" ; do
130 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
131 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
132 |
133 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
134 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
135 | else
136 | eval `echo args$i`="\"$arg\""
137 | fi
138 | i=$((i+1))
139 | done
140 | case $i in
141 | (0) set -- ;;
142 | (1) set -- "$args0" ;;
143 | (2) set -- "$args0" "$args1" ;;
144 | (3) set -- "$args0" "$args1" "$args2" ;;
145 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
146 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
147 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
148 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
149 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
150 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
151 | esac
152 | fi
153 |
154 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
155 | function splitJvmOpts() {
156 | JVM_OPTS=("$@")
157 | }
158 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
159 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
160 |
161 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
162 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/library/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/library/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 | ext {
3 | PUBLISH_GROUP_ID = 'com.master.android'
4 | PUBLISH_ARTIFACT_ID = 'glideimageview'
5 | PUBLISH_VERSION = '2.1'
6 | }
7 | android {
8 | compileSdkVersion 25
9 | buildToolsVersion "25.0.2"
10 |
11 | defaultConfig {
12 | minSdkVersion 15
13 | targetSdkVersion 25
14 | versionCode 1
15 | versionName "1.0"
16 |
17 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
18 |
19 | }
20 | buildTypes {
21 | release {
22 | minifyEnabled false
23 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
24 | }
25 | }
26 | }
27 |
28 | dependencies {
29 | compile fileTree(dir: 'libs', include: ['*.jar'])
30 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
31 | exclude group: 'com.android.support', module: 'support-annotations'
32 | })
33 | compile 'com.android.support:appcompat-v7:25.3.1'
34 | compile 'com.github.bumptech.glide:glide:3.8.0'
35 | testCompile 'junit:junit:4.12'
36 | }
37 |
38 | //./gradlew clean build generateRelease
39 | apply from: 'https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle'
--------------------------------------------------------------------------------
/library/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /home/hb/Android/Sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Uncomment this to preserve the line number information for
20 | # debugging stack traces.
21 | #-keepattributes SourceFile,LineNumberTable
22 |
23 | # If you keep the line number information, uncomment this to
24 | # hide the original source file name.
25 | #-renamesourcefileattribute SourceFile
26 |
--------------------------------------------------------------------------------
/library/src/androidTest/java/com/master/glideimageview/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.master.glideimageview;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.master.glideimageview.test", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/library/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/library/src/main/java/com/master/glideimageview/GlideImageView.java:
--------------------------------------------------------------------------------
1 | package com.master.glideimageview;
2 |
3 | import android.app.Application;
4 | import android.content.Context;
5 | import android.content.res.TypedArray;
6 | import android.net.Uri;
7 | import android.support.annotation.Nullable;
8 | import android.support.v7.widget.AppCompatImageView;
9 | import android.util.AttributeSet;
10 | import android.view.Gravity;
11 | import android.view.ViewGroup;
12 | import android.view.ViewParent;
13 | import android.widget.FrameLayout;
14 | import android.widget.ProgressBar;
15 |
16 | import com.bumptech.glide.Glide;
17 | import com.bumptech.glide.RequestManager;
18 | import com.bumptech.glide.load.resource.drawable.GlideDrawable;
19 | import com.bumptech.glide.request.RequestListener;
20 | import com.bumptech.glide.request.target.Target;
21 |
22 | import java.io.File;
23 | import java.net.URL;
24 |
25 | /**
26 | * Developed By Pankaj Sharma
27 | * https://github.com/pankaj89/
28 | *
29 | * GlideImageView used to show progress bar while loading image from server.
30 | */
31 | public class GlideImageView extends AppCompatImageView implements RequestListener {
32 |
33 | ProgressBar progressBar;
34 | private boolean showProgressBar;
35 |
36 | private int errorRes;
37 | private Application applicationContext;
38 |
39 | public void setApplicationContext(Application applicationContext) {
40 | this.applicationContext = applicationContext;
41 | }
42 |
43 | private int placeHolderRes;
44 |
45 | public GlideImageView(Context context) {
46 | super(context);
47 | }
48 |
49 | public GlideImageView(Context context, @Nullable AttributeSet attrs) {
50 | super(context, attrs);
51 | init(attrs);
52 | }
53 |
54 | public GlideImageView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
55 | super(context, attrs, defStyleAttr);
56 | init(attrs);
57 | }
58 |
59 | private void init(AttributeSet attrs) {
60 |
61 | final TypedArray typedArray = getContext().obtainStyledAttributes(attrs, R.styleable.GlideImageView);
62 | if (typedArray.hasValue(R.styleable.GlideImageView_show_progress)) {
63 | showProgressBar = typedArray.getBoolean(R.styleable.GlideImageView_show_progress, true);
64 | // int style = typedArray.getResourceId(R.styleable.GlideImageView_progress_bar_style, android.R.attr.progressBarStyleSmall);
65 | progressBar = new ProgressBar(getContext(), attrs, android.R.attr.progressBarStyleSmall);
66 | // progressBar.setVisibility(GONE);
67 | }
68 |
69 | if (typedArray.hasValue(R.styleable.GlideImageView_error_res)) {
70 | errorRes = typedArray.getResourceId(R.styleable.GlideImageView_error_res, 0);
71 | }
72 | if (typedArray.hasValue(R.styleable.GlideImageView_placeholder_res)) {
73 | placeHolderRes = typedArray.getResourceId(R.styleable.GlideImageView_placeholder_res, 0);
74 | }
75 | }
76 |
77 | public void setErrorRes(int errorRes) {
78 | this.errorRes = errorRes;
79 | }
80 |
81 | public void setPlaceHolderRes(int placeHolderRes) {
82 | this.placeHolderRes = placeHolderRes;
83 | }
84 |
85 | @Override
86 | protected void onAttachedToWindow() {
87 | super.onAttachedToWindow();
88 | if (showProgressBar && progressBar.getParent() == null) {
89 | ViewParent viewGroupParent = getParent();
90 | if (viewGroupParent != null && viewGroupParent instanceof ViewGroup) {
91 |
92 | ViewGroup parent = (ViewGroup) viewGroupParent;
93 |
94 | if (!(parent instanceof FrameLayout) || (getLayoutParams().width != FrameLayout.LayoutParams.MATCH_PARENT)
95 | ||
96 | (getLayoutParams().height != FrameLayout.LayoutParams.MATCH_PARENT)) {
97 |
98 | FrameLayout frameLayout = new FrameLayout(getContext());
99 | int position = parent.indexOfChild(this);
100 |
101 | parent.removeView(this);
102 | frameLayout.addView(this);
103 |
104 | progressBar.setLayoutParams(new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.CENTER));
105 | frameLayout.addView(progressBar);
106 | frameLayout.setLayoutParams(getLayoutParams());
107 | parent.addView(frameLayout, position);
108 |
109 | } else {
110 | int position = parent.indexOfChild(this);
111 | parent.addView(progressBar, position + 1);
112 | ViewGroup.LayoutParams layoutParams = progressBar.getLayoutParams();
113 | layoutParams.width = FrameLayout.LayoutParams.WRAP_CONTENT;
114 | layoutParams.height = FrameLayout.LayoutParams.WRAP_CONTENT;
115 | if (layoutParams instanceof FrameLayout.LayoutParams)
116 | ((FrameLayout.LayoutParams) layoutParams).gravity = Gravity.CENTER;
117 | }
118 | // }
119 | }
120 | }
121 | }
122 |
123 | static RequestManager glide;
124 |
125 | public static RequestManager getGlide(Context context) {
126 | if (glide == null) {
127 | glide = Glide.with(context);
128 | }
129 | return glide;
130 | }
131 |
132 | public void loadImageUrl(String stringUrl) {
133 | if (progressBar != null)
134 | progressBar.setVisibility(VISIBLE);
135 | getGlide(getMyContext()).load(stringUrl).placeholder(placeHolderRes).error(errorRes).listener(this).dontAnimate().into(this);
136 | }
137 |
138 | public void load(String string) {
139 | if (progressBar != null)
140 | progressBar.setVisibility(VISIBLE);
141 | getGlide(getMyContext()).load(string).placeholder(placeHolderRes).error(errorRes).listener(this).dontAnimate().into(this);
142 | }
143 |
144 | private Context getMyContext() {
145 | if (applicationContext != null) return applicationContext;
146 | return getContext();
147 | }
148 |
149 | public void load(Uri uri) {
150 | if (progressBar != null)
151 | progressBar.setVisibility(VISIBLE);
152 | getGlide(getMyContext()).load(uri).placeholder(placeHolderRes).error(errorRes).listener(new RequestListener() {
153 | @Override
154 | public boolean onException(Exception e, Uri model, Target target, boolean isFirstResource) {
155 | hideProgress();
156 | return false;
157 | }
158 |
159 | @Override
160 | public boolean onResourceReady(GlideDrawable resource, Uri model, Target target, boolean isFromMemoryCache, boolean isFirstResource) {
161 | hideProgress();
162 | return false;
163 | }
164 | }).dontAnimate().into(this);
165 | }
166 |
167 | public void load(File file) {
168 | if (progressBar != null)
169 | progressBar.setVisibility(VISIBLE);
170 | getGlide(getMyContext()).load(file).placeholder(placeHolderRes).error(errorRes).listener(new RequestListener() {
171 | @Override
172 | public boolean onException(Exception e, File model, Target target, boolean isFirstResource) {
173 | hideProgress();
174 | return false;
175 | }
176 |
177 | @Override
178 | public boolean onResourceReady(GlideDrawable resource, File model, Target target, boolean isFromMemoryCache, boolean isFirstResource) {
179 | hideProgress();
180 | return false;
181 | }
182 | }).dontAnimate().into(this);
183 | }
184 |
185 | public void load(Integer resourceId) {
186 | if (progressBar != null)
187 | progressBar.setVisibility(VISIBLE);
188 | getGlide(getMyContext()).load(resourceId).placeholder(placeHolderRes).error(errorRes).listener(new RequestListener() {
189 | @Override
190 | public boolean onException(Exception e, Integer model, Target target, boolean isFirstResource) {
191 | hideProgress();
192 | return false;
193 | }
194 |
195 | @Override
196 | public boolean onResourceReady(GlideDrawable resource, Integer model, Target target, boolean isFromMemoryCache, boolean isFirstResource) {
197 | hideProgress();
198 | return false;
199 | }
200 | }).dontAnimate().into(this);
201 | }
202 |
203 | public void load(URL url) {
204 | if (progressBar != null)
205 | progressBar.setVisibility(VISIBLE);
206 | getGlide(getMyContext()).load(url).placeholder(placeHolderRes).error(errorRes).listener(new RequestListener() {
207 | @Override
208 | public boolean onException(Exception e, URL model, Target target, boolean isFirstResource) {
209 | hideProgress();
210 | return false;
211 | }
212 |
213 | @Override
214 | public boolean onResourceReady(GlideDrawable resource, URL model, Target target, boolean isFromMemoryCache, boolean isFirstResource) {
215 | hideProgress();
216 | return false;
217 | }
218 | }).dontAnimate().into(this);
219 | }
220 |
221 | public void load(byte[] model, final String id) {
222 | if (progressBar != null)
223 | progressBar.setVisibility(VISIBLE);
224 | getGlide(getMyContext()).load(model, id).placeholder(placeHolderRes).error(errorRes).listener(new RequestListener() {
225 | @Override
226 | public boolean onException(Exception e, byte[] model, Target target, boolean isFirstResource) {
227 | return false;
228 | }
229 |
230 | @Override
231 | public boolean onResourceReady(GlideDrawable resource, byte[] model, Target target, boolean isFromMemoryCache, boolean isFirstResource) {
232 | return false;
233 | }
234 | }).dontAnimate().into(this);
235 | }
236 |
237 | public void load(byte[] model) {
238 | if (progressBar != null)
239 | progressBar.setVisibility(VISIBLE);
240 | getGlide(getMyContext()).load(model).placeholder(placeHolderRes).error(errorRes).listener(new RequestListener() {
241 | @Override
242 | public boolean onException(Exception e, byte[] model, Target target, boolean isFirstResource) {
243 | hideProgress();
244 | return false;
245 | }
246 |
247 | @Override
248 | public boolean onResourceReady(GlideDrawable resource, byte[] model, Target target, boolean isFromMemoryCache, boolean isFirstResource) {
249 | hideProgress();
250 | return false;
251 | }
252 | }).dontAnimate().into(this);
253 | }
254 |
255 |
256 | @Override
257 | public boolean onException(Exception e, String model, Target target, boolean isFirstResource) {
258 | if (progressBar != null)
259 | progressBar.setVisibility(GONE);
260 | return false;
261 | }
262 |
263 | @Override
264 | public boolean onResourceReady(GlideDrawable resource, String model, Target target, boolean isFromMemoryCache, boolean isFirstResource) {
265 | if (progressBar != null)
266 | progressBar.setVisibility(GONE);
267 | return false;
268 | }
269 |
270 | public void hideProgress() {
271 | if (progressBar != null)
272 | progressBar.setVisibility(GONE);
273 | }
274 |
275 | public void showProgress() {
276 | if (progressBar != null)
277 | progressBar.setVisibility(VISIBLE);
278 | }
279 | }
280 |
--------------------------------------------------------------------------------
/library/src/main/main.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankaj89/GlideImageView/5fccdc9379bae17d1300eb44c545d9d37f728372/library/src/main/main.zip
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxxhdpi/no_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pankaj89/GlideImageView/5fccdc9379bae17d1300eb44c545d9d37f728372/library/src/main/res/drawable-xxxhdpi/no_image.png
--------------------------------------------------------------------------------
/library/src/main/res/values/attrs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/library/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | library
3 |
4 |
--------------------------------------------------------------------------------
/library/src/test/java/com/master/glideimageview/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.master.glideimageview;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app', ':library'
2 |
--------------------------------------------------------------------------------