diff --git a/app/src/main/java/amar/im/cryptoapp/MainActivity.java b/app/src/main/java/amar/im/cryptoapp/MainActivity.java index 700bbf5..f605c4e 100755 --- a/app/src/main/java/amar/im/cryptoapp/MainActivity.java +++ b/app/src/main/java/amar/im/cryptoapp/MainActivity.java @@ -11,6 +11,7 @@ import android.widget.EditText; import android.widget.RadioGroup; import android.widget.TextView; +import android.widget.Toast; public class MainActivity extends AppCompatActivity { public static final String TAG = "CryptoTest"; @@ -87,7 +88,9 @@ public boolean onCreateOptionsMenu(Menu menu) { @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { -// case R.id.action_settings: + case R.id.action_settings: + showToast("Yet to be done!!"); + return true; case R.id.action_about: // popup for some info @@ -104,4 +107,10 @@ public boolean onOptionsItemSelected(MenuItem item) { return super.onOptionsItemSelected(item); } + + private void showToast(String msg) { + if (!isFinishing() && null != this) { + Toast.makeText(this, msg, Toast.LENGTH_SHORT).show(); + } + } } diff --git a/app/src/main/res/layout/dialog_layout.xml b/app/src/main/res/layout/dialog_layout.xml new file mode 100644 index 0000000..5806379 --- /dev/null +++ b/app/src/main/res/layout/dialog_layout.xml @@ -0,0 +1,21 @@ + + + + + +