Version number automatic
This commit is contained in:
parent
116973865a
commit
ca7cc3bb03
9 changed files with 34 additions and 6 deletions
|
@ -8,6 +8,7 @@ import android.text.method.LinkMovementMethod;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import org.secuso.privacyfriendlysudoku.ui.view.BuildConfig;
|
||||||
import org.secuso.privacyfriendlysudoku.ui.view.R;
|
import org.secuso.privacyfriendlysudoku.ui.view.R;
|
||||||
|
|
||||||
public class AboutActivity extends BaseActivity {
|
public class AboutActivity extends BaseActivity {
|
||||||
|
@ -19,6 +20,7 @@ public class AboutActivity extends BaseActivity {
|
||||||
|
|
||||||
((TextView)findViewById(R.id.secusoWebsite)).setMovementMethod(LinkMovementMethod.getInstance());
|
((TextView)findViewById(R.id.secusoWebsite)).setMovementMethod(LinkMovementMethod.getInstance());
|
||||||
((TextView)findViewById(R.id.githubURL)).setMovementMethod(LinkMovementMethod.getInstance());
|
((TextView)findViewById(R.id.githubURL)).setMovementMethod(LinkMovementMethod.getInstance());
|
||||||
|
((TextView)findViewById(R.id.textFieldVersionName)).setText(BuildConfig.VERSION_NAME);
|
||||||
|
|
||||||
android.support.v7.app.ActionBar actionBar = getSupportActionBar();
|
android.support.v7.app.ActionBar actionBar = getSupportActionBar();
|
||||||
actionBar.setTitle(R.string.menu_about);
|
actionBar.setTitle(R.string.menu_about);
|
||||||
|
|
|
@ -42,13 +42,32 @@
|
||||||
android:layout_marginTop="15dp"
|
android:layout_marginTop="15dp"
|
||||||
android:text="@string/app_name_long" />
|
android:text="@string/app_name_long" />
|
||||||
|
|
||||||
<TextView
|
<RelativeLayout
|
||||||
android:id="@+id/textFieldVersion"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:text="@string/version_number" />
|
android:gravity="center">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textFieldVersion"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="5dp"
|
||||||
|
android:text="@string/version_number" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textFieldVersionName"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="4dp"
|
||||||
|
android:layout_marginLeft="4dp"
|
||||||
|
android:layout_marginTop="5dp"
|
||||||
|
android:layout_toRightOf="@+id/textFieldVersion"
|
||||||
|
android:layout_toEndOf="@+id/textFieldVersion" />
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textFieldAuthor"
|
android:id="@+id/textFieldAuthor"
|
||||||
|
|
|
@ -14,7 +14,8 @@
|
||||||
|
|
||||||
<!-- About Page -->
|
<!-- About Page -->
|
||||||
<string name="about_affiliation">In Zusammenarbeit mit:</string>
|
<string name="about_affiliation">In Zusammenarbeit mit:</string>
|
||||||
<string name="about_author">Autor:</string>
|
<string name="about_author">Autoren:</string>
|
||||||
|
<string name="version_number">Version:</string>
|
||||||
<string name="about_author_contributors">und Mitwirkende.</string>
|
<string name="about_author_contributors">und Mitwirkende.</string>
|
||||||
<string name="privacy_friendly">Diese App gehört zur Gruppe der Privacy Friendly Apps entwickelt von der Technischen Universität Darmstadt. Quelltext lizenziert unter GPLv3. Bilder copyright TU Darmstadt und Google Inc.</string>
|
<string name="privacy_friendly">Diese App gehört zur Gruppe der Privacy Friendly Apps entwickelt von der Technischen Universität Darmstadt. Quelltext lizenziert unter GPLv3. Bilder copyright TU Darmstadt und Google Inc.</string>
|
||||||
<string name="more_info">Weitere Infos unter:</string>
|
<string name="more_info">Weitere Infos unter:</string>
|
||||||
|
|
|
@ -80,6 +80,7 @@
|
||||||
<string name="pref_timer_reset">Resetear Tiempo</string>
|
<string name="pref_timer_reset">Resetear Tiempo</string>
|
||||||
<string name="pref_timer_reset_summary">El tiempo se resetea tambien, cuando el tablero se resetea.</string>
|
<string name="pref_timer_reset_summary">El tiempo se resetea tambien, cuando el tablero se resetea.</string>
|
||||||
<string name="welcome">Bienvenido a Privacy Friendly Sudoku.</string>
|
<string name="welcome">Bienvenido a Privacy Friendly Sudoku.</string>
|
||||||
|
<string name="version_number">Versión:</string>
|
||||||
<string name="about_author_contributors">" "</string>
|
<string name="about_author_contributors">" "</string>
|
||||||
<string name="okay">Ok</string>
|
<string name="okay">Ok</string>
|
||||||
<string name="view_help">Ayuda</string>
|
<string name="view_help">Ayuda</string>
|
||||||
|
|
|
@ -81,6 +81,7 @@
|
||||||
<string name="pref_timer_reset_summary">Aussi réinitialiser le minuteur en réinitialisant le jeux en cours.</string>
|
<string name="pref_timer_reset_summary">Aussi réinitialiser le minuteur en réinitialisant le jeux en cours.</string>
|
||||||
<string name="welcome">Bienvenue à Privacy Friendly Sudoku.</string>
|
<string name="welcome">Bienvenue à Privacy Friendly Sudoku.</string>
|
||||||
<string name="about_author_contributors">" "</string>
|
<string name="about_author_contributors">" "</string>
|
||||||
|
<string name="version_number">Version:</string>
|
||||||
<string name="okay">Ok</string>
|
<string name="okay">Ok</string>
|
||||||
<string name="view_help">Aide</string>
|
<string name="view_help">Aide</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
<!-- ###ABOUT### -->
|
<!-- ###ABOUT### -->
|
||||||
<string name="about_author">作者:</string>
|
<string name="about_author">作者:</string>
|
||||||
<string name="about_author_contributors">と貢献者。</string>
|
<string name="about_author_contributors">と貢献者。</string>
|
||||||
|
<string name="version_number">バージョン</string>
|
||||||
<string name="about_affiliation">提携</string>
|
<string name="about_affiliation">提携</string>
|
||||||
<string name="privacy_friendly">このアプリケーションは、ダルムシュタット工科大学 (Technische Universität Darmstadt, Germany) が開発したプライバシーフレンドリーアプリのグループに属しています。 ソースコードは GPLv3 の下でライセンスされます。画像の著作権は TU Darmstadt および Google Inc.</string>
|
<string name="privacy_friendly">このアプリケーションは、ダルムシュタット工科大学 (Technische Universität Darmstadt, Germany) が開発したプライバシーフレンドリーアプリのグループに属しています。 ソースコードは GPLv3 の下でライセンスされます。画像の著作権は TU Darmstadt および Google Inc.</string>
|
||||||
<string name="more_info">さらに詳しい情報は以下でご覧ください:</string>
|
<string name="more_info">さらに詳しい情報は以下でご覧ください:</string>
|
||||||
|
|
|
@ -81,6 +81,7 @@
|
||||||
<string name="pref_timer_reset_summary">Сброс таймера при сбросе доски.</string>
|
<string name="pref_timer_reset_summary">Сброс таймера при сбросе доски.</string>
|
||||||
<string name="welcome">Добро пожаловать в Privacy Friendly Sudoku.</string>
|
<string name="welcome">Добро пожаловать в Privacy Friendly Sudoku.</string>
|
||||||
<string name="about_author_contributors">" "</string>
|
<string name="about_author_contributors">" "</string>
|
||||||
|
<string name="version_number">Версия:</string>
|
||||||
<string name="okay">Ok</string>
|
<string name="okay">Ok</string>
|
||||||
<string name="view_help">Помощь</string>
|
<string name="view_help">Помощь</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
<string name="difficulty_easy">简单</string>
|
<string name="difficulty_easy">简单</string>
|
||||||
<string name="difficulty_hard">难</string>
|
<string name="difficulty_hard">难</string>
|
||||||
<string name="difficulty_moderate">普通</string>
|
<string name="difficulty_moderate">普通</string>
|
||||||
|
<string name="difficulty_challenge">挑战</string>
|
||||||
<string name="gametype_unspecified">未详细说明的</string>
|
<string name="gametype_unspecified">未详细说明的</string>
|
||||||
<string name="help_delete">删除</string>
|
<string name="help_delete">删除</string>
|
||||||
<string name="win_text">祝贺!</string>
|
<string name="win_text">祝贺!</string>
|
||||||
|
@ -82,5 +83,6 @@
|
||||||
<string name="about_author_contributors">" "</string>
|
<string name="about_author_contributors">" "</string>
|
||||||
<string name="okay">Ok</string>
|
<string name="okay">Ok</string>
|
||||||
<string name="view_help">帮助</string>
|
<string name="view_help">帮助</string>
|
||||||
|
<string name="version_number">Version</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
|
@ -57,8 +57,8 @@
|
||||||
|
|
||||||
<!-- ###ABOUT### -->
|
<!-- ###ABOUT### -->
|
||||||
<string name="app_name_long" translatable="false">Privacy Friendly Sudoku</string>
|
<string name="app_name_long" translatable="false">Privacy Friendly Sudoku</string>
|
||||||
<string name="version_number" translatable="false">2.1.1</string>
|
<string name="version_number">Version:</string>
|
||||||
<string name="about_author">Author:</string>
|
<string name="about_author">Authors:</string>
|
||||||
<string name="about_author_names" translatable="false">Christopher Beckmann, Timm Lippert</string>
|
<string name="about_author_names" translatable="false">Christopher Beckmann, Timm Lippert</string>
|
||||||
<string name="about_author_contributors">and contributors.</string>
|
<string name="about_author_contributors">and contributors.</string>
|
||||||
<string name="about_affiliation">In affiliation with</string>
|
<string name="about_affiliation">In affiliation with</string>
|
||||||
|
|
Loading…
Reference in a new issue