Last active
October 15, 2023 01:41
-
-
Save axiel7/f1ce53274c3a503f1a544ed0ac7b4120 to your computer and use it in GitHub Desktop.
Compose View Android Studio code template
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
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME} | |
#end | |
#parse("File Header.java") | |
import androidx.compose.runtime.Composable | |
import androidx.compose.ui.tooling.preview.Preview | |
@Composable | |
fun ${NAME}() { | |
} | |
@Preview | |
@Composable | |
fun ${NAME}Preview() { | |
${NAME}() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A code template for easily creating new compose views, similar to the Xcode SwiftUI View template.
Put this in
Settings
->Editor
->File and Code Templates
->+