Skip to content

Instantly share code, notes, and snippets.

@gb103
Created March 12, 2021 06:19
Show Gist options
  • Save gb103/53bc522c22882e20a558d3ad51b5f97e to your computer and use it in GitHub Desktop.
Save gb103/53bc522c22882e20a558d3ad51b5f97e to your computer and use it in GitHub Desktop.
import android.os.Handler;
public class LrcPosition {
Handler handler = new Handler();
handler.postDelayed(runnable, 1000);
Runnable runnable = new Runnable() {
public void run() {
int currentPosition = player.getCurrentPosition;
for(int a=0; a<rowList.length; a++) {
if(rowList.get(a).time > currentPosition && rowList.get(a+1).time < currentPosition) {
highlightingRow = a;
return;
} else {
continue;
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment