zoukankan      html  css  js  c++  java
  • Android padding 和margin

    <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        
        android:orientation="vertical">
        <ImageView
            android:src="@drawable/ocean"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:scaleType="centerCrop"
            android:layout_marginBottom="0dp" />
        <TextView
            android:text="You're invited!"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textColor="@android:color/white"
            android:textSize="45sp"
            android:paddingLeft="8dp"
            android:background="#009688"/>
    
        <TextView
            android:text="Bonfire at the beach"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textColor="@android:color/white"
            android:paddingLeft="8dp"
            android:textSize="24sp"
            android:background="#009688"/>
    
    </LinearLayout>
    View Code
  • 相关阅读:
    PTA 7-6 列出连通集(深搜+广搜)
    TZOJ 2648 小希的迷宫(并查集)
    HDU 3342 Legal or Not(拓扑排序)
    哈夫曼树
    mst
    [THUWC2017]随机二分图
    视察
    [bzoj3274]Circle
    [bzoj3273]liars
    求导相关
  • 原文地址:https://www.cnblogs.com/superxuezhazha/p/9410827.html
Copyright © 2011-2022 走看看