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 comtas.com.zoolvibs.network; | |
import javax.annotation.Nullable; | |
/** | |
* Created by m7mdra on 23/12/17. | |
*/ | |
public interface Resource<T> { |
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 comtas.com.zoolvibs.helper; | |
import android.support.animation.DynamicAnimation; | |
import android.support.animation.SpringAnimation; | |
import android.view.View; | |
/** | |
* Created by m7mdra on 08/10/17. | |
*/ |
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 comtas.com.zoolvibs.helper; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
import android.util.Log; | |
/** |
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 test.com.bttest; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.TextView; |
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.reqabaweb.healthcontrol.ui.activity; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.os.AsyncTask; | |
import android.os.Bundle; | |
import android.print.PrintAttributes; | |
import android.print.PrintDocumentAdapter; | |
import android.print.PrintJob; | |
import android.print.PrintManager; |
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
private void createWebPrintJob(WebView webView) { | |
PrintManager printManager = (PrintManager) getSystemService(Context.PRINT_SERVICE); | |
PrintDocumentAdapter printAdapter = webView.createPrintDocumentAdapter(); | |
String jobName = getString(R.string.app_name) + " Document"; | |
PrintJob printJob = printManager.print(jobName, printAdapter, | |
new PrintAttributes.Builder().build()); |
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.reqabaweb.healthcontrol.ui; | |
import android.os.SystemClock; | |
import android.support.v7.widget.SearchView; | |
import android.util.Log; | |
public abstract class DebouncedQueryTextListener implements SearchView.OnQueryTextListener { | |
private static final String TAG = "DebouncedOnQueryTextLis"; |
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
// ... | |
Request request = new Request.Builder() | |
.url(url) | |
.tag(TAG) | |
.build(); | |
// Cancel previous call(s) if they are running or queued | |
OkHttpUtils.cancelCallWithTag(client, TAG); | |
// New call |
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 be.digitalia.common.widgets; | |
import android.content.Context; | |
import android.os.Build; | |
import android.os.Parcel; | |
import android.os.Parcelable; | |
import android.support.annotation.NonNull; | |
import android.support.v4.util.LongSparseArray; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.v7.view.ActionMode; |
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.reqabaweb.healthcontrol; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
/** | |
* Created by allaeem on 4/7/2017. |