linearlayout 的布局,动态分配位置

2017-11-27  本文已影响7人  SunnyLYummy

<LinearLayout

xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:tools="http://schemas.android.com/tools"

android:id="@+id/activity_loading"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:orientation="vertical"

android:background="@mipmap/loading_bg"

android:gravity="center_horizontal"

>

android:id="@+id/card_id"

android:src="@mipmap/loading_card_default"

android:layout_width="wrap_content"

android:layout_height="match_parent"

android:scaleType="centerCrop"

android:layout_marginBottom="15dp"

android:layout_marginTop="10dp"

android:layout_weight="1"

/>

android:id="@+id/share_content"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:text="位置不是天气,是明天的生活."

android:gravity="center"

android:textSize="11sp"

android:layout_weight="0"

/>

android:id="@+id/share_source"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:text="2wwwwwwwww11122i4ww"

android:gravity="right"

android:textSize="10sp"

android:layout_weight="0"

/>

<LinearLayout>

上一篇 下一篇

猜你喜欢

热点阅读