美文网首页
linearlayout 的布局,动态分配位置

linearlayout 的布局,动态分配位置

作者: sunny635533 | 来源:发表于2017-11-27 16:49 被阅读7次

<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>

相关文章

网友评论

      本文标题:linearlayout 的布局,动态分配位置

      本文链接:https://www.haomeiwen.com/subject/hmudbxtx.html