UnzipTask is an extension for AsyncTask which focus on Unzipping file and extract it to the one you've provided.
Implementation
UnzipTask.Builder builder = new UnzipTask.Builder();
builder.setZipFile(zipFile);
abstract class BaseBottomSheetDialogFragment : BottomSheetDialogFragment() { | |
@LayoutRes | |
protected abstract fun layoutRes(): Int | |
protected abstract fun onViewCreated() | |
private var sheetBehavior: BottomSheetBehavior<*>? = null | |
private var peekHeight = 0 | |
private var expandedOffset = 0 |
# rm all files | |
git rm -r --cached . | |
# add all files as per new .gitignore | |
git add . | |
# now, commit for new .gitignore to apply | |
git commit -m ".gitignore is now working" | |
Delete uncommited items in branch | |
git reset --hard |
public class SpacingItemDecoration extends RecyclerView.ItemDecoration { | |
private static final String TAG = "SPACE"; | |
private int spacing; | |
public SpacingItemDecoration(int spacing) { | |
this.spacing = spacing; | |
} |
public abstract class SimpleCollapsingToolbarCallback implements AppBarLayout.OnOffsetChangedListener { | |
public enum State { | |
EXPANDED, | |
COLLAPSED | |
} |
import android.os.AsyncTask; | |
import android.util.Log; | |
import java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
public class IPFinderTask extends AsyncTask<Void, Void, String> { |
public class DynamicHeightImageView extends ImageView { | |
private double mHeightRatio; | |
public DynamicHeightImageView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
} | |
public DynamicHeightImageView(Context context) { | |
super(context); |
public class PercentViewPager extends ViewPager { | |
private int WIDTH_PERCENT = Integer.MIN_VALUE; | |
private int HEIGHT_PERCENT = Integer.MIN_VALUE; | |
public PercentViewPager(@NonNull Context context) { | |
super(context); | |
init(context, null); | |
} |
public class PercentImageView extends AppCompatImageView { | |
private int WIDTH_PERCENT = Integer.MIN_VALUE; | |
private int HEIGHT_PERCENT = Integer.MIN_VALUE; | |
public PercentImageView(Context context) { | |
super(context); | |
init(context, null); | |
} |