如何制作曲线工具栏和tablayout?
how to make curve toolbar and tablayout?
我正在尝试做这样的事情,但我做不到任何人都可以帮助我!
您可以使用 ArcLayout 库。
将依赖项添加到 build.gradle(应用级别)
编译'com.github.florent37:arclayout:1.0.3'
将 ArcLayout 添加到您的 xml 它可以使曲线在内部或外部,在您的情况下在内部,因此请使用此 app:arc_cropDirection="cropInside"
属性.
<com.github.florent37.arclayout.ArcLayout
android:layout_width="match_parent"
android:layout_height="200dp"
app:arc_cropDirection="cropInside"
app:arc_height="90dp"
app:arc_padding="30dp"
android:elevation="5dp"
>
<!--Your layout will be here to make toolbar -->
我正在尝试做这样的事情,但我做不到任何人都可以帮助我!
您可以使用 ArcLayout 库。
将依赖项添加到 build.gradle(应用级别)
编译'com.github.florent37:arclayout:1.0.3'
将 ArcLayout 添加到您的 xml 它可以使曲线在内部或外部,在您的情况下在内部,因此请使用此
app:arc_cropDirection="cropInside"
属性.<com.github.florent37.arclayout.ArcLayout android:layout_width="match_parent" android:layout_height="200dp" app:arc_cropDirection="cropInside" app:arc_height="90dp" app:arc_padding="30dp" android:elevation="5dp" > <!--Your layout will be here to make toolbar -->