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 MainActivity extends AppCompatActivity { | |
public static final String FILENAME = "myfile"; | |
private EditText mInput; | |
private TextView mFromInternal; | |
private TextView mFromExternal; | |
private Switch mIsExternalSwitch; | |
private Button mDelete; | |
@Override |
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
////////////////////// | |
РАБОТАЕТ | |
<com.google.android.material.textfield.TextInputLayout | |
android:id="@+id/layout_name_dialog" | |
android:layout_width="match_parent" | |
android:layout_height="60dp" | |
android:layout_marginBottom="@dimen/margin_all_pages" | |
android:gravity="center" | |
app:layout_constraintTop_toBottomOf="@+id/layout_select"> |
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
class OrderAdapter(val orderClicked: (order: GetUserAllOrderResponse.Order) -> Unit) : RecyclerView.Adapter<RecyclerView.ViewHolder>(){ | |
var ordersList: List<OrderListItem> = listOf() | |
fun setData(list: List<OrderListItem>) { | |
ordersList = list | |
notifyDataSetChanged() |
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"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | |
<solid android:color="#FFFFFF"/> | |
<stroke android:width="3dp" android:color="#B1BCBE" /> | |
<corners android:radius="10dp"/> | |
<padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" /> | |
</shape> |
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
class CallVideVOIP(private val orderId: String, private val typeInOutCall: String) : SupportAppScreen() { | |
override fun getActivityIntent(context: Context?): Intent { | |
return Intent(context, VoiceCVActivity::class.java).putExtra(KEY_TO_CALL, orderId).putExtra(KEY_TYPE_CALL,typeInOutCall) | |
} | |
} |
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
"timeSlotDTOs": { | |
"1572638400000": [ | |
{ | |
"specialtyId": 13, | |
"slotDate": 1572638400000, | |
"timeString": "19:00", | |
"slotId": 59066, | |
"slotTime": "2019-11-02T15:00:00.000+0000", | |
"timeUnix": 1572721200 | |
}, |
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.content.Context | |
import android.view.Window | |
import ge.redmed.patient.R | |
class LoaderDialog(private var context: Context) { | |
private lateinit var dialog: Dialog | |
fun showDialog() { |
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
# App.class | |
val customTypeAdapter = object : CustomTypeAdapter<Long> { | |
override fun decode(@NotNull value: CustomTypeValue<*>): Long { | |
return value.toString().toLong() | |
} | |
@NotNull | |
override fun encode(@NotNull value: Long): CustomTypeValue<*> { | |
return CustomTypeValue.GraphQLNumber(value) | |
} |
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
/** | |
* To be semantically or contextually correct, maybe change the name | |
* and signature of this function to something like: | |
* | |
* private void showBackButton(boolean show) | |
* Just a suggestion. | |
*/ | |
private void enableViews(boolean enable) { | |
// To keep states of ActionBar and ActionBarDrawerToggle synchronized, |
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
class SMSReceiver : BroadcastReceiver() { | |
companion object { | |
private const val VALIDATE_MASK = ".*Maliava auth code:? ([0-9]{6}).*" | |
} | |
private var listener: WeakReference<OnSMSReceiveListener>? = null | |
fun setListener(listener: OnSMSReceiveListener) { | |
this.listener = listener.weak() |
NewerOlder