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">