Android Layout positioning incorrectly -


i'm trying create layout list child. here should like: enter image description here

but when text name large displaced like: enter image description here

i'm using following code

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="35dp"     android:background="@color/text_blue"     android:orientation="horizontal"     android:weightsum="51" >      <textview         android:id="@+id/tranid"         android:layout_width="fill_parent"         android:layout_height="34dp"         android:layout_marginbottom="1dp"         android:layout_marginright="1dp"         android:layout_weight="11"         android:background="@color/app_bg"         android:gravity="center_vertical|center_horizontal"         android:lines="2"         android:text="@string/tranid"         android:textsize="9sp" />      <textview         android:id="@+id/name"         android:layout_width="fill_parent"         android:layout_height="34dp"         android:layout_marginbottom="1dp"         android:layout_marginright="1dp"         android:layout_weight="9"         android:background="@color/app_bg"         android:gravity="center_vertical|center_horizontal"         android:lines="2"         android:text="@string/name"         android:textsize="9sp" />      <textview         android:id="@+id/number"         android:layout_width="fill_parent"         android:layout_height="34dp"         android:layout_marginbottom="1dp"         android:layout_marginright="1dp"         android:layout_weight="10"         android:background="@color/app_bg"         android:gravity="center_vertical|center_horizontal"         android:lines="2"         android:text="@string/phone"         android:textsize="9sp" />      <textview         android:id="@+id/date"         android:layout_width="fill_parent"         android:layout_height="34dp"         android:layout_marginbottom="1dp"         android:layout_marginright="1dp"         android:layout_weight="10"         android:background="@color/app_bg"         android:gravity="center_vertical|center_horizontal"         android:lines="2"         android:text="@string/date"         android:textsize="9sp" />      <textview         android:id="@+id/amount"         android:layout_width="fill_parent"         android:layout_height="34dp"         android:layout_marginbottom="1dp"         android:layout_weight="11"         android:background="@color/app_bg"         android:gravity="center_vertical|center_horizontal"         android:lines="2"         android:text="@string/amount"         android:textsize="9sp" />  </linearlayout> 

i need emergency. me?

give layout_height below textview.enter image description here

android:layout_height="fill_parent" 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -