mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 21:35:59 +00:00
front end: motion system — gliding rail selection, unfolding sub-lists, page cascades, lifting tiles, session rise
The rail's selection is one pill that springs between rows; sub-lists unfold with their children staggering in. A page change sinks the old page out and cascades the new one in row by row over a blurred wash of the selection's own art. Tiles lift, ring and shine when the pad lands on them and pop a play badge; the launch button sweeps a sheen on focus and squashes on press. The session activity rises over the front end and sinks back on finish. Every duration follows the system animator scale, so 'no animations' in developer options snaps everything.
This commit is contained in:
1 parent
d343b6f859
commit
19514c32b8
6 files changed
+618
-170
No files matched your search
@@ -138,6 +138,12 @@ class MainActivity : ComponentActivity() {
|
||||
private var logsEnabled by mutableStateOf(true)
|
||||
private var showRoms by mutableStateOf(false)
|
||||
|
||||
/** The session surface rises over the front end instead of cutting to it. */
|
||||
override fun startActivity(intent: Intent?) {
|
||||
super.startActivity(intent)
|
||||
if (intent?.component?.className == SessionActivity::class.java.name) overridePendingTransition(R.anim.session_rise, R.anim.session_hold)
|
||||
}
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContent {
|
||||
|
||||
Reference in new issue
Block a user