写的比较粗糙,初学android,凑凑合合,马马虎虎的看吧

效果图如下:




<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:paddingLeft="@dimen/activity_horizontal_margin"    android:paddingRight="@dimen/activity_horizontal_margin"    android:paddingTop="@dimen/activity_vertical_margin"    android:paddingBottom="@dimen/activity_vertical_margin"    tools:context="com.example.infoandroidnew.app.TestActivity">    <LinearLayout        android:id="@+id/ly1"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:orientation="horizontal"        android:gravity="center_vertical"        tools:context="com.example.infoandroidnew.app.TruckActivity">        <ImageView            android:layout_width="50dp"            android:layout_height="50dp"            android:src="@drawable/back"            android:paddingLeft="15dp"/>        <RelativeLayout            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:gravity="right"            android:padding="10dp">            <TextView                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:text="111111"/>        </RelativeLayout>        <RelativeLayout            android:layout_width="match_parent"            android:layout_height="wrap_content"            android:gravity="right"            android:padding="10dp">            <TextView                android:id="@+id/txtabc"                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:text="bbbb"/>            <TextView                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:text="ccccccccccccccccccccccc"                android:layout_below="@+id/txtabc"/>        </RelativeLayout>    </LinearLayout>    <LinearLayout        android:id="@+id/ly2"        android:layout_below="@+id/ly1"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:orientation="horizontal"        android:gravity="center_vertical"        android:layout_marginTop="20dp"        tools:context="com.example.infoandroidnew.app.TruckActivity">        <ImageView            android:layout_width="50dp"            android:layout_height="50dp"            android:src="@drawable/back"            android:paddingLeft="15dp"/>        <RelativeLayout            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:gravity="right"            android:padding="10dp">            <TextView                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:text="222222"/>        </RelativeLayout>        <RelativeLayout            android:layout_width="match_parent"            android:layout_height="wrap_content"            android:gravity="right"            android:padding="10dp">            <TextView                android:id="@+id/txtabcd"                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:text="bbbb"/>            <TextView                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:text="ccccccccccccccccccccccc"                android:layout_below="@+id/txtabcd"/>        </RelativeLayout>    </LinearLayout>    <LinearLayout        android:layout_below="@+id/ly2"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:orientation="horizontal"        android:gravity="center_vertical"        android:layout_marginTop="20dp"        tools:context="com.example.infoandroidnew.app.TruckActivity">        <ImageView            android:layout_width="50dp"            android:layout_height="50dp"            android:src="@drawable/back"            android:paddingLeft="15dp"/>        <RelativeLayout            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:gravity="right"            android:padding="10dp">            <TextView                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:text="333333"/>        </RelativeLayout>        <RelativeLayout            android:layout_width="match_parent"            android:layout_height="wrap_content"            android:gravity="right"            android:padding="10dp">            <TextView                android:id="@+id/txtabcde"                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:text="bbbb"/>            <TextView                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:text="ccccccccccccccccccccccc"                android:layout_below="@+id/txtabcde"/>        </RelativeLayout>    </LinearLayout></RelativeLayout>



更多相关文章

  1. ch08 Android(安卓)Intent
  2. Android(安卓)自定义加载view(菊花效果)
  3. Android应用开发——界面开发之常用组件的属性介绍
  4. 致Android初学者:如何学习Android开发
  5. android 自定义ratingbar 图片显示不全的解决方案
  6. Android-Layout布局
  7. android上,实现直接在屏幕上显示点击位置,方便调试。
  8. 初学Android之小随笔2--SurfaceView
  9. 初学Android的surfaceView

随机推荐

  1. Android(安卓)开发包(SDK、JRE、Eclipse
  2. 关于android LinearLayout的比例布局
  3. Gridview的stretchMode详解附自动宽度
  4. Android进阶——Android事件分发机制之di
  5. android设置头像
  6. Android系统自带样式(@android:style/)
  7. Gridview的stretchMode详解附自动宽度
  8. Android系统自带样式(@android:style/)
  9. android TextView实现跑马灯效果
  10. [置顶] Android(Lollipop/5.0) Material