【问题标题】:how to make curve toolbar and tablayout?如何制作曲线工具栏和tablayout?
【发布时间】:2019-03-16 14:18:00
【问题描述】:

我正在尝试制作这样的东西,但我做不到任何人都可以帮助我!

【问题讨论】:

    标签: android android-layout android-toolbar android-xml android-vectordrawable


    【解决方案1】:

    您可以使用ArcLayout 库。

    1. 添加依赖到 build.gradle(应用级别)

      编译'com.github.florent37:arclayout:1.0.3'

    2. 将 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 -->
      

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-17
      • 1970-01-01
      • 2019-02-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多