zoukankan      html  css  js  c++  java
  • android绝对布局

    绝对布局在游戏开发中常用,动态的计算出位置

     1 <?xml version="1.0" encoding="utf-8"?>
     2 <AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
     3     android:layout_width="match_parent"
     4     android:layout_height="match_parent" >
     5 
     6     <Button
     7         android:id="@+id/button1"
     8         android:layout_width="wrap_content"
     9         android:layout_height="wrap_content"
    10         android:layout_x="20dp"
    11         android:layout_y="12dp"
    12         android:text="Button" />
    13 
    14     <Button
    15         android:id="@+id/button2"
    16         android:layout_width="wrap_content"
    17         android:layout_height="wrap_content"
    18         android:layout_x="202dp"
    19         android:layout_y="51dp"
    20         android:text="Button" />
    21 
    22     <Button
    23         android:id="@+id/button3"
    24         android:layout_width="wrap_content"
    25         android:layout_height="wrap_content"
    26         android:layout_x="57dp"
    27         android:layout_y="169dp"
    28         android:text="Button" />
    29 
    30     <TimePicker
    31         android:id="@+id/timePicker1"
    32         android:layout_width="wrap_content"
    33         android:layout_height="wrap_content"
    34         android:layout_x="46dp"
    35         android:layout_y="253dp" />
    36 
    37 </AbsoluteLayout>
  • 相关阅读:
    kubernetes yaml文件格式
    docker 镜像上传至私有仓库
    Docker Compose编排容器
    jenkins+gitlab+ansible+dockerfile+k8s自动发布代码
    kubernetes 命令行
    关于HDFS的读写流程
    vue中watched属性
    app中rem算法
    vue使用中的随笔
    react 表单获取多个input
  • 原文地址:https://www.cnblogs.com/danwuxinbolg/p/4761798.html
Copyright © 2011-2022 走看看