-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef2aeb7
commit ec1a642
Showing
23 changed files
with
1,193 additions
and
728 deletions.
There are no files selected for viewing
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
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
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
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
59 changes: 59 additions & 0 deletions
59
app/src/main/kotlin/dev/aaa1115910/bv/component/DevelopingTip.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package dev.aaa1115910.bv.component | ||
|
||
import androidx.compose.foundation.layout.Arrangement | ||
import androidx.compose.foundation.layout.Box | ||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.fillMaxSize | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import androidx.compose.ui.unit.dp | ||
import androidx.tv.material3.MaterialTheme | ||
import androidx.tv.material3.Text | ||
import dev.aaa1115910.bv.ui.theme.BVTheme | ||
|
||
@Composable | ||
fun DevelopingTip(modifier: Modifier = Modifier) { | ||
Column( | ||
modifier = modifier, | ||
horizontalAlignment = Alignment.CenterHorizontally, | ||
verticalArrangement = Arrangement.spacedBy(20.dp) | ||
) { | ||
Text( | ||
text = "\uD83D\uDEA7", | ||
style = MaterialTheme.typography.displayLarge | ||
) | ||
Text( | ||
text = "前方施工 请绕行", | ||
style = MaterialTheme.typography.titleLarge | ||
) | ||
} | ||
} | ||
|
||
@Composable | ||
fun DevelopingTipContent(modifier: Modifier = Modifier) { | ||
Box( | ||
modifier = modifier | ||
.fillMaxSize(), | ||
contentAlignment = Alignment.Center | ||
) { | ||
DevelopingTip() | ||
} | ||
} | ||
|
||
@Preview | ||
@Composable | ||
private fun DevelopingTipPreview() { | ||
BVTheme { | ||
DevelopingTip() | ||
} | ||
} | ||
|
||
@Preview(device = "id:tv_1080p") | ||
@Composable | ||
private fun DevelopingTipContentPreview() { | ||
BVTheme { | ||
DevelopingTipContent() | ||
} | ||
} |
Oops, something went wrong.