皮皮学,免费搜题
登录
搜题
【简答题】
使用键盘事件对输入信息做合法性判断,下段年龄小于 200 的认为合法,否则认为是不合法的年龄。填写以下程序空使之逻辑完整: Activity_main.xml android: (1) // 组件名字叫 edit1 android:layout_width="wrap_content" android:layout_height="wrap_content" android:selectAllOnFocus="true" android:numeric="integer" android:hint=" 请输入您的年龄: " /> android: (2) // 组件名字叫 txt1 android:layout_width="wrap_content" android:layout_height="wrap_content" /> MainActivity.java MainActivity.java: ....... public class MainActivity extends AppCompatActivity { private EditText edit = null; private TextView txt=null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setContentView(R.layout.activity_main); this.edit = (3) ; this.txt = (TextView) super.findViewById(R.id.txt1); (4) ; } // 设置键盘事件监听 private class OnKeyListenerImpl implements OnKeyListener { @Override public boolean onKey(View v, int keyCode, KeyEvent event) { // 实现 onKey 方法 switch(event.getAction()) { case KeyEvent.ACTION_UP: // 键盘松开触发 String inputmsg = MainActivity.this.edit.getText().toString(); // 取出已输入内容 int a=Integer.parseInt(inputmsg); // 将取出的信息转换为数字型数据 if ( (5) ) { // 判断年龄是否是大于 0 且小于 200 MainActivity.this.txt.setText(" 您输入的年龄是 :"+inputmsg+" ,符合要求! ");} else { MainActivity.this.txt.setText(" 您输入的年龄是 :"+inputmsg+" ,不符合要求! ");} case KeyEvent.ACTION_DOWN: // 键盘按下触发 default: break ; } return false; }}}
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】在下列预期使用者获取鉴证标准的方式中,注册会计师认为正确的是( )
A.
由预期使用者责任方早请取得
B.
由注册会计师在鉴证报告中明确的方式表述
C.
由注册会计师对鉴证对象形式评价和计量标准并提供给预期使用者
D.
由预期使用者根据判断自行形式标准
【单选题】If Nick extends the grace period, the delivery will be _____.
A.
just on time
B.
delayed
C.
advanced
【简答题】Complete the following table according to the dialogue you hear. Answers The things negotiated at the fair The product inquired The discount allowed The basis of discount The delivery period The term ...
【单选题】The responsible period of the carrier for the loss of or damage to the cargo as well as delay in delivery under CMR Convention is between ( ).
A.
the Port to Port
B.
the Door to Door
C.
the Rail to Rail
D.
the time the carrier taking over the goods and the time of delivery
【单选题】在下列预期使用者获取鉴证标准的方式中注册会计师认为正确的是( )
A.
由预期使用者向资任方申请取得
B.
由注册会计师在鉴证报告中以明确的方式表述
C.
由注册会计师对鉴证对象形成评价和计量标准并提供给预期使用者
D.
由预期使用者根据判断自行形成标准
【单选题】In the event the Buyers do not take delivery of the Vessel within the period specified,______ the liquidated damage for each day of the delay up to the tenth(10th )day of the delay.
A.
the Buyers shall pay to the Sellers
B.
the Buyers shall pay to the Charterers
C.
the Sellers shall pay to the Buyers
D.
the Sellers shall pay to the Charterers
【简答题】Negotiation Negotiating parties Wonderland Co., Ltd. Carson International Trading Co., Ltd. Members present 1 Maria 2 Isabella Products stainless steel kitchenware Disagreement price and 3 time Ne...
【判断题】The delivery period of the goods will not be influenced by any events according to the tender
A.
正确
B.
错误
【单选题】在下列预期使用者获取鉴证标准的方式中注册会计师认为正确的是()
A.
由预期使用者向资任方申请取褥
B.
由注册会计师在鉴证报告中以明确的方式表述
C.
由注册会计师对鉴证对象形成评价和计量标准并提供给预期使用者
D.
由预期使用者根据判断自行形成标准
【单选题】The responsible period of the carrier for the loss of or damage to the cargo as well as delay in delivery under ( )is between the time the carrier taking over the goods and the time of delivery.
A.
CMR convention
B.
the Hague Rules
C.
the Hamburg Rules
D.
the Hague-Visby Rules
相关题目: