android计算器工程布局,Android 计算器布局测试

1 <?xml version="1.0" encoding="utf-8"?>

2

3 android:layout_width="match_parent"

4 android:orientation="vertical"

5 android:layout_height="match_parent">

6

8 android:layout_weight="1"

9 android:layout_height="wrap_content">

10

12 android:layout_height="wrap_content"

13 android:text=" 99999999"

14 android:textSize="35dp"/>

15

16

17

19 android:layout_weight="6"

20 android:layout_height="wrap_content"

21 android:orientation="vertical">

22

24 android:layout_height="wrap_content"

25 android:layout_weight="4"

26 android:orientation="vertical">

27

29 android:layout_height="0dp"

30 android:layout_weight="1">

31

33 android:layout_height="match_parent"

34 android:layout_weight="1"

35 android:text="mc" />

36

38 android:layout_height="match_parent"

39 android:layout_weight="1"

40 android:text="m+" />

41

43 android:layout_height="match_parent"

44 android:layout_weight="1"

45 android:text="m-" />

46

48 android:layout_height="match_parent"

49 android:layout_weight="1"

50 android:text="mr" />

51

52

54 android:layout_height="0dp"

55 android:layout_weight="1">

56

58 android:layout_height="match_parent"

59 android:layout_weight="1"

60 android:text="c" />

61

63 android:layout_height="match_parent"

64 android:layout_weight="1"

65 android:text="+/-" />

66

68 android:layout_height="match_parent"

69 android:layout_weight="1"

70 android:text="/" />

71

73 android:layout_height="match_parent"

74 android:layout_weight="1"

75 android:text="*" />

76

77

79 android:layout_height="0dp"

80 android:layout_weight="1">

81

83 android:layout_height="match_parent"

84 android:layout_weight="1"

85 android:text="7" />

86

88 android:layout_height="match_parent"

89 android:layout_weight="1"

90 android:text="8" />

91

93 android:layout_height="match_parent"

94 android:layout_weight="1"

95 android:text="9" />

96

98 android:layout_height="match_parent"

99 android:layout_weight="1"

100 android:text="-" />

101

102

103

105 android:layout_height="0dp"

106 android:layout_weight="1">

107

109 android:layout_height="match_parent"

110 android:layout_weight="1"

111 android:text="41" />

112

114 android:layout_height="match_parent"

115 android:layout_weight="1"

116 android:text="5" />

117

119 android:layout_height="match_parent"

120 android:layout_weight="1"

121 android:text="6" />

122

124 android:layout_height="match_parent"

125 android:layout_weight="1"

126 android:text="+" />

127

128

129

130

131

133 android:layout_height="0dp"

134 android:layout_weight="2"

135 android:orientation="horizontal">

136

138 android:layout_height="match_parent"

139 android:layout_weight="3"

140 android:orientation="vertical">

141

143 android:layout_height="0dp"

144 android:layout_weight="1">

145

147 android:layout_height="match_parent"

148 android:layout_weight="1"

149 android:text="1" />

150

152 android:layout_height="match_parent"

153 android:layout_weight="1"

154 android:text="2" />

155

157 android:layout_height="match_parent"

158 android:layout_weight="1"

159 android:text="3" />

160

161

163 android:layout_height="0dp"

164 android:layout_weight="1">

165

167 android:layout_height="match_parent"

168 android:layout_weight="1"

169 android:text="0" />

170

172 android:layout_height="match_parent"

173 android:layout_weight="1"

174 android:text="." />

175

176

177

179 android:layout_height="match_parent"

180 android:layout_weight="1"

181 >

182

184 android:layout_height="match_parent"

185 android:text="=" />

186

187

188

189

190

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值