Skip to content

Instantly share code, notes, and snippets.

View vibin's full-sized avatar

Vibin reddy vibin

View GitHub Profile
class MyCustomAdapter extends BaseAdapter {
Context c;
ArrayList<FetchTask.BillyData> mData;
MyCustomAdapter(Context c) {
this.c = c;
Log.d(getClass().getName(), "This is the adapter constructor!");
Log.d(getClass().getName(), "size of mData in Adapter"+mData.size());
}
RequestQueue req;
ImageLoader.ImageCache imageCache;
ImageLoader imageLoader;
final int DEFAULT_CACHE_SIZE = 16 * 1024 * 1024; // for DiskBasedCache
private static final String DEFAULT_CACHE_DIR = "volley";
private void createImageLoader() {
if (imageCache == null) {
imageCache = new BitmapLruCache();
imageLoader = new ImageLoader(Volley.newRequestQueue(this), imageCache);
effective.
Power
لُلُصّبُلُلصّبُررً ॣ ॣh ॣ ॣ
@vibin
vibin / OpenInSafari.scpt
Created January 20, 2017 05:51
Open Chrome's Current URL in Safari
tell application "Google Chrome"
set visibleUrl to get URL of active tab of window 1
end tell
tell application "Safari"
open location visibleUrl
activate
end tell
regCoverPhoto.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Crop.pickImage(getActivity(), EditProfileDialog.this, REQUEST_CODE_PICK_COVER);
}
});
regUserProfile.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Crop.pickImage(getActivity(), EditProfileDialog.this, REQUEST_CODE_PICK_PROFILE);
import android.databinding.Observable
import android.databinding.ObservableField
class NonNullObservableField<T : Any>(
value: T, vararg dependencies: Observable
) : ObservableField<T>(*dependencies) {
init {
set(value)
}
@vibin
vibin / SketchSystems.spec
Created September 26, 2018 11:05 — forked from lynaghk/SketchSystems.spec
Search Bar*
Search Bar*
Inactive*
focused -> Active
Active
canceled -> Inactive
typed -> Text Entry
Empty*
@vibin
vibin / SketchSystems.spec
Last active September 26, 2018 11:33
Product Page
Product Page
Catalog Reviews
rating distribution
top review images
top reviews
view -> Reviews List
Supplier Reviews
catalog reviews empty state
view -> Reviews List
No Reviews
@vibin
vibin / SketchSystems.spec
Last active September 26, 2018 15:33
Catalog Results
Catalog Results
Sort Updated
Filters Updated
Empty State
Sort BottomBar
Default Sort Order
on click -> Sort
Filters BottomBar
---------------------------- PROCESS STARTED (26941) for package io.vibin.crashlytics1828test ----------------------------
2022-09-03 18:58:55.888 26941-26941 Compatibil...geReporter io.vibin.crashlytics1828test D Compat change id reported: 171979766; UID 10587; state: ENABLED
2022-09-03 18:58:55.895 26941-26941 ziparchive io.vibin.crashlytics1828test W Unable to open '/data/app/~~RN-iioensnmbaHOPRzWJbg==/io.vibin.crashlytics1828test--huOkzjDuGeLqtVxsaGEnA==/base.dm': No such file or directory
2022-09-03 18:58:55.895 26941-26941 ziparchive io.vibin.crashlytics1828test W Unable to open '/data/app/~~RN-iioensnmbaHOPRzWJbg==/io.vibin.crashlytics1828test--huOkzjDuGeLqtVxsaGEnA==/base.dm': No such file or directory
2022-09-03 18:58:56.031 26941-26941 GraphicsEnvironment io.vibin.crashlytics1828test V ANGLE Developer option for 'io.vibin.crashlytics1828test' set to: 'default'
2022-09-03 18:58:56.031 26941-26941 GraphicsEnvironment io.vibin.crashl