Back to project page downtown.
The source code is released under:
GNU General Public License
If you think the Android project downtown listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.dklisiaris.downtown; /* ww w.j a v a2 s . c om*/ import android.content.Intent; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.view.MenuItem; import android.widget.TextView; import org.dklisiaris.downtown.R; public class MoreActivity extends ActionBarActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //supportRequestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY); setContentView(R.layout.more); getSupportActionBar().setDisplayHomeAsUpEnabled(true); Intent i = getIntent(); String form = i.getStringExtra("title"); TextView title = (TextView)findViewById(R.id.title); TextView txt = (TextView)findViewById(R.id.info_text); title.setText(makeTitle(form)); txt.setText(makeText(form)); } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: onBackPressed(); return true; default: return super.onOptionsItemSelected(item); } } public String makeText(String form){ String text="text"; if(form.equals("entry")){ text="????? ????????? ?? ????????????? ??? ??????????? ??? ??????? ???? ???????? ?????????. " + "??? ?? ????? ???????? ? ??????????? ??? ?? ???????????? ??? ???????? ??? ????????? ??? ???????? " + "??? ????????????. ??????? ??? ??????? ??? 2105310556 ???????????? ??? 9?? ??? 5?? ??? ????? ???? " + "??????????? ??? ?? ??? ??????????? ???? ??????????? ??? ????????????.?????????, ??? ? ????????? " + "?????????? ??? ??????????? ??? ???????? ???? ?????????? ?? ??? ?? ?????? ???????? ??? ?????????." + "??????????? ????????? ????? ??? ??????? ??????????? ??? ??? ????????? ????? ???????."; } else if(form.equals("info")){ text="? ????????? ?????????? ???????????? ???? ????????? ????????????? " + "??? ????????????? ??? ??? ?? ?????? ???????? ??? ?????????.?????? ??? " + "????? ?? ???????????? ??? ??????????? ??? ???? ?????? ??? ??????????????? ???? " + "??? ?? ?????? ? ???????? ??? ?? ?????? ????????????? ??? ???????, ????? ??? ???????." + "? ???? ??????????? ???? ????????? ????????? ??? ?? ???????? ???? ???????????? ??? ????????? " + "??? ?????? ????????????? ??? ???????????????.???????? ?????? ??? ????????? ??? ?????????????? ?????????."; } else if(form.equals("contact")){ text="????????? ?? ????????????? ???? ??? ??? ????? ??????? ????? ??????? " + "?? ??? ?????????? ??? ?????????? ??? ???????? 210 53 10 556 ??????????? ??? 9??-5??. " + "??????????? ????????? ?? ??? ???????? email ?? ???? ??? ??? ?????????? ??? info@futurearts.gr "+ "FutureArts. \n"+ "286 ????? ???? (????????? ???????), 1?? ???????, "+ "???????, ?.? 12244, \n"+ "Website: www.futurearts.gr"; } return text; } public String makeTitle(String form){ String title="title"; if(form.equals("entry")){ title="??????? ???????????"; } else if(form.equals("info")){ title="?????????????"; } else if(form.equals("contact")){ title="???????????"; } return title; } }