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" />更多相关文章
随机推荐