done with channel screen mockup

1.2-legacy
geeksville 2020-02-17 20:17:08 -08:00
rodzic bb2b11264d
commit 8311eb1a4d
2 zmienionych plików z 30 dodań i 2 usunięć

Wyświetl plik

@ -24,11 +24,17 @@ fun ChannelContent(channel: Channel = Channel("Default", 7)) {
style = typography.h4
)
Row {
Row(modifier = LayoutGravity.Center) {
val image = imageResource(id = R.drawable.qrcode)
Container(modifier = LayoutGravity.Center + LayoutSize.Min(320.dp, 320.dp)) {
Container(modifier = LayoutGravity.Center + LayoutSize.Min(200.dp, 200.dp)) {
DrawImage(image = image)
}
VectorImage(
id = R.drawable.ic_twotone_share_24,
modifier = LayoutGravity.Center + LayoutPadding(left = 8.dp),
tint = palette.onBackground
)
}
Text(

Wyświetl plik

@ -0,0 +1,22 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M18,5m-1,0a1,1 0,1 1,2 0a1,1 0,1 1,-2 0"
android:fillAlpha=".3"/>
<path
android:fillColor="@android:color/white"
android:pathData="M6,12m-1,0a1,1 0,1 1,2 0a1,1 0,1 1,-2 0"
android:fillAlpha=".3"/>
<path
android:fillColor="@android:color/white"
android:pathData="M18,19.02m-1,0a1,1 0,1 1,2 0a1,1 0,1 1,-2 0"
android:fillAlpha=".3"/>
<path
android:fillColor="@android:color/white"
android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92s2.92,-1.31 2.92,-2.92c0,-1.61 -1.31,-2.92 -2.92,-2.92zM18,4c0.55,0 1,0.45 1,1s-0.45,1 -1,1 -1,-0.45 -1,-1 0.45,-1 1,-1zM6,13c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1zM18,20.02c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1z"/>
</vector>