Skip to content

Instantly share code, notes, and snippets.

View sieleemmanuel's full-sized avatar
👨‍💻

Siele Emmanuel sieleemmanuel

👨‍💻
View GitHub Profile
@Faisal-FS
Faisal-FS / MainActivity.kt
Created March 7, 2025 02:40
Jetpack Compose OTP Screen With Animations – Code & Resources
/* 10 Min To Create The PERFECT Jetpack Compose OTP Screen With Animations – Code & Resources
This Gist contains the essential code and resources mentioned in my YouTube tutorial:
Watch the full video tutorial here: https://bit.ly/4ia6Dvq
*/
import android.os.Bundle
import androidx.activity.ComponentActivity
@sc0rch
sc0rch / MainActivity.java
Created July 9, 2016 01:45
Clear focus on touch outside for all EditText inputs.
public class MainActivity extends Activity
// ... any code
/**
* Clear focus on touch outside for all EditText inputs.
*/
@Override
public boolean dispatchTouchEvent(MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_DOWN) {
View v = getCurrentFocus();