一级毛片免费不卡在线视频,国产日批视频免费在线观看,菠萝菠萝蜜在线视频免费视频,欧美日韩亚洲无线码在线观看,久久精品这里精品,国产成人综合手机在线播放,色噜噜狠狠狠综合曰曰曰,琪琪视频

android面試題(11)

時(shí)間:2024-10-19 20:17:45 學(xué)人智庫(kù) 我要投稿
  • 相關(guān)推薦

android面試題(11)

  private TextView view_result;

android面試題(11)

  private TextView view_suggest;

  /** Called when the activity is first created. */

  @Override

  public void onCreate(Bundle savedInstanceState) {

  super.onCreate(savedInstanceState);

  setContentView(R.layout.main);

  findViews();

  setListensers();

  }

  // 定義

  private void findViews() {

  button_calc = (Button) findViewById(R.id.submit);

  field_height = (EditText) findViewById(R.id.height);

  field_weight = (EditText) findViewById(R.id.weight);

  view_result = (TextView) findViewById(R.id.result);

  view_suggest = (TextView) findViewById(R.id.suggest);

  }

  // Listen for button clicks

  private void setListeners() {

  calcbutton.setOnClickListener(calcBMI);

  }

  private Button.OnClickListener calcBMI = new Button.OnClickListener() {

  public void onClick(View v) {

  DecimalFormat nf = new DecimalFormat("0.0");

  double height = Double.parseDouble(field_height.getText().toString()) / 100;

  double weight = Double.parseDouble(field_weight.getText().toString());

  double BMI = weight / (height * height);

  // Present result

  view_result.setText(getText(R.string.bmi_result) + nf.format(BMI));

  // Give health advice

  if (BMI > 25) {

  view_suggest.setText(R.string.advice_heavy);

  } else if (BMI < 20) {

  view_suggest.setText(R.string.advice_light);

  } else {

  view_suggest.setText(R.string.advice_average);

  }

  }

  };

  }

  總結(jié):

  關(guān)于項(xiàng)目

  在就是你項(xiàng)目經(jīng)驗(yàn),一定要突出你遇到什么難點(diǎn),然后是怎么解決的!把問(wèn)題引導(dǎo)到你熟悉的領(lǐng)域,或者知識(shí)點(diǎn)上,盡量將每個(gè)技術(shù)點(diǎn)細(xì)節(jié)凸顯出來(lái),

  心態(tài):

  什么樣的面試官都有,去面試的時(shí)候要做好一切心理準(zhǔn)備,不管是技術(shù)還是基礎(chǔ)都得扎實(shí)。一個(gè)人的交談能力也很重要,總之不是非常標(biāo)準(zhǔn)的普通話, 最起碼你說(shuō)的得讓別人聽得懂,而且得把面試官講得非常徹底,這樣你獲得offer的機(jī)會(huì)更大,談工資也有優(yōu)勢(shì)~~

 

 

【android面試題(11)】相關(guān)文章:

android面試題目09-08

Android工程師的面試題08-07

Android工程師面試題10-24

關(guān)于Android工程師面試題09-19

Microsoft面試題09-04

iOS面試題07-10

公司面試題09-12

hibernate面試題10-18

英語(yǔ)面試題精選06-13

小升初面試題06-10