香血海

<?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"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal"
    tools:context="fi.vtt.nubotest.Main4Activity">

  <ImageView
      android:layout_marginTop="10dp"
     android:layout_marginLeft="110dp"
      android:src="@mipmap/ic_launcher"
      android:layout_width="40dp"
      android:layout_height="40dp" />
  <RelativeLayout
      android:layout_marginLeft="10dp"
      android:layout_marginTop="20dp"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content">

      <TextView
          android:id="@+id/tv"
          android:textColor="#999999"
          android:textSize="14sp"
          android:text="向雪梅"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" />
      <LinearLayout
          android:layout_below="@+id/tv"
          android:orientation="horizontal"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content">
          <ImageView
          android:layout_marginTop="5dp"
          android:id="@+id/iv2"
          android:src="@mipmap/ic_launcher"
          android:layout_width="12dp"
          android:layout_height="11dp" />

      <TextView
          android:id="@+id/tv_100"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="100积分(赠)"
          android:textColor="#FD3737"
          android:textSize="12sp" />
      </LinearLayout>

  </RelativeLayout>
    <LinearLayout
        android:layout_marginLeft="20dp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">
    <ImageView
        android:id="@+id/iv3"
        android:layout_marginTop="10dp"
        android:src="@mipmap/ic_launcher"
        android:layout_width="12dp"
        android:layout_height="12dp" />
    <TextView
        android:layout_marginTop="10dp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="12sp"
        android:layout_toRightOf="@id/iv3"
        android:text="20"/>
    </LinearLayout>
    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">
    <ImageView
        android:layout_marginRight="20dp"
       android:layout_alignParentRight="true"
        android:layout_marginTop="10dp"
        android:src="@mipmap/ic_launcher"
        android:layout_width="12dp"
        android:layout_height="12dp" />
    </RelativeLayout>
</LinearLayout>

猜你喜欢

转载自blog.csdn.net/chenjie0932/article/details/81164396