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

Error file_chooser_dialog_list_item_file #53

Open
seregin-pro opened this issue Jul 22, 2020 · 2 comments
Open

Error file_chooser_dialog_list_item_file #53

seregin-pro opened this issue Jul 22, 2020 · 2 comments

Comments

@seregin-pro
Copy link

seregin-pro commented Jul 22, 2020

Hello.
I started to test version 2.0.18.
Android 10

I have 1 error when I choose an image:

android.view.InflateException: Binary XML file line #2 in ru.pro.seregin.notes:layout/file_chooser_dialog_list_item_file: Binary XML file line #2 in ru.pro.seregin.notes:layout/file_chooser_dialog_list_item_file: Error inflating class
Caused by: android.view.InflateException: Binary XML file line #2 in ru.pro.seregin.notes:layout/file_chooser_dialog_list_item_file: Error inflating class

error

@dankito
Copy link
Owner

dankito commented Jul 23, 2020

Hi @seregin-pro,

i guess the issue is that one of the theme values is missing.

If you derive your activity theme from "FileChooserDialogAppThemeLight" or "FileChooserDialogAppThemeDark" or even from "RichTextEditorAppThemeLight" or "RichTextEditorAppThemeDark" does it work then?

If so, either keep them as parent theme or check their values here and copy them to your theme:
https://github.com/dankito/RichTextEditor/blob/master/RichTextEditorAndroid/src/main/res/values/themes.xml
https://github.com/dankito/AndroidFileChooserDialog/blob/master/FileChooserDialog/src/main/res/values/styles.xml

Sorry for the bad code quality the last few weeks, but i rarely have time and do the changes hastily late in the night.

It will take at least three weeks till i will find time again so that i can dig deeply into the code and find out what the issue is.

@seregin-pro
Copy link
Author

I guess I did something wrong because a can't start my activity

I added styles.xml

<style name="FileChooserDialogAppThemeLight" parent="AppThemeLightBase"> <item name="FileChooserDialogFileIconTintColor">@color/fileChooserDialogFileIconTintColor_Light</item> <item name="FileChooserDialogFileIsSelectedCheckMarkTintColor">@color/fileChooserDialogFileIsSelectedCheckMarkTintColor_Light</item> <item name="FileChooserDialogNavigationMenuItemsIconTintColor">@color/fileChooserDialogNavigationMenuItemsIconTintColor_Light</item> </style>

and created themes.xml

<style name="EditorTheme" parent="RichTextEditorAppThemeLight"> </style>
<style name="RichTextEditorAppThemeLight" parent="FileChooserDialogAppThemeLight">
    <item name="themeName">RichTextEditorAppThemeLight</item>
</style>

`

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

2 participants