diff --git a/app/WikiSpot/app/src/main/java/com/example/wikispot/modelsForAdapters/ExploreListModel.kt b/app/WikiSpot/app/src/main/java/com/example/wikispot/modelsForAdapters/ExploreListModel.kt
index 6665b70..7421a37 100644
--- a/app/WikiSpot/app/src/main/java/com/example/wikispot/modelsForAdapters/ExploreListModel.kt
+++ b/app/WikiSpot/app/src/main/java/com/example/wikispot/modelsForAdapters/ExploreListModel.kt
@@ -16,7 +16,7 @@ data class PlacePreview(var title: String, var description: String, var location
var lastLine = ""
for (word in words) {
- if (lastLine.length + word.length < 40) {
+ if (lastLine.length + word.length < 25) {
if (lastLine != "") {
lastLine += " "
description += " "
diff --git a/app/WikiSpot/app/src/main/res/layout/fragment_another_debug.xml b/app/WikiSpot/app/src/main/res/layout/fragment_another_debug.xml
index dfd3a38..6645de0 100644
--- a/app/WikiSpot/app/src/main/res/layout/fragment_another_debug.xml
+++ b/app/WikiSpot/app/src/main/res/layout/fragment_another_debug.xml
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="#E04C4C"
+ android:background="?attr/debugFragmentBackround"
tools:context=".fragments.anotherDebugFragment">
@@ -39,7 +38,7 @@
android:layout_marginStart="32dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
- android:text="Generate and save data"
+ android:text="@string/generate_and_save_data"
app:layout_constraintEnd_toStartOf="@+id/goFirstDegubFragmentBtn"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView3" />
@@ -50,7 +49,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="32dp"
android:layout_marginTop="16dp"
- android:text="Load and Show data"
+ android:text="@string/load_and_show_data"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/generateAndSaveDataBtn" />
@@ -69,7 +68,7 @@
android:id="@+id/dataContentView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:text="data content"
+ android:text="@string/data_content"
android:textAlignment="center" />
@@ -79,7 +78,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:ems="10"
- android:hint="attribute path"
+ android:hint="@string/attribute_path"
android:inputType="textPersonName"
app:layout_constraintStart_toStartOf="@+id/loadAndShowDataBtn"
app:layout_constraintTop_toBottomOf="@+id/loadAndShowDataBtn" />
@@ -89,7 +88,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
- android:text="Create View Connection"
+ android:text="@string/create_view_connection"
android:textSize="12sp"
app:layout_constraintStart_toStartOf="@+id/attributePathInput"
app:layout_constraintTop_toBottomOf="@+id/attributePathInput" />
@@ -99,8 +98,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
- android:text="Stop Connection"
- android:textSize="10sp"
+ android:text="@string/stop_connection"
+ android:textSize="13sp"
app:layout_constraintBottom_toBottomOf="@+id/attributePathInput"
app:layout_constraintStart_toEndOf="@+id/attributePathInput"
app:layout_constraintTop_toTopOf="@+id/attributePathInput" />
@@ -110,7 +109,7 @@
android:layout_width="160dp"
android:layout_height="wrap_content"
android:ems="10"
- android:hint="file path"
+ android:hint="@string/file_path"
android:inputType="textPersonName"
app:layout_constraintBottom_toTopOf="@+id/attributePathInput"
app:layout_constraintStart_toStartOf="@+id/loadAndShowDataBtn"
diff --git a/app/WikiSpot/app/src/main/res/layout/fragment_debug.xml b/app/WikiSpot/app/src/main/res/layout/fragment_debug.xml
index c5a15eb..d4aee81 100644
--- a/app/WikiSpot/app/src/main/res/layout/fragment_debug.xml
+++ b/app/WikiSpot/app/src/main/res/layout/fragment_debug.xml
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="#E34B4B"
+ android:background="?attr/debugFragmentBackround"
tools:context=".fragments.debugFragment">
@@ -22,7 +23,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
- android:text="Get number of sent requests"
+ android:textColor="?attr/generalTextColor"
+ android:text="@string/get_number_of_sent_requests"
android:textSize="12sp"
app:layout_constraintEnd_toStartOf="@+id/goSecondDebugFragmentBtn"
app:layout_constraintStart_toStartOf="parent"
@@ -33,6 +35,7 @@
android:layout_width="252dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
+ android:textColor="?attr/generalTextColor"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
@@ -50,7 +53,7 @@
android:background="#6A5252"
android:backgroundTint="#E39595"
android:padding="4dp"
- android:text="output" />
+ android:text="@string/output" />
@@ -59,7 +62,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
- android:text="Change Url"
+ android:textColor="?attr/generalTextColor"
+ android:text="@string/change_url"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/editTextIp" />
@@ -71,7 +75,7 @@
android:layout_marginTop="16dp"
android:ems="10"
android:inputType="textPersonName"
- android:text="Name"
+ android:text="@string/name"
app:layout_constraintEnd_toEndOf="@+id/scrollView3"
app:layout_constraintStart_toStartOf="@+id/scrollView3"
app:layout_constraintTop_toBottomOf="@+id/scrollView3" />
@@ -81,7 +85,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
- android:text="Clear server connections"
+ android:textColor="?attr/generalTextColor"
+ android:text="@string/clear_server_connections"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
@@ -92,7 +97,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
- android:text="Restart app partially"
+ android:textColor="?attr/generalTextColor"
+ android:text="@string/restart_app_partially"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
@@ -103,7 +109,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
- android:text="Debug fragment"
+ android:text="@string/debug_fragment"
android:textColor="#FFFFFF"
android:textSize="30sp"
android:textStyle="bold"
@@ -117,7 +123,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
- android:text="Close app"
+ android:textColor="?attr/generalTextColor"
+ android:text="@string/close_app"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
diff --git a/app/WikiSpot/app/src/main/res/values/attrs.xml b/app/WikiSpot/app/src/main/res/values/attrs.xml
index 8484a19..b73c574 100644
--- a/app/WikiSpot/app/src/main/res/values/attrs.xml
+++ b/app/WikiSpot/app/src/main/res/values/attrs.xml
@@ -38,6 +38,8 @@
+
+
diff --git a/app/WikiSpot/app/src/main/res/values/colors.xml b/app/WikiSpot/app/src/main/res/values/colors.xml
index 0847b5a..a9d9eb5 100644
--- a/app/WikiSpot/app/src/main/res/values/colors.xml
+++ b/app/WikiSpot/app/src/main/res/values/colors.xml
@@ -4,105 +4,109 @@
#FFFFFFFF
- #4CAF50
- #388E3C
+ #A6BFFF
+ #6994FF
@color/white
- #E91E63
+ #321EE9
#F48FB1
@color/black
#fff
- #89000000
- #89000000
+ #BA000000
+ #8A000000
- #ECD21A1A
- #320747
- #33C4BCC9
- #EC000000
+ #EC1D5CFD
+ #EC5B89FF
+ #7D8DC1
+ #EDEDED
- #80E5BEFF
- #80FFB5F0
+ #74DDFF
+ #7DE0FF
- #FCDD94
- #C5F8AB
+ #EDEDED
+ #F6F6F6
- #FCB0EF
- #9ECFFF
- #9FE7FF
- #7FFFFFFF
- #FFF
+ #FF7272
- #A1DEFC
- #A5CBFF
- #F9B6F6
- #fff
+ #83E1FF
+ #4ED4FF
+ #83E1FF
+ #CB4DD4FF
+ #43FFFFFF
- #83E1FF
- #9EC6FF
- #FEBBFF
+ #83E1FF
+ #4ED4FF
+ #83E1FF
+ #FDFDFD
- #92EB97FC
- #A198F9
- #74C7F7
+ #7BDFFF
+ #4ED4FF
+ #7BDFFF
- #FFB6FB
- #A7D2FF
- #96E7FF
+ #83E1FF
+ #4ED4FF
+ #83E1FF
- #C4FFA5
- #D1FBA0
- #F6FEBA
+ #83E1FF
+ #4ED4FF
+ #83E1FF
+
+ #63D9FF
+ #44D2FF
+ #59D7FF
- #B078F4
- #5100B3
+ #000F9E
+ #000B75
@color/black
- #FF03DAC5
- #FF03DAC5
+ #0320DA
+ #3954FF
@color/black
#aaa
- #96FFFFFF
- #AAFFFFFF
+ #96AEAEAE
+ #9F9F9F
- #FFB571
- #320747
- #33222222
+ #002F80
+ #003697
+ #091961
#000000
- #80A185B4
- #80926789
+ #80000C5C
+ #80001A5C
- #9F8B5D
- #749265
+ #1B1B1B
+ #0E0E0E
- #885E81
- #516B85
- #5E8A99
- #D43E3E3E
- #444
+ #5E0000
- #587A8B
- #657C9C
- #896488
- #636363
+ #00143A
+ #001235
+ #00143A
+ #00062C
+ #BF1C1C1C
- #4F889A
- #647EA3
- #977098
+ #00143A
+ #001235
+ #00143A
+ #171717
- #92875691
- #6863A2
- #4B7F9D
+ #00143A
+ #001235
+ #00143A
- #966B94
- #69829D
- #54818E
+ #00143A
+ #001235
+ #00143A
- #729360
- #809A62
- #8F936C
+ #001030
+ #000D27
+ #001030
+
+ #132855
+ #0E275C
+ #132855
\ No newline at end of file
diff --git a/app/WikiSpot/app/src/main/res/values/strings.xml b/app/WikiSpot/app/src/main/res/values/strings.xml
index 185853b..a01a334 100644
--- a/app/WikiSpot/app/src/main/res/values/strings.xml
+++ b/app/WikiSpot/app/src/main/res/values/strings.xml
@@ -8,4 +8,22 @@
Files
Dark theme
+ Get number of sent requests
+ 2
+ output
+ Change Url
+ Name
+ Clear server connections
+ Restart app partially
+ Debug fragment
+ Close app
+ Another Debug Fragment
+ 1
+ Generate and save data
+ Load and Show data
+ data content
+ attribute path
+ Create View Connection
+ Stop Connection
+ file path
\ No newline at end of file
diff --git a/app/WikiSpot/app/src/main/res/values/themes.xml b/app/WikiSpot/app/src/main/res/values/themes.xml
index c5133c6..740f0db 100644
--- a/app/WikiSpot/app/src/main/res/values/themes.xml
+++ b/app/WikiSpot/app/src/main/res/values/themes.xml
@@ -22,6 +22,8 @@
- @color/textBackgroundGradientStartColor
- @color/textBackgroundGradientEndColor
+ - @color/debugFragmentBg
+
- @color/bottomNavBarGradientStartColor
- @color/bottomNavBarGradientEndColor
@@ -60,6 +62,7 @@
- @color/statusBarColor
+ - true