Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

folding does not work, if i use switch or toggle switch #33

Closed
khemrajsharma opened this issue Nov 10, 2016 · 1 comment
Closed

folding does not work, if i use switch or toggle switch #33

khemrajsharma opened this issue Nov 10, 2016 · 1 comment
Labels

Comments

@khemrajsharma
Copy link

Dear sir,
I use your example of folding list view. If i put a switch on title view then it does not unfold at all. You are using textview as button in your code. Sir but i need to use switch or toggle. help me please.
thank you,
Khemraj
I am using title layout code as below:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/title_layout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_below="@id/content_layout"
    android:background="@color/bgContent"
    android:baselineAligned="false"
    android:orientation="horizontal"
    android:visibility="visible">

    <!-- LEFT TITLE PART -->
    <!-- min 130 max 250 -->
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:background="@color/colorPrimary"
        android:orientation="horizontal"
        android:paddingBottom="5dp"
        android:paddingLeft="5dp"
        android:paddingRight="5dp"
        android:paddingTop="5dp">

        <TextView
            android:id="@+id/name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_weight="5"
            android:text="KHEMRAJ SHARMA"
            android:textColor="@android:color/white"
            android:textSize="20sp" />

        <Switch
            android:id="@+id/switch_mlatch"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_gravity="center_vertical"
            android:layout_weight="1"
             />


    </LinearLayout>
</LinearLayout>
@oleg-vasiliev
Copy link
Contributor

image
image

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

No branches or pull requests

2 participants