This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android" | |
android:shareInterpolator="false"> | |
<translate | |
android:duration="300" | |
android:fromXDelta="0%" | |
android:fromYDelta="0%" | |
android:toXDelta="-100%" | |
android:toYDelta="0%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android" | |
android:shareInterpolator="false"> | |
<translate | |
android:duration="300" | |
android:fromXDelta="100%" | |
android:fromYDelta="0%" | |
android:toXDelta="0%" | |
android:toYDelta="0%" | |
android:zAdjustment="top"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class JCal { | |
static int[] gms = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; | |
static int[] gmsl = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; | |
public static YearMonthDay jalaliToGregorian(int year, int month, int day) { | |
int a, b, doy_j, gd, gy, gm = 0; | |
int d_4 = (year + 1) % 4; | |
if (month < 7) { | |
doy_j = ((month - 1) * 31) + day; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.imnumbers.numbers.coreutil.baseadapter; | |
import android.content.Context; | |
import android.support.annotation.LayoutRes; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import com.imnumbers.numbers.coreutil.util.MLog; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.imnumbers.numbers.coreutil.baseadapter; | |
import android.content.Context; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
/** | |
* Created by nt on 2/20/16. | |
*/ | |
public abstract class ViewHolderParent<T> extends RecyclerView.ViewHolder { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String fuzzyTime(long time) { | |
Context c = MyApplication.getContext(); | |
Date date = new Date(time * 1000); | |
Calendar cal = Calendar.getInstance(); | |
cal.setTime(date); | |
Calendar now = Calendar.getInstance(); | |
now.setTime(new Date()); | |
int diffYear = now.get(Calendar.YEAR) - cal.get(Calendar.YEAR); | |
int diffMonth = now.get(Calendar.MONTH) - cal.get(Calendar.MONTH); | |
int diffDay = now.get(Calendar.DAY_OF_MONTH) - cal.get(Calendar.DAY_OF_MONTH); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
09-17 14:54:37.223 9993-30092/com.farsitel.bazaar E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1 | |
Process: com.farsitel.bazaar, PID: 9993 | |
java.lang.RuntimeException: An error occurred while executing doInBackground() | |
at android.os.AsyncTask$3.done(AsyncTask.java) | |
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java) | |
at java.util.concurrent.FutureTask.setException(FutureTask.java) | |
at java.util.concurrent.FutureTask.run(FutureTask.java) | |
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rxdownloaduploadmanager; | |
import android.Manifest; | |
import android.os.Handler; | |
import android.support.annotation.MainThread; | |
import android.support.annotation.RequiresPermission; | |
import android.support.v4.util.ArrayMap; | |
import java.io.File; | |
import java.io.FileOutputStream; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.support.annotation.LayoutRes; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import java.lang.ref.WeakReference; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.arioo.androidapp.helpers; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
/** | |
* Created by hamed on 3/5/17.in stars | |
*/ | |
public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener { |