Textview in Gridview

  • Replies:2
  • OpenNot stickiedUnanswered
  • Forum posts: 10

Jul 20, 2019, 10:09:16 AM via Website

Hai,

Iam binding Gridview(using SQLite database) using TextView and get set Property.Here is the Below code of Textview.

android:columnCount="3"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical">

<TextView
    android:id="@+id/textView1"
    android:layout_width="200dp"
    android:layout_height="50dp"
    android:layout_gravity="center_vertical"
    android:textColor="@color/colorPrimary"
    android:singleLine="false"
    />

<TextView
    android:id="@+id/textView2"
    android:layout_width="200dp"
    android:layout_height="50dp"
    android:layout_gravity="center_vertical"
    android:singleLine="false"
    android:textColor="@color/colorPrimary" />

<TextView
    android:id="@+id/textView3"
    android:layout_width="200dp"
    android:layout_height="50dp"
    android:layout_alignParentEnd="true"
    android:layout_gravity="center_vertical"
    android:layout_marginEnd="0dp"
    android:singleLine="false"
    android:textColor="@color/colorPrimary" />

But iam getting Output like this

Manjula aadish
Sample sample1
test test1

But i need result like this:
Manjula Sample Test
Aadish Sample1 Test1

I tried a lot But i cant find solution.Can anyone pls help me to find solution for this...

— modified on Jul 20, 2019, 10:10:20 AM

Reply
  • Forum posts: 2

Jul 20, 2019, 10:16:48 AM via Website

I believe there are many who feel the same satisfaction as I read this article! I hope you will continue to have such articles to share with everyone.

Helpful?
Reply
  • Forum posts: 2

Jul 20, 2019, 10:17:11 AM via Website

I just got to this amazing site not long ago. I was actually captured with the piece of resources you have got here. Big thumbs up for making such wonderful blog page!

Helpful?
Reply