-1

I am a creating cv Android app but there are empty after TextView inside CardView

 below image  

screenshot of ui

below my xml code where I have implemented CardView as parent child as LinearLayout.

below my xml code where I have implemented CardView as parent child as LinearLayout.

    <?xml version="1.0" encoding="utf-8"?>

    <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">


            <ImageView
                android:id="@+id/imageView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_margin="30dp"
                android:scaleType="fitXY" />


            <Space
                android:layout_width="50dp"
                android:layout_height="20dp" />


            <TextView
                android:id="@+id/about"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="16dp"
                android:layout_marginRight="250dp"
                android:gravity="center"
                android:text="@string/about_me"
                android:textSize="16sp"
                android:textStyle="bold" />

            <TextView
                android:id="@+id/introduction"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_margin="16dp"
                android:layout_marginTop="16dp"
                android:gravity="start" />

        </LinearLayout>

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

1 Answers1

1

remove this line from imageView

 android:layout_margin="30dp"

and give

 android:layout_marginTop="30dp"
 android:layout_marginRight="30dp"
 android:layout_marginLeft="30dp"
pratik vekariya
  • 1,105
  • 1
  • 8
  • 14