val displayFontFamily: FontFamily
@Composable
get() = FontFamily(
Font(Res.font.league_spartan, weight = FontWeight.Normal)
)
val bodyFontFamily: FontFamily
@Composable get() = FontFamily(
Font(Res.font.lato_black, weight = FontWeight.Black),
val infiniteTransition = rememberInfiniteTransition(label = "background")
val targetOffset = with(LocalDensity.current) {
1_000.dp.toPx()
}
val offset by infiniteTransition.animateFloat(
initialValue = 0F,
targetValue = targetOffset,
animationSpec = infiniteRepeatable(
tween(50_000, easing = LinearEasing),
@OptIn(ExperimentalMaterial3Api::class)
@Composable
private fun EditableNameTimeView(
viewModel: TodayViewModel,
location: Location,
onEdit: ((Location) -> Unit),
onDelete: ((Location) -> Unit)
) {
val dismissState = rememberSwipeToDismissBoxState(
actual fun openUrlInBrowser(url: String) {
val intent = Intent(Intent.ACTION_VIEW).apply {
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
data = Uri.parse(url)
}
AppContext.get().startActivity(intent)
}
AnimatedVisibility(
visible = collapsed,
enter = fadeIn(animationSpec = tween(durationMillis = 500)),
exit = fadeOut(animationSpec = tween(durationMillis = 300)),
)
AnimatedVisibility(
visible = collapsed,
enter = slideInVertically(initialOffsetY = { -it }),
class SecurityDtoToModelMapper @Inject constructor(
private val securityDataProvider: SecurityDataProvider,
private val securityAssetClassDtoToModelMapper: SecurityAssetClassDtoToModelMapper,
private val securityDividendPolicyDtoToModelMapper: SecurityDividendPolicyDtoToModelMapper,
private val securityEsgRatingDtoToModelMapper: SecurityEsgRatingDtoToModelMapper,
private val securityTopHoldingDtoToModelMapper: SecurityTopHoldingDtoToModelMapper,
private val securityPerformancePointDtoToModelMapper: SecurityPerformancePointDtoToModelMapper,
private val securityTagsDtoToModelMapper: SecurityTagsDtoToModelMapper,
private val currencyDtoToModelMapper: CurrencyDtoToModelMapper,
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
internal class DrawableMarginSpan : LeadingMarginSpan { | |
private val bitmap: Bitmap | |
private val verticalAlignment: Int | |
private val padding: Int | |
private val totalHeight = 0 | |
constructor(bitmap: Bitmap, pad: Int, verticalAlignment: Int) { | |
this.bitmap = bitmap | |
padding = pad | |
this.verticalAlignment = verticalAlignment |
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
package com.csjbot.mobileshop.util; | |
import android.annotation.SuppressLint; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.BlurMaskFilter; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Path; |
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
val lineThickness = 4F | |
Modifier | |
.fillMaxWidth() | |
.border( | |
width = lineThickness.dp, | |
color = Color.Red, | |
shape = drawOutlineButtonLine(OutlineButtonLine.Top, lineThickness) | |
) | |
private fun drawOutlineButtonLine(outlineButtonLine: OutlineButtonLine, lineThickness: Float): Shape { |
NewerOlder