xml - Trouble in Layout design Android -


i have created android application in have problem in layout design.

please see layout in link-

https://lh6.googleusercontent.com/wjrlolp6pvokskrbdfh6vmmdqftsgt10ezhd-a1h_glblyojjvrf8byjspxmw752sgttlzih7ihwtqo=w1342-h479

my code:

<linearlayout     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:orientation="vertical" >      <relativelayout         android:layout_width="match_parent"         android:layout_height="wrap_content" >          <imageview             android:id="@+id/product_image"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:background="@drawable/product" />          <textview             android:id="@+id/price"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignbottom="@+id/product_image"             android:layout_alignparentright="true"             android:text="price"             android:textappearance="?android:attr/textappearancelarge" />     </relativelayout>      <imageview         android:id="@+id/user_image"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:src="@drawable/userimage" />      <linearlayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:gravity="right"         android:orientation="vertical" >          <textview             android:id="@+id/distance"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:text="distance"             android:textappearance="?android:attr/textappearancemedium" />          <textview             android:id="@+id/time"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:text="time"             android:textappearance="?android:attr/textappearancemedium" />     </linearlayout> </linearlayout> 

thanks.

    <imageview     android:id="@+id/user_image"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:paddingleft="5dp"     android:layout_margintop="-25dp"     android:src="@drawable/ic_launcher" /> 

change user image xml above code , try


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -