-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into file_system_surfing_2
- Loading branch information
Showing
14 changed files
with
109 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
package msu.ug | ||
|
||
import androidx.appcompat.app.AppCompatActivity | ||
import android.content.pm.ActivityInfo | ||
import android.os.Bundle | ||
import android.widget.TextView | ||
import androidx.appcompat.app.AppCompatActivity | ||
|
||
|
||
class AboutActivity : AppCompatActivity() { | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_about) | ||
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT | ||
val tv:TextView = findViewById(R.id.info_tv) | ||
val sp = getString(R.string.info) | ||
tv.text = sp | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,38 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.ConstraintLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".IntroActivity"> | ||
|
||
|
||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:background="#4CAF50" | ||
android:orientation="vertical" | ||
android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" | ||
android:id="@+id/linearLayout" android:baselineAligned="false"> | ||
<LinearLayout | ||
android:orientation="horizontal" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" android:gravity="center" android:id="@+id/linearLayout"> | ||
<LinearLayout | ||
android:orientation="vertical" | ||
android:orientation="vertical" | ||
android:layout_width="wrap_content" | ||
android:layout_height="0dp" android:layout_weight="10" android:gravity="center"> | ||
<TextView | ||
android:text="@string/name" | ||
android:layout_width="wrap_content" | ||
android:gravity="center" | ||
android:layout_height="wrap_content" android:id="@+id/name" android:textSize="36sp" | ||
android:typeface="serif" android:textStyle="bold|italic" android:textAllCaps="false"/> | ||
<Button | ||
android:text="@string/classifier_button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" android:id="@+id/button-classifier"/> | ||
<Button | ||
android:text="@string/about_button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" android:layout_weight="10" android:gravity="center"> | ||
<TextView | ||
android:text="The Big\nMayevsky" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" android:id="@+id/name" android:textSize="36sp" | ||
android:typeface="serif"/> | ||
<Button | ||
android:text="Определитель" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" android:id="@+id/button-classifier"/> | ||
<Button | ||
android:text="О программе" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" android:id="@+id/button-about"/> | ||
</LinearLayout> | ||
</LinearLayout> | ||
android:layout_height="wrap_content" | ||
android:id="@+id/button-about"/> | ||
<TextView | ||
android:text="There will be copyright" | ||
android:text="@string/copyrights" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" android:id="@+id/textView2" | ||
app:layout_constraintBottom_toBottomOf="@+id/linearLayout" android:layout_marginBottom="10dp" | ||
app:layout_constraintStart_toStartOf="parent" android:layout_marginLeft="8dp" | ||
android:layout_marginStart="8dp" app:layout_constraintEnd_toEndOf="parent" android:layout_marginEnd="8dp" | ||
android:layout_marginRight="8dp"/> | ||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</LinearLayout> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,48 @@ | ||
<resources> | ||
<string name="app_name">TheBigMayevsky</string> | ||
<string name="info"> | ||
<p><strong>О приложении</strong></p> | ||
|
||
<p>The Big Mayevsky - оцифрованная версия известного определителя растений европейской части России. Отличие от книги заключается в том, что переход от одного пункта к другому происходит автоматически и вам не надо перелистывать книгу.</p> | ||
|
||
<p><strong>Как каждый может нам помочь</strong></p> | ||
|
||
<p>На настоящий момент оцифрована лишь часть определителя, и вы можете нам помочь. Данные, на которых работает приложение находятся в папке https://github.com/SomeAnonimCoder/TheBigMayevsky/tree/master/app/src/main/assets. | ||
Каждая "развилка" хранится там в таком формате:</p> | ||
|
||
<p><code>[{"text":"текст тезы", "to":"номер, на который отправляет теза (0 если на этом заканчивается определение семейства/рода/вида)"}, {"text":"текст антитезы", "to":"аналогично"}]</code></p> | ||
|
||
<p>Чтобы добавить информацию о таксоне в определитель, нужно</p> | ||
|
||
<ol> | ||
<li>Отредактировать файл пункта, ведущего к семейству. помимо "text" и "to" нужно добавить "taxon":"название таксона на латыни" | ||
Например</li> | ||
</ol> | ||
|
||
<p><code>{"text":"цветок в виде креста?", "to":"0", "taxon":"Cruciferae"}</code></p> | ||
|
||
<ol> | ||
<li>создать в той же папке, где был файл, который вы редактировали в 1ом пункте, папку с названием как у таксона (важно, чтобы название папки совпадало с тем, что вы вписали в поле "taxon") и по аналогии заполнить её текстовыми файлами с классификацией и файлом intro.png с информацией о таксоне (он будет показываться при переходе к нему).</li> | ||
</ol> | ||
|
||
<p>При следуещем обновлении информация о таксоне будет включена в приложение.</p> | ||
|
||
<p>Если вы хотите помочь но не хотите регистрироваться на github (это нужно для выполнения предыдущих пунктов), или у вас просто есть вопросы/пожелания/претензии к создателям, пишите на </p> | ||
|
||
<ul> | ||
<li><p>[email protected] или vk.com/o.demyanchenko (RedSnail)</p></li> | ||
|
||
<li><p>[email protected] или https://vk.com/artem<em>48</em>290901 (SomeAnonimCoder)</p></li> | ||
</ul> | ||
|
||
<p><em>P.S</em></p> | ||
|
||
<p>Здесь веб-приложение для тех-же целей (https://github.com/SomeAnonimCoder/classifier).</p> | ||
</string> | ||
|
||
<string name="name">The Big\nMayevsky</string> | ||
<string name="classifier_button">Определитель</string> | ||
<string name="about_button">О программе</string> | ||
<string name="copyrights">There will be copyright</string> | ||
|
||
</resources> |