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>

  • 相关阅读:
    设置WebSphere字符集参数
    防SQL注入
    改变radio/checkbox默认样式
    数据完整性约束错误
    Java项目多数据源配置
    No row with the given identifier exists:错误另解
    ICTCLAS20160405分词系统调试过程
    centos7 忘记root密码
    java之Junit
    javaweb之登录
  • 原文地址:https://www.cnblogs.com/lyr-2000/p/13793004.html
Copyright © 2011-2022 走看看