{% else-1 %}
abler98 * 22.68
(5 дек 2013, 00:53) (0/0) [0]
SV, шта?*
abler98 * 22.68
(5 дек 2013, 00:42) (0/0) [0]
package com.abler98.applite;

import android.app.*;
import android.os.*;
import android.view.*;
import android.widget.*;

public class MainActivity extends Activity
{
Button button_print;
EditText edit_text_toast;

/** Called when the activity is first created. */
Удалён
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
setTitle(\"AppLite - Главное меню\"*;

button_print = (Button) findViewById(R.id.button_print);
edit_text_toast = (EditText) findViewById(R.id.edit_text_toast);
}

Удалён
public void onClick(View v){
edit_text_toast.setText(null);
}

Удалён
public boolean onOptionsItemSelected(MenuItem item)
{
switch(item.getItemId()){
case 1:
Toast.makeText(this, \"Наш сайт: http://mast-wap.ru\", Toast.LENGTH_SHORT).show();
break;

case 2:
System.exit(0);
break;
}

// TODO: Implement this method
return super.onOptionsItemSelected(item);
}
}
  • 1 из 1