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>

  • 相关阅读:
    JS判断是否是ioS或者Android
    React+dva多图片上传
    Nginx的虚拟主机
    Nginx的动静分离
    Nginx的负载均衡
    Nginx的静态代理
    Java内存模型
    系统学习笔记漏掉的部分
    异常的统一处理
    webpack学习指南
  • 原文地址:https://www.cnblogs.com/lyr-2000/p/13793004.html
Copyright © 2011-2022 走看看