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

How to get card details using mListView object ? #151

Open
kalanidhiSBU opened this issue Feb 14, 2017 · 0 comments
Open

How to get card details using mListView object ? #151

kalanidhiSBU opened this issue Feb 14, 2017 · 0 comments

Comments

@kalanidhiSBU
Copy link

kalanidhiSBU commented Feb 14, 2017

                       mListView.getAdapter().addAtStart(new Card.Builder(this)
                        .setTag("BASIC_IMAGE_BUTTONS_CARD" )
                        .setDismissible()
                        .withProvider(new CardProvider())
                        .setLayout(R.layout.card_new)
                                  ddAction(R.id.left_text_button, new TextViewAction(this)
                                .setText("left")
                                .setTextResourceColor(R.color.black_button))
                        .addAction(R.id.right_text_button, new TextViewAction(SimManagment.this)
                                .setText("right")
                                .setTextResourceColor(R.color.orange_button))
                        .addAction(R.id.three_text_button, new TextViewAction(SimManagment.this)
                                .setText("right")
                                .setTextResourceColor(R.color.orange_button))
                        .endConfig()
                        .build());

XML

            <?xml version="1.0" encoding="utf-8"?>
           <com.dexafree.materialList.card.CardLayout
             xmlns:android="http://schemas.android.com/apk/res/android"
                    xmlns:tools="http://schemas.android.com/tools"
                            style="@style/MainLayout">

<android.support.v7.widget.CardView
    xmlns:card_view="http://schemas.android.com/apk/res-auto"
    android:id="@+id/cardView"
    style="@style/Material_Card_View"
    card_view:cardCornerRadius="@dimen/card_corner_radius"
    card_view:cardElevation="@dimen/card_elevation">
    <LinearLayout
        android:orientation="horizontal"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content">


        <LinearLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <EditText style="@style/Material_Action"
                android:id="@+id/mobile_no"
                android:inputType="number"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="Mobile Number"
                tools:text="my"
               />
            <EditText style="@style/Material_Action"
                android:id="@+id/sim_no"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:inputType="number"
                tools:text="Action 1"
                android:hint="Sim Number"
                />


            <LinearLayout
                android:orientation="horizontal"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:paddingLeft="8dp">

                <TextView style="@style/Material_Action"
                    android:id="@+id/left_text_button"
                    tools:text="Action 1"/>

                <TextView style="@style/Material_Action"
                    android:id="@+id/right_text_button"
                    tools:text="Action 2"/>
                <TextView style="@style/Material_Action"
                    android:id="@+id/three_text_button"
                    tools:text="Action 2"/>
            </LinearLayout>

        </LinearLayout>
    </LinearLayout>

</android.support.v7.widget.CardView>

  </com.dexafree.materialList.card.CardLayout>

I have add two text box inside the card view , when Click the that card How can I get the two values ?
Can any one please help ?

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

No branches or pull requests

1 participant