Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

W/View: requestLayout() improperly called by org.lucasr.twowayview.TwoWayView #289

Open
vishnumohan345 opened this issue Sep 15, 2017 · 0 comments

Comments

@vishnumohan345
Copy link

vishnumohan345 commented Sep 15, 2017

I'm not able to scroll the TwoWayView and click in the list items.
when I create layout with TwoWayView I have warnings

W/View: requestLayout() improperly called by org.lucasr.twowayview.TwoWayView{491072b VFED..C.. .F....ID 10,92-710,609 #7f110153 app:id/exclusive_list} during layout: running second layout pass
W/View: requestLayout() improperly called by org.lucasr.twowayview.TwoWayView{491072b VFED..C.. .F...... 10,92-710,609 #7f110153 app:id/exclusive_list} during second layout pass: posting in next frame
W/View: requestLayout() improperly called by org.lucasr.twowayview.TwoWayView{491072b VFED..C.. .F....ID 10,92-710,609 #7f110153 app:id/exclusive_list} during layout: running second layout pass
W/View: requestLayout() improperly called by org.lucasr.twowayview.TwoWayView{491072b VFED..C.. .F...... 10,92-710,609 #7f110153 app:id/exclusive_list} during second layout pass: posting in next frame
W/View: requestLayout() improperly called by org.lucasr.twowayview.TwoWayView{491072b VFED..C.. .F....ID 10,92-710,609 #7f110153 app:id/exclusive_list} during layout: running second layout pass
W/View: requestLayout() improperly called by org.lucasr.twowayview.TwoWayView{491072b VFED..C.. .F...... 10,92-710,609 #7f110153 app:id/exclusive_list} during second layout pass: posting in next frame
W/View: requestLayout() improperly called by org.lucasr.twowayview.TwoWayView{491072b VFED..C.. .F....ID 10,92-710,609 #7f110153 app:id/exclusive_list} during layout: running second layout pass
W/View: requestLayout() improperly called by org.lucasr.twowayview.TwoWayView{491072b VFED..C.. .F...... 10,92-710,609 #7f110153 app:id/exclusive_list} during second layout pass: posting in next frame
W/View: requestLayout() improperly called by org.lucasr.twowayview.TwoWayView{491072b VFED..C.. .F....ID 10,92-710,609 #7f110153 app:id/exclusive_list} during layout: running second layout pass
W/View: requestLayout() improperly called by org.lucasr.twowayview.TwoWayView{491072b VFED..C.. .F...... 10,92-710,609 #7f110153 app:id/exclusive_list} during second layout pass: posting in next frame
W/View: requestLayout() improperly called by org.lucasr.twowayview.TwoWayView{491072b VFED..C.. .F....ID 10,92-710,609 #7f110153 app:id/exclusive_list} during layout: running second layout pass

and my layout is

<LinearLayout android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@android:color/white"
    android:orientation="vertical"
    xmlns:android="http://schemas.android.com/apk/res/android">

    <LinearLayout
        android:id="@+id/title_exclusive_container"
        android:layout_width="match_parent"
        android:layout_height="@dimen/dp41"
        android:background="@color/grey_200">

        <TextView
            android:id="@+id/title_exclusive"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_marginLeft="@dimen/dp17"
            android:layout_marginStart="@dimen/dp17"
            android:layout_weight="1"
            android:fontFamily="sans-serif-medium"
            android:text="@string/exclusive_deals"
            android:textColor="@color/simple_black"
            android:textSize="@dimen/sp16" />

        <TextView
            android:id="@+id/button_more_exclusive_deals"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_gravity="center_vertical"
            android:fontFamily="sans-serif-medium"
            android:gravity="center"
            android:paddingEnd="@dimen/dp17"
            android:paddingLeft="@dimen/dp10"
            android:paddingRight="@dimen/dp17"
            android:paddingStart="@dimen/dp10"
            android:text="@string/more"
            android:textAllCaps="true"
            android:textColor="@color/colorPrimary"
            android:textSize="@dimen/sp12"
            android:textStyle="bold" />
    </LinearLayout>

    <org.lucasr.twowayview.TwoWayView
        android:id="@+id/exclusive_list"
        style="@style/Categories"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_margin="@dimen/dp5"
        android:drawSelectorOnTop="false"
        android:listSelector="@color/simple_transparent" />


    <TextView
        android:id="@+id/title_all_deals"
        android:layout_width="match_parent"
        android:layout_height="@dimen/dp41"
        android:text="@string/all_deals"
        android:layout_gravity="center_vertical"
        android:background="@color/grey_200"
        android:gravity="center_vertical"
        android:paddingLeft="@dimen/dp17"
        android:fontFamily="sans-serif-medium"
        android:textColor="@color/simple_black"
        android:textSize="@dimen/sp16" />
</LinearLayout>

where orientation is horizontal

<style name="Categories">
        <item name="android:orientation">horizontal</item>
 </style>

How could i do to fix this problem?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant