Skip to content

Instantly share code, notes, and snippets.

View lhwdev's full-sized avatar
๐Ÿ“–

์ดํ˜„์šฐ lhwdev

๐Ÿ“–
  • SKKU Computer Science and Engineering (์„ฑ๊ท ๊ด€๋Œ€ํ•™๊ต ์†Œํ”„ํŠธ์›จ์–ดํ•™๊ณผ)
  • ๋Œ€ํ•œ๋ฏผ๊ตญ ์ˆ˜์›
  • X @lhwdev6
View GitHub Profile
@c5inco
c5inco / WearPreviewUtility.kt
Last active February 22, 2022 16:24
Small utility for framing a Compose Wear app in a watch bezel, whether round, square, or rectangular.
import android.content.res.Configuration
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.Alignment
package com.backpackingmap.backpackingmap.ui.view
import androidx.compose.foundation.background
import androidx.compose.foundation.interaction.FocusInteraction
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.interaction.PressInteraction
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier