Skip to content

Instantly share code, notes, and snippets.

View GerganaT's full-sized avatar
🏠
Working from home

Gergana Toshkova GerganaT

🏠
Working from home
  • Bulgaria
View GitHub Profile
@GerganaT
GerganaT / Function.java
Created February 15, 2024 15:11 — forked from danielgomezrico/Function.java
Android - check if running on main thread
public boolean runningOnMainThread() {
return Looper.getMainLooper().getThread() == Thread.currentThread();
}
@GerganaT
GerganaT / BankApp.kt
Created February 10, 2023 22:43
Internship Task 0
package com.example.myapplication
// please note - the below is a pseudo-code and in a "normal" app all the interfaces and classes
// would be in different folders and/or packages
// also,the menu navigation could be a bit more sophisticated and in a real app I'd also add
// password handling logic
// interfaces to handle different types of banking operations
interface AccountOperationsHandler {
@GerganaT
GerganaT / LoadingButton.kt
Created September 9, 2021 15:35
loading button code in progress
package com.udacity
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.RectF
import android.util.AttributeSet
import android.view.View
import kotlin.properties.Delegates