This file contains hidden or 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 Foundation | |
| import UIKit | |
| class SATextField: UITextField { | |
| override init(frame: CGRect) { | |
| super.init(frame: frame) | |
| setUpField() | |
| } | |
This file contains hidden or 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.NonNull; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.view.GestureDetector; | |
| import android.view.MotionEvent; | |
| import android.view.View; | |
| public class RecyclerTouchListener implements RecyclerView.OnItemTouchListener { | |
| private GestureDetector gestureDetector; |
This file contains hidden or 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 String getDisplayableTime(long value) { | |
| SimpleDateFormat formatter = new SimpleDateFormat("hh:mm a", Locale.getDefault()); | |
| Long mDate = System.currentTimeMillis(); | |
| if (mDate > value) { | |
| long difference = mDate - value; | |
| final long seconds = difference / 1000; | |
| final long minutes = seconds / 60; | |
| final long hours = minutes / 60; | |
| final long days = hours / 24; | |
| final long months = days / 31; |
This file contains hidden or 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
| #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | |
| import android.content.Context | |
| import android.view.LayoutInflater | |
| import android.view.View | |
| import android.view.ViewGroup | |
| import android.widget.BaseAdapter | |
| import android.widget.TextView | |
| class ${NAME}(context: Context, list: List<${LIST_MODEL}>) : BaseAdapter() { |
This file contains hidden or 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
| #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | |
| import android.support.v7.widget.RecyclerView | |
| import android.view.LayoutInflater | |
| import android.view.View | |
| import android.view.ViewGroup | |
| class ${NAME}(private val list: List<${LIST_MODEL}>) : RecyclerView.Adapter<${NAME}.CustomViewHolder>() { | |
| override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): CustomViewHolder { |
This file contains hidden or 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
| #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | |
| import android.support.v7.widget.RecyclerView | |
| import android.view.LayoutInflater | |
| import android.view.View | |
| import android.view.ViewGroup | |
| class ${NAME}(private val list: List<${LIST_MODEL}>) : RecyclerView.Adapter<${NAME}.CustomViewHolder>() { | |
| override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): CustomViewHolder { |