Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark Theme support #48

Closed
hammadbawara opened this issue Jan 20, 2024 · 1 comment
Closed

Dark Theme support #48

hammadbawara opened this issue Jan 20, 2024 · 1 comment

Comments

@hammadbawara
Copy link

I am getting this issue when I change the theme of app to Dark. Picker Dialog looks like this.
Screenshot_20240121_015935

@hampardaz
Copy link

hi
for fix
just use

PopUpConfig(
                        layoutId = R.layout.item_picker
                    )

and set ur own layout
like

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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="wrap_content"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:background="@color/transparent">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="10dp">

        <ImageView
            android:id="@id/sivLogo"
            android:layout_width="0dp"
            android:layout_height="0dp"
            android:adjustViewBounds="true"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintDimensionRatio="1:1"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintWidth_max="30dp"
            app:layout_constraintWidth_min="30dp"
            tools:srcCompat="@mipmap/ic_launcher"
            android:contentDescription="@string/app_name" />

        <TextView
            android:id="@id/mtvText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginStart="12dp"
            android:textAppearance="?textAppearanceTitleSmall"
            android:textSize="16sp"
            android:textStyle="bold"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintHorizontal_bias="0"
            app:layout_constraintStart_toEndOf="@id/sivLogo"
            app:layout_constraintTop_toTopOf="parent"
            tools:text="Camera" />
    </androidx.constraintlayout.widget.ConstraintLayout>
</RelativeLayout>

ChochaNaresh added a commit that referenced this issue Mar 14, 2024
- gradle update
- Version update
ChochaNaresh added a commit that referenced this issue Mar 14, 2024
- #48 add Dark Theme support for default popup layout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants