zoukankan      html  css  js  c++  java
  • android 分享一个画好的布局

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:orientation="horizontal"
                  android:paddingLeft="15dp"
                  android:paddingRight="15dp"
    
                  android:paddingBottom="10dp"
            >
    
        <ImageView
                android:layout_width="92dp"
                android:layout_height="117dp"
                android:id="@+id/a_imageView"
                android:scaleType="centerCrop"
                android:layout_marginRight="10dp"
    
    
                />
    
        <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                >
    
    
            <TextView
                    android:text="二叉树的最大路径和"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:id="@+id/a_title"
                    android:textSize="30sp"
    
                    >
    
            </TextView>
    
    
            <TextView
                    android:text="题目描述
    给定一个二叉树,请计算节点值之和最大的路径的节点值之和是多少。
    这个路径的开始节点和结束节点可以是二叉树中的任意节点
    例如:
    给出以下的二叉树,
    
    返回的结果为6"
                    android:layout_width="match_parent"
                    android:layout_height="78dp"
                    android:id="@+id/textView"
                    />
    
    
        </LinearLayout>
    
    </LinearLayout>

  • 相关阅读:
    15、事例十五:纹理映射
    14、事例十四:材质:十二个材质球
    [luogu]P1084 疫情控制
    [luogu]P2502 [HAOI2006]旅行
    [luogu]P2053 [SCOI2007]修车
    线性相关/线性基
    [luogu]P3629 [APIO2010]巡逻
    [luogu]P3623 [APIO2008]免费道路
    权值线段树
    树链剖分
  • 原文地址:https://www.cnblogs.com/lyr-2000/p/13793004.html
Copyright © 2011-2022 走看看