1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2024-09-20 00:49:10 -05:00

Fix about header layout to support long app names (for DEV builds) (#1602)

Co-authored-by: Mikołaj Pich <m.pich@outlook.com>
This commit is contained in:
Michael 2021-10-29 20:30:27 +02:00 committed by GitHub
parent 1d910f8d66
commit 26c749c219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -74,7 +74,7 @@ android {
buildConfigField "String", "MESSAGES_BASE_URL", "\"https://messages.wulkanowy.net.pl\"" buildConfigField "String", "MESSAGES_BASE_URL", "\"https://messages.wulkanowy.net.pl\""
} }
debug { debug {
resValue "string", "app_name", "Wulkanowy DEV " + defaultConfig.versionCode resValue "string", "app_name", "Wulkanowy DEV"
applicationIdSuffix ".dev" applicationIdSuffix ".dev"
versionNameSuffix "-dev" versionNameSuffix "-dev"
ext.enableCrashlytics = project.hasProperty("enableFirebase") ext.enableCrashlytics = project.hasProperty("enableFirebase")

View File

@ -6,6 +6,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minHeight="104dp" android:minHeight="104dp"
android:orientation="vertical" android:orientation="vertical"
android:paddingHorizontal="20dp"
tools:context=".ui.modules.about.AboutAdapter"> tools:context=".ui.modules.about.AboutAdapter">
<ImageView <ImageView
@ -23,12 +24,13 @@
<TextView <TextView
android:id="@+id/aboutScrollableHeaderName" android:id="@+id/aboutScrollableHeaderName"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/app_name" android:text="@string/app_name"
android:textSize="24sp" android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="@id/aboutScrollableHeaderIcon" app:layout_constraintBottom_toBottomOf="@id/aboutScrollableHeaderIcon"
app:layout_constraintLeft_toRightOf="@id/aboutScrollableHeaderIcon" app:layout_constraintLeft_toRightOf="@id/aboutScrollableHeaderIcon"
app:layout_constraintRight_toRightOf="parent" app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="@id/aboutScrollableHeaderIcon" /> app:layout_constraintTop_toTopOf="@id/aboutScrollableHeaderIcon"
app:layout_constraintWidth_max="wrap" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>