Skip to content

Instantly share code, notes, and snippets.

@zurche
Created September 11, 2023 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zurche/2cc3e4c04d5d61daa9eff167ba13d1d9 to your computer and use it in GitHub Desktop.
Save zurche/2cc3e4c04d5d61daa9eff167ba13d1d9 to your computer and use it in GitHub Desktop.
Ticker Name Composable
@Composable
private fun TickerName(name: String = "Apple Inc.", tickerName: String = "AAPL") {
Column(
modifier = Modifier
.padding(start = 10.dp, end = 5.dp)
.width(80.dp)
) {
Text(
text = name,
style = MaterialTheme.typography.labelMedium,
fontWeight = FontWeight.Bold,
color = Color.Black,
overflow = TextOverflow.Ellipsis,
maxLines = 2
)
Text(text = tickerName, style = MaterialTheme.typography.labelSmall, color = Color.Gray)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment