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.aintegrals.lsc21 | |
import com.google.gson.Gson | |
import com.google.gson.annotations.SerializedName | |
import java.net.HttpURLConnection | |
import java.net.URL | |
/* | |
* Complete the 'getArticleTitles' function below. |
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 var damageTypeAdapter: ArrayAdapter<String>? = null | |
private var deviceColorAdapter: ArrayAdapter<String>? = null | |
private var deviceModelsAdapter: ArrayAdapter<String>? = null | |
damageTypeAdapter = ArrayAdapter(this, R.layout.spinner_item, resources.getStringArray(array.huawei_faults)) | |
FirebaseFirestore.getInstance().collection("huawei").document("form_info").get().addOnCompleteListener { task -> | |
if (task.isSuccessful) { | |
val document = task.result | |
val map = document?.data | |
for (entry in map!!.entries) { |
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.repzo.repzo.utils | |
import android.content.res.Resources | |
import android.graphics.Bitmap | |
import android.graphics.Canvas | |
import android.graphics.Color | |
import android.graphics.Paint | |
import com.mazenrashed.printooth.data.DefaultPrinter | |
import com.mazenrashed.printooth.data.Printable | |
import com.repzo.repzo.R |
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.app.Dialog | |
import android.os.Bundle | |
import android.os.Handler | |
import android.view.animation.AlphaAnimation | |
import android.view.animation.Animation | |
import androidx.appcompat.widget.AppCompatTextView | |
import androidx.fragment.app.DialogFragment | |
import butterknife.BindView | |
import butterknife.ButterKnife | |
import com.repzo.repzo.R |
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
val query = FirebaseDatabase.getInstance() | |
.reference | |
.child("form_result") | |
.limitToLast(50) | |
val options = FirebaseRecyclerOptions.Builder<ModelFirebase>() | |
.setQuery(query, ModelFirebase::class.java) | |
.build() | |
val adapter = object : FirebaseRecyclerAdapter<ModelFirebase, HistoryActivity.ViewHolder>(options) { |
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
val frameAnimation: AnimationDrawable? = ivRay?.drawable as? AnimationDrawable? | |
frameAnimation?.callback = ivRay | |
frameAnimation?.setVisible(true, true) | |
frameAnimation?.start() |
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
/** | |
* Created by Yousef Nasr on 2018-Oct-11. | |
* Email :you96m@gmail.com | |
*/ | |
class FeedBackDialogAdapter(val options: RealmList<Feedback>) : RecyclerView.Adapter<RecyclerView.ViewHolder>() { | |
private var mClickListener: ItemClickListener? = null | |
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): 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
/** | |
* Created by Yousef Nasr on 2018-Oct-11. | |
* Email :you96m@gmail.com | |
*/ | |
@SuppressLint("CheckResult") | |
class FeedBackDialog(context: Context?, var callback: (String?) -> Unit) : AppCompatDialog(context), FeedBackDialogAdapter.ItemClickListener { | |
private val feedBackDao: FeedBackDao? by lazy { FeedBackDao() } | |
private var options = RealmList<Feedback>() |