]>
Commit | Line | Data |
---|---|---|
8dfb76c9 MG |
1 | package ro.ieval.fonbot; |
2 | ||
3 | import static ro.ieval.fonbot.R.string.*; | |
4 | ||
5 | import org.eclipse.jdt.annotation.Nullable; | |
6 | ||
7 | import android.app.Activity; | |
8 | import android.os.Bundle; | |
9 | import android.text.method.LinkMovementMethod; | |
10 | import android.widget.TextView; | |
11 | ||
12 | /* | |
13 | * Copyright © 2013 Marius Gavrilescu | |
14 | * | |
15 | * This file is part of FonBot. | |
16 | * | |
17 | * FonBot is free software: you can redistribute it and/or modify | |
18 | * it under the terms of the GNU General Public License as published by | |
19 | * the Free Software Foundation, either version 3 of the License, or | |
20 | * (at your option) any later version. | |
21 | * | |
22 | * FonBot is distributed in the hope that it will be useful, | |
23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
25 | * GNU General Public License for more details. | |
26 | * | |
27 | * You should have received a copy of the GNU General Public License | |
28 | * along with FonBot. If not, see <http://www.gnu.org/licenses/>. | |
29 | */ | |
30 | ||
31 | /** | |
32 | * An activity that shows FonBot help. | |
33 | * | |
34 | * @author Marius Gavrilescu <marius@ieval.ro> | |
35 | */ | |
36 | public final class FonBotHelpActivity extends Activity { | |
37 | @Override | |
38 | protected void onCreate(final @Nullable Bundle savedInstanceState) { | |
39 | super.onCreate(savedInstanceState); | |
40 | final TextView textView=new TextView(this); | |
41 | textView.setText(help); | |
42 | textView.setMovementMethod(LinkMovementMethod.getInstance()); | |
43 | setTitle(help_activity_label); | |
44 | setContentView(textView); | |
45 | } | |
46 | } |