zoukankan      html  css  js  c++  java
  • Android 网格布局 计算器

      1 <GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
      2     xmlns:tools="http://schemas.android.com/tools"
      3     android:id="@+id/GridLayout1"
      4     android:layout_width="wrap_content"
      5     android:layout_height="wrap_content"
      6     android:rowCount="6"
      7     android:columnCount="4"
      8     android:orientation="horizontal">
      9 
     10     <TextView
     11         android:layout_width="match_parent"
     12         android:layout_height="230dp"
     13         android:layout_columnSpan="4"
     14         android:text="0"
     15         android:textSize="50sp"
     16         android:layout_marginLeft="5dp"
     17         android:layout_marginRight="5dp"
     18 
     19         />
     20 
     21     <Button
     22         android:layout_width="100dp"
     23         android:layout_height="70dp"
     24         android:text="+"
     25         android:textSize="40dp"
     26         android:background="#918"
     27         android:textColor="#FF4"
     28         />
     29 
     30     <Button
     31         android:layout_width="100dp"
     32         android:layout_height="70dp"
     33         android:text="1"
     34         android:textSize="40dp"
     35         android:background="#999"
     36         />
     37     <Button
     38         android:layout_width="100dp"
     39         android:layout_height="70dp"
     40         android:text="2"
     41         android:textSize="40dp"
     42         android:background="#999"
     43         />
     44     <Button
     45         android:layout_width="100dp"
     46         android:layout_height="70dp"
     47         android:text="3"
     48         android:textSize="40dp"
     49         android:background="#999"
     50         />
     51     <Button
     52         android:layout_width="100dp"
     53         android:layout_height="70dp"
     54         android:text="-"
     55         android:textSize="40dp"
     56         android:background="#918"
     57         android:textColor="#FF4"
     58         />
     59     <Button
     60         android:layout_width="100dp"
     61         android:layout_height="70dp"
     62         android:text="4"
     63         android:textSize="40dp"
     64         android:background="#999"
     65         />
     66     <Button
     67         android:layout_width="100dp"
     68         android:layout_height="70dp"
     69         android:text="5"
     70         android:textSize="40dp"
     71         android:background="#999"
     72         />
     73     <Button
     74         android:layout_width="100dp"
     75         android:layout_height="70dp"
     76         android:text="6"
     77         android:textSize="40dp"
     78         android:background="#999"
     79         />
     80     <Button
     81         android:layout_width="100dp"
     82         android:layout_height="70dp"
     83         android:text="*"
     84         android:textSize="40dp"
     85         android:background="#918"
     86         android:textColor="#FF4"
     87         />
     88     <Button
     89         android:layout_width="100dp"
     90         android:layout_height="70dp"
     91         android:text="7"
     92         android:textSize="40dp"
     93         android:background="#999"
     94         />
     95     <Button
     96         android:layout_width="100dp"
     97         android:layout_height="70dp"
     98         android:text="8"
     99         android:textSize="40dp"
    100         android:background="#999"
    101         />
    102     <Button
    103         android:layout_width="100dp"
    104         android:layout_height="70dp"
    105         android:text="9"
    106         android:textSize="40dp"
    107         android:background="#999"
    108         />
    109     <Button
    110         android:layout_width="100dp"
    111         android:layout_height="70dp"
    112         android:text="/"
    113         android:textSize="40dp"
    114         android:background="#918"
    115         android:textColor="#FF4"
    116         />
    117     <Button
    118         android:layout_width="100dp"
    119         android:layout_height="70dp"
    120         android:text="."
    121         android:textSize="40dp"
    122         android:background="#918"
    123         android:textColor="#FF4"
    124         />
    125     <Button
    126         android:layout_width="100dp"
    127         android:layout_height="70dp"
    128         android:text="0"
    129         android:textSize="40dp"
    130         android:background="#999"
    131         />
    132     <Button
    133         android:layout_width="100dp"
    134         android:layout_height="70dp"
    135         android:text="="
    136         android:textSize="40dp"
    137         android:background="#918"
    138         android:textColor="#FF4"
    139         />
    140 </GridLayout>

  • 相关阅读:
    flume sink两种类型 file_rool 自定义sing com.mycomm.MySink even if there is only one event, the event has to be sent in an array
    为什么引入进程20年后,又引入线程?
    As of Flume 1.4.0, Avro is the default RPC protocol.
    Google Protocol Buffer 的使用和原理
    Log4j 2
    统一日志 统一订单
    网站行为跟踪 Website Activity Tracking Log Aggregation 日志聚合 In comparison to log-centric systems like Scribe or Flume
    Percolator
    友盟吴磊:移动大数据平台的架构、实践与数据增值
    Twitter的RPC框架Finagle简介
  • 原文地址:https://www.cnblogs.com/TENOKAWA/p/5416631.html
Copyright © 2011-2022 走看看