Trying to reproduce some elements of Material Design 2 Shrine project on Android
https://material.io/design/material-studies/shrine.html#about-shrine
The Shrine app provides an online marketplace featuring lifestyle and fashion items from promoted labels. Shrine’s brand aesthetic is modern, elegant, and sophisticated, and is the unifying concept behind the various brands and products showcased.
The underlying theme of Shrine’s interaction model is that of three overlapping sheets. The bottom sheet has the navigation and branding elements; the middle sheet has the main content; and the top sheet has the shopping cart.
I used ShapeOfView to allow views to have a custom shape,
https://github.com/florent37/ShapeOfView
implementation 'com.github.florent37:shapeofview:1.0.7'
Here, to remove my view's corners, using CutCornerView
<com.github.florent37.shapeofview.shapes.CutCornerView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:elevation="3dp"
app:shape_cutCorner_bottomLeftSize="12dp"
app:shape_cutCorner_bottomRightSize="12dp"
app:shape_cutCorner_topLeftSize="12dp"
app:shape_cutCorner_topRightSize="12dp">
<android.support.constraint.ConstraintLayout
android:id="@+id/addToCart"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/white"
android:foreground="?attr/selectableItemBackground">
<ImageView ... />
<TextView ... />
<com.github.florent37.shapeofview.shapes.CutCornerView
android:id="@+id/middleSheet"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="16dp"
android:elevation="4dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/menu"
app:shape_cutCorner_topLeftSize="42dp"
tools:showIn="@layout/activity_main">
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white">
Fiches Plateau Moto : https://www.fiches-plateau-moto.fr/
原文地址:MDC-103 Flutter: Material Theming with Color, Shape, Elevation, and Type (Flutter) 原文作者:codelabs.developers.google.com 译文出自:掘金翻译计划 本文永久链接:github.com/xitu/gold-m… 译者:DevMcryYu 校对者:PrinceChou, Feng
原文地址:MDC-104 Flutter: Material Advanced Components (Flutter) 原文作者:codelabs.developers.google.com 译文出自:掘金翻译计划 本文永久链接:github.com/xitu/gold-m… 译者:DevMcryYu 校对者:iceytea 1. 介绍 Material 组件(MDC)帮助开发者实现 Mater
Shrine 是提供给 Ruby 应用的文件上传工具包:简单,灵活,高性能,安全,支持直接上传。 基础示例: require "shrine"require "shrine/storage/file_system"Shrine.storages[:file_system] = Shrine::Storage::FileSystem.new("uploads")uploader = Shrine.n
我想通过Shrine上载器gem上载一个xls文件(Libreoffice),但是我得到了一个回滚错误,比如文件类型必须是一个..(在我的initializers/Shrine.rb中有mime类型)。这是我的神殿 这是我的shrine_uploader.rb 我可以上传xlsx文件,但是我不明白为什么我不能上传xls文件,即使mime类型是application/vnd.ms-excel。 谢谢