Could not find com.android.tools.build:gradle:2.2.0 -here is the solution

In case You had problem with: Error:Could not find com.android.tools.build:gradle:2.2.0. Searched in the following locations: https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.0/gradle-2.2.0.pom https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.0/gradle-2.2.0.jar Required by: :YOUR_PROJECT:unspecified Don't forget modify root build.gradle and add jcenter() It would…

List url of utils worth to use during developing android

Immediately Invoked Functions-JSFiddle http://jsfiddle.net/ Remove Duplicate Lines http://textmechanic.com/Remove-Duplicate-Lines.html Codota-Find great android API usage examples http://android.codota.com/ CC Search http://search.creativecommons.org/ Google Translate http://translate.google.com/ Online XML entity decoder|Coder's Toolbox http://coderstoolbox.net/string/#!encoding=xml&action=decode&charset=us_ascii RegExr:Learn,Build,&Test RegEx http://www.regexr.com/…

Return result from fragment to fragment

//run dialog fragment in fragment Fragment fragmentByTag = getFragmentManager().findFragmentByTag(DownloadDialogFragment.TAG); if (fragmentByTag == null) { CustomDialog customDialog = new CustomDialog(); customDialog.setTargetFragment(currentFragment, REQUEST_DOWNLOAD_FRAGMENT); customDialog.show(getFragmentManager(), CustomDialog.TAG); } //in dialog, init result to onActivityResult…

Horizontal progressbar with custom color

activity_main.xml <progressbar android:id="@+id/progressBar" style="?android:progressBarStyleHorizontal" android:layout_width="match_parent" android:layout_height="1dp" android:layout_margin="0dp" android:max="100" android:padding="0dp" tools:progress="40" android:progressDrawable="@drawable/progress_drawable" app:layout_collapseMode="pin"/> MainActivity.java ProgressBar mProgressBar = (ProgressBar) findViewById(R.id.progressBar); //somewhere when scrollin mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrolled(RecyclerView recyclerView, int…