Created
March 12, 2021 06:19
-
-
Save gb103/53bc522c22882e20a558d3ad51b5f97e to your computer and use it in GitHub Desktop.
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
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