Skip to content

android 7.0 图片中的数据显示不出来? #13

@haibinpark

Description

@haibinpark

我再使用WheelView的过程中,出现android 7.0 ui兼容性问题。滚轮中的数据显示不出来。同样的代码在7.0以下能够正常使用
代码片段
布局文件

           <com.jp.wheelview.WheelView
            app:itemNumber="24"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/hour"
            style="@style/wheelViewStyle"
            app:lineColor="@color/timeline_color"
            app:bottomLineColor="@color/timeline_color"
            />
        <View
            android:layout_width="@dimen/base20dp"
            android:layout_height="match_parent"
            android:background="#e7e7e7"
            android:visibility="gone"/>
        <com.jp.wheelview.WheelView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:itemNumber="60"
            android:id="@+id/minute"
            style="@style/wheelViewStyle"
            app:lineColor="@color/timeline_color"
            app:bottomLineColor="@color/timeline_color"

            />

java代码

       mWheelHour = (WheelView) findViewById(R.id.hour);
       mWheelMinute = (WheelView) findViewById(R.id.minute);
       mWheelHour.setOnSelectListener(mHourListener);
       mWheelMinute.setOnSelectListener(mMinuteListener);
       mWheelHour.setData(getHourData());
       [mWheelMinute.setData(getMinuteData());

m9_picture2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions