-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug fixes: text not visible in dark mode
- Loading branch information
1 parent
8c2caf9
commit 02be997
Showing
1 changed file
with
345 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,345 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:padding="15dp" | ||
tools:context=".ui.settings.fragment.AboutFragment"> | ||
|
||
<com.google.android.material.imageview.ShapeableImageView | ||
android:id="@+id/app_logo" | ||
android:layout_width="0dp" | ||
android:layout_height="0dp" | ||
android:clickable="false" | ||
android:src="@drawable/img_face" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintDimensionRatio="1" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:layout_constraintVertical_bias="0" | ||
app:layout_constraintWidth_percent=".5" | ||
app:shapeAppearanceOverlay="@style/ShapeOverlayRoundedImageView" /> | ||
|
||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/app_name" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="15dp" | ||
android:includeFontPadding="false" | ||
android:text="@string/app_name" | ||
android:textAlignment="center" | ||
android:textColor="@color/base_theme_dark_onPrimaryContainer" | ||
android:textFontWeight="800" | ||
android:textSize="28sp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/app_logo" | ||
app:layout_constraintVertical_bias="0" /> | ||
|
||
<com.google.android.material.divider.MaterialDivider | ||
android:id="@+id/divider1" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="25dp" | ||
app:dividerColor="@color/base_theme_dark_onPrimaryContainer" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/app_description" | ||
app:layout_constraintVertical_bias="0" | ||
app:layout_constraintWidth_percent=".6" /> | ||
|
||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/dev_label" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="25dp" | ||
android:includeFontPadding="false" | ||
android:text="@string/dev_label" | ||
android:textAlignment="center" | ||
android:textColor="@color/base_theme_dark_onPrimaryContainer" | ||
android:textFontWeight="800" | ||
android:textSize="14sp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/divider1" | ||
app:layout_constraintVertical_bias="0" /> | ||
|
||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/dev_name" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="5dp" | ||
android:includeFontPadding="false" | ||
android:text="@string/dev_name" | ||
android:textAlignment="center" | ||
android:textColor="@color/base_theme_dark_onPrimaryContainer" | ||
android:textFontWeight="500" | ||
android:textSize="18sp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/dev_label" | ||
app:layout_constraintVertical_bias="0" /> | ||
|
||
<ImageButton | ||
android:id="@+id/dev_email" | ||
android:layout_width="28dp" | ||
android:layout_height="28dp" | ||
android:background="@null" | ||
android:contentDescription="@null" | ||
android:src="@drawable/ic_email" | ||
app:tint="@color/base_theme_dark_onPrimaryContainer" /> | ||
|
||
<ImageButton | ||
android:id="@+id/dev_github" | ||
android:layout_width="28dp" | ||
android:layout_height="28dp" | ||
android:background="@null" | ||
android:contentDescription="@null" | ||
android:src="@drawable/ic_github" | ||
app:tint="@color/base_theme_dark_onPrimaryContainer" /> | ||
|
||
<ImageButton | ||
android:id="@+id/dev_linkedin" | ||
android:layout_width="28dp" | ||
android:layout_height="28dp" | ||
android:background="@null" | ||
android:contentDescription="@null" | ||
android:src="@drawable/ic_linkedin" | ||
app:tint="@color/base_theme_dark_onPrimaryContainer" /> | ||
|
||
<ImageButton | ||
android:id="@+id/dev_stackoverflow" | ||
android:layout_width="28dp" | ||
android:layout_height="28dp" | ||
android:background="@null" | ||
android:contentDescription="@null" | ||
android:src="@drawable/ic_stackoverflow" | ||
app:tint="@color/base_theme_dark_onPrimaryContainer" /> | ||
|
||
<androidx.constraintlayout.helper.widget.Flow | ||
android:id="@+id/flow1" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="10dp" | ||
app:constraint_referenced_ids="dev_email,dev_github,dev_linkedin,dev_stackoverflow" | ||
app:flow_firstHorizontalStyle="packed" | ||
app:flow_horizontalAlign="center" | ||
app:flow_horizontalGap="15dp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/dev_name" | ||
app:layout_constraintVertical_bias="0" /> | ||
|
||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/app_description" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="5dp" | ||
android:includeFontPadding="false" | ||
android:textAlignment="center" | ||
android:textColor="@color/base_theme_dark_onPrimaryContainer" | ||
android:textFontWeight="500" | ||
android:textSize="18sp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/app_name" | ||
app:layout_constraintVertical_bias="0" /> | ||
|
||
<com.google.android.material.imageview.ShapeableImageView | ||
android:id="@+id/org_logo" | ||
android:layout_width="0dp" | ||
android:layout_height="0dp" | ||
android:layout_marginTop="35dp" | ||
android:clickable="false" | ||
android:scaleType="fitCenter" | ||
android:src="@drawable/img_hand" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintDimensionRatio="1" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@id/flow1" | ||
app:layout_constraintVertical_bias="0" | ||
app:layout_constraintWidth_percent=".7" | ||
app:shapeAppearanceOverlay="@style/ShapeOverlayRoundedImageView" /> | ||
|
||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/org_description" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="35dp" | ||
android:includeFontPadding="false" | ||
android:textAlignment="center" | ||
android:textColor="@color/base_theme_dark_onPrimaryContainer" | ||
android:textFontWeight="500" | ||
android:textSize="18sp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/org_logo" | ||
app:layout_constraintVertical_bias="0" /> | ||
|
||
<com.google.android.material.divider.MaterialDivider | ||
android:id="@+id/divider2" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="25dp" | ||
app:dividerColor="@color/base_theme_dark_onPrimaryContainer" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/org_description" | ||
app:layout_constraintVertical_bias="0" | ||
app:layout_constraintWidth_percent=".6" /> | ||
|
||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/org_label" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="25dp" | ||
android:includeFontPadding="false" | ||
android:text="@string/org_label" | ||
android:textAlignment="center" | ||
android:textColor="@color/base_theme_dark_onPrimaryContainer" | ||
android:textFontWeight="800" | ||
android:textSize="14sp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/divider2" | ||
app:layout_constraintVertical_bias="0" /> | ||
|
||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/org_name" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="5dp" | ||
android:includeFontPadding="false" | ||
android:text="@string/org_name" | ||
android:textAlignment="center" | ||
android:textColor="@color/base_theme_dark_onPrimaryContainer" | ||
android:textFontWeight="500" | ||
android:textSize="18sp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/org_label" | ||
app:layout_constraintVertical_bias="0" /> | ||
|
||
<ImageButton | ||
android:id="@+id/org_website" | ||
android:layout_width="28dp" | ||
android:layout_height="28dp" | ||
android:background="@null" | ||
android:contentDescription="@null" | ||
android:src="@drawable/ic_website" | ||
app:tint="@color/base_theme_dark_onPrimaryContainer" /> | ||
|
||
<ImageButton | ||
android:id="@+id/org_email" | ||
android:layout_width="28dp" | ||
android:layout_height="28dp" | ||
android:background="@null" | ||
android:contentDescription="@null" | ||
android:src="@drawable/ic_email" | ||
app:tint="@color/base_theme_dark_onPrimaryContainer" /> | ||
|
||
<ImageButton | ||
android:id="@+id/org_github" | ||
android:layout_width="28dp" | ||
android:layout_height="28dp" | ||
android:background="@null" | ||
android:contentDescription="@null" | ||
android:src="@drawable/ic_github" | ||
app:tint="@color/base_theme_light_onSecondaryContainer" /> | ||
|
||
<ImageButton | ||
android:id="@+id/org_discord" | ||
android:layout_width="28dp" | ||
android:layout_height="28dp" | ||
android:background="@null" | ||
android:contentDescription="@null" | ||
android:src="@drawable/ic_discord" | ||
app:tint="@color/base_theme_dark_onPrimaryContainer" /> | ||
|
||
<ImageButton | ||
android:id="@+id/org_linkedin" | ||
android:layout_width="28dp" | ||
android:layout_height="28dp" | ||
android:background="@null" | ||
android:contentDescription="@null" | ||
android:src="@drawable/ic_linkedin" | ||
app:tint="@color/base_theme_dark_onPrimaryContainer" /> | ||
|
||
<ImageButton | ||
android:id="@+id/org_twitter" | ||
android:layout_width="28dp" | ||
android:layout_height="28dp" | ||
android:background="@null" | ||
android:contentDescription="@null" | ||
android:src="@drawable/ic_twitter" | ||
app:tint="@color/base_theme_dark_onPrimaryContainer" /> | ||
|
||
<ImageButton | ||
android:id="@+id/org_instagram" | ||
android:layout_width="28dp" | ||
android:layout_height="28dp" | ||
android:background="@null" | ||
android:contentDescription="@null" | ||
android:src="@drawable/ic_instagram" | ||
app:tint="@color/base_theme_dark_onPrimaryContainer" /> | ||
|
||
<ImageButton | ||
android:id="@+id/org_playstore" | ||
android:layout_width="28dp" | ||
android:layout_height="28dp" | ||
android:background="@null" | ||
android:contentDescription="@null" | ||
android:src="@drawable/ic_playstore" | ||
app:tint="@color/base_theme_dark_onPrimaryContainer" /> | ||
|
||
<androidx.constraintlayout.helper.widget.Flow | ||
android:id="@+id/flow2" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="10dp" | ||
app:constraint_referenced_ids="org_email,org_website,org_github,org_instagram,org_linkedin,org_twitter,org_discord,org_playstore" | ||
app:flow_firstHorizontalStyle="packed" | ||
app:flow_horizontalAlign="center" | ||
app:flow_horizontalGap="15dp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/org_name" | ||
app:layout_constraintVertical_bias="0" /> | ||
|
||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/app_version" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="25dp" | ||
android:includeFontPadding="false" | ||
android:textAlignment="center" | ||
android:textColor="@color/base_theme_dark_onPrimaryContainer" | ||
android:textFontWeight="600" | ||
android:textSize="16sp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/org_instagram" | ||
app:layout_constraintVertical_bias="0" | ||
tools:text="version 1.0" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</ScrollView> |