- To avoid using style attributes in layout files see this file
for example this layout file
<Text android:layout_height="wrap_content" android:layout_width="match_parent"
android:text="Heading: Account Summary"
@Composable | |
fun ContestItem( | |
contestModel: ContestModel, | |
onAddToCalendar: (Event) -> Unit = {} | |
) { | |
if (contestModel.name != "ProjectEuler+") Box { | |
Card( | |
modifier = Modifier.padding(bottom = 8.dp).fillMaxWidth(), | |
elevation = 2.dp, |
/** | |
* creating custom design system colors | |
* we can also add attributes like buttonColor, headerColor, topBarColor etc. | |
*/ | |
class DlsColors( | |
primary: Color, | |
onPrimary: Color, | |
background: Color, | |
onBackground: Color, |
<Text
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:text="Heading: Account Summary"
@Composable | |
private fun LoadingDot( | |
color: Color, | |
modifier: Modifier = Modifier, | |
){ | |
Box( | |
modifier = modifier | |
.clip(shape = CircleShape) | |
.background(color = color) | |
) |
#!/usr/bin/env bash | |
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions | |
echo 'source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc | |
git clone https://github.com/zsh-users/zsh-completions.git ~/.zsh/zsh-completions | |
fpath=(~/.zsh/zsh-completions/src $fpath) | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting | |
echo "source ~/.zsh/zsh-syntax-highlighting" >> ~/.zshrc |
Mifos.DesignSystem.TextStyle.Heading
Mifos.DesignSystem.TextStyle.SubHeading
Mifos.DesignSystem.TextStyle.MainFocusText
Mifos.DesignSystem.TextStyle.BodyLarger
Mifos.DesignSystem.TextStyle.Body
Mifos.DesignSystem.TextStyle.Label
Mifos.DesignSystem.TextStyle.Link
Mifos.DesignSystem.TextStyle.PrimaryColorBody
Mifos.DesignSystem.TextStyle.PrimaryColorBodyLarger
This project focused on implementing a UI library that will be consumed by Mifos Android apps(android-client, mifos-mobile, mobile-wallet) and implement new designs using it across the customer-facing apps providing a consistent and familiar look and feel.
package com.example | |
import android.content.Intent | |
import android.os.Build | |
import android.provider.Settings | |
import android.provider.Settings.EXTRA_BIOMETRIC_AUTHENTICATORS_ALLOWED | |
import androidx.activity.result.ActivityResultLauncher | |
import androidx.biometric.BiometricManager | |
import androidx.biometric.BiometricPrompt | |
import androidx.core.content.ContextCompat |
import android.annotation.SuppressLint | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.clickable | |
import androidx.compose.foundation.layout.Arrangement | |
import androidx.compose.foundation.layout.Box | |
import androidx.compose.foundation.layout.Column | |
import androidx.compose.foundation.layout.Row | |
import androidx.compose.foundation.layout.Spacer | |
import androidx.compose.foundation.layout.fillMaxWidth | |
import androidx.compose.foundation.layout.height |