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.hse.parkingapp.ui.beta.screens.components.material3 | |
/* | |
* Copyright 2020 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.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
package ru.skillbox.custom_dialog_interface_tutorial | |
import android.app.Dialog | |
import android.content.Context | |
import android.os.Bundle | |
import android.view.View | |
import android.widget.EditText | |
import androidx.appcompat.app.AlertDialog | |
import androidx.appcompat.app.AppCompatDialogFragment |
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
This is now available at https://google.github.io/accompanist/drawablepainter/ |
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.example.app.widget // Change this to the actual packagename | |
import android.content.Context | |
import android.graphics.* | |
import android.util.AttributeSet | |
import android.util.DisplayMetrics | |
import android.view.ViewGroup | |
import androidx.core.content.ContextCompat | |
// import /*Package name of the app*/.R | |
import kotlin.math.roundToInt |