[Solved] TextView Text Cutting

I have made some changes to your XML. Use this. <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” android:layout_width=”match_parent” android:layout_height=”match_parent” android:orientation=”vertical”> <android.support.v7.widget.CardView android:id=”@+id/quoteCard” android:layout_width=”match_parent” android:layout_height=”match_parent” android:layout_marginBottom=”@dimen/activity_horizontal_margin” android:layout_marginLeft=”@dimen/activity_horizontal_margin” android:layout_marginRight=”@dimen/activity_horizontal_margin” android:layout_marginTop=”4dp” android:background=”@color/colorAccent” android:elevation=”3dp” app:cardCornerRadius=”6dp”> <ImageView android:id=”@+id/cardBackground” android:layout_width=”match_parent” android:layout_height=”match_parent” android:background=”@color/colorAccent” android:scaleType=”fitXY” /> <LinearLayout android:id=”@+id/quoteCardActionView” android:layout_width=”match_parent” android:layout_height=”match_parent” android:background=”?attr/selectableItemBackground” android:gravity=”center” android:orientation=”vertical”> <TextView android:id=”@+id/textDetailQuote” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:gravity=”center” android:lineSpacingExtra=”8dp” android:text=”સફળતાની કિંમત હાર્ડ કામ છે, … Read more

[Solved] Cardview onclick opens a new activity

you can send id with Intent.putExtra and then get it with Intent.getIntExtra in your activity and provide your data in activity Here is an example that sending id and index to MyActtivity if youre using ListView: AdapterView.OnItemClickListener onItemClickListener = new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Intent … Read more

[Solved] How to implement on click in cardview + recycler view with firebase?

please take a look at my snipshed code, in my case i use this way to implement setonlclick in recycleview item and send value to other activity holder.setName(userName); holder.setUserImage(userThumb, getContext()); holder.mView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent chatIntent = new Intent(getContext(), Tampung_chatActivity.class); chatIntent.putExtra(“user_id”, list_user_id); chatIntent.putExtra(“user_name”, userName); startActivity(chatIntent); } }); full code you … Read more