【问题标题】:Elevation on SlidingTabLayout in pre lollipop device棒棒糖前设备中 SlidingTabLayout 的高度
【发布时间】:2016-08-14 04:01:53
【问题描述】:

“海拔”使滑动标签布局在棒棒糖设备上运行良好,但标签将在棒棒糖之前的设备上消失。我想知道有没有什么方法可以为棒棒糖之前的设备在 SlidingTabLayout 上添加高程。

这是我的 .XML 文件:

<RelativeLayout
    android:id="@+id/tab_frame_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_below="@+id/divider_line">

    <!-- Sliding Tab Layout -->
    <com.luulla.mobile.android.library.SlidingTabLayout
        android:id="@+id/tabs"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:elevation="1.5dp"
        android:background="#FFFFFF"/>

    <!-- Add ViewPager -->
    <android.support.v4.view.ViewPager
        android:id="@+id/pager"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:layout_below="@android:id/tabs">
    </android.support.v4.view.ViewPager>

</RelativeLayout>

【问题讨论】:

    标签: pagerslidingtabstrip android-sliding android-elevation


    【解决方案1】:

    我通过here 找到了解决方案,将“android=elevation=”替换为可绘制的 xml 文件。

    【讨论】:

      猜你喜欢
      • 2017-07-08
      • 1970-01-01
      • 2016-02-11
      • 2018-09-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多