MaterialList
MaterialList copied to clipboard
How to get card details using mListView object ?
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 ?