This file contains hidden or 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
const [imageList, setImageList] = useState<Monster[]>([]); | |
const [message, setMessage] = useState<string | null>(null); | |
useEffect(() => { | |
(async () => { | |
try { | |
const res = await fetch( | |
'https://api.github.com/repos/Krostar5793/itky-quest/contents/dot-works', | |
{ | |
method: 'GET', |
This file contains hidden or 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
plugins { | |
alias(libs.plugins.android.application) | |
alias(libs.plugins.jetbrains.kotlin.android) | |
+ alias(libs.plugins.ksp.gradle.plugin) | |
+ alias(libs.plugins.compose.compiler) | |
} | |
android { | |
namespace = "com.example.roomenvsetup" | |
compileSdk = 34 |
This file contains hidden or 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
@Composable | |
fun HistoryIcon(iconColor: Color, iconSize: Dp) { | |
Icon( | |
painter = painterResource(id = R.drawable.history_icon), | |
contentDescription = "History icon", | |
tint = iconColor, | |
modifier = Modifier.size(iconSize) | |
) | |
} |
This file contains hidden or 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
@Composable | |
fun TitleScreenBackgroundImage() { | |
Box(modifier = Modifier.fillMaxSize()) { | |
Image( | |
\* | |
res/drawable/配下にtitle_screen_background_image.pngを追加 | |
(ファイル名には大文字など使ってはならない文字があるので注意) | |
*\ | |
painter = painterResource(id = R.drawable.title_screen_background_image), | |
contentDescription = "Title screen background image", |
This file contains hidden or 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
<activity | |
android:name=".MainActivity" | |
android:screenOrientation="landscape" // 横画面設定 | |
android:screenOrientation="portrait" // 縦画面設定 | |
> | |
</activity> |