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
@Preview() | |
@Composable | |
fun Card() { | |
var rotationX by remember { mutableStateOf(0f) } | |
var rotationY by remember { mutableStateOf(0f) } | |
Box( | |
Modifier | |
.fillMaxSize() | |
.background(Color.Black)) { | |
Box( |
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
fun AppCompatActivity.setStatusBarTransparent() { | |
window.decorView.systemUiVisibility = window.decorView.systemUiVisibility or View.SYSTEM_UI_FLAG_LAYOUT_STABLE or View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | |
setWindowFlag(this, WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, false) | |
window.statusBarColor = Color.TRANSPARENT | |
} | |
private fun setWindowFlag(activity: Activity, bits: Int, on: Boolean) { | |
val win = activity.window | |
val winParams = win.attributes | |
if (on) { |
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
function onFormSubmit(e){ | |
var email = e.namedValues['Email address'][0]; | |
var message = "Thank you for submiting your servay your gift will be send to you soon"; | |
sendEmail(email, message); | |
} | |
function sendEmail(email, message){ | |
MailApp.sendEmail(email, "whatever", message); | |
} |
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
class CallReceiver : PhonecallReceiver() { | |
override fun onIncomingCallStarted(ctx: Context, number: String?, start: Date) { | |
} | |
override fun onOutgoingCallStarted(ctx: Context, number: String?, start: Date) { | |
} | |
override fun onIncomingCallEnded(ctx: Context, number: String?, start: Date?, end: Date) { | |
} |
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
public class Layout_to_Image { | |
View _view; | |
Context _context; | |
Bitmap bMap; | |
public Layout_to_Image(Context context, View view) | |
{ | |
this._context=context; |
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
class FlowRadioGroup(context: Context) : RadioGroup(context) { | |
private var lineSpacing: Int = 0 | |
private var itemSpacing: Int = 0 | |
private var singleLine: Boolean = false | |
constructor (context: Context, attrs: AttributeSet) : this(context, attrs, 0) {} | |
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : this(context) { |
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
class FlowRadioGroup(context: Context) : RadioGroup(context) { | |
private var lineSpacing: Int = 0 | |
private var itemSpacing: Int = 0 | |
private var singleLine: Boolean = false | |
constructor (context: Context, attrs: AttributeSet) : this(context, attrs, 0) {} | |
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : this(context) { |