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

UI Customization #59

Open
krauzee opened this issue Dec 1, 2020 · 8 comments · Fixed by #60
Open

UI Customization #59

krauzee opened this issue Dec 1, 2020 · 8 comments · Fixed by #60

Comments

@krauzee
Copy link

krauzee commented Dec 1, 2020

I wanna custom ui. I wanna see messages from user on right and I ovveride "gravity" attribute, but its not works:(
Any help is appreciated.

image

photo_2020-12-01_13-34-25
1

@bgubanov
Copy link
Contributor

bgubanov commented Dec 2, 2020

Hello, please try using android:layout_gravity instead of android:gravity

@krauzee
Copy link
Author

krauzee commented Dec 2, 2020

Hello, please try using android:layout_gravity instead of android:gravity

Hello! I tried using "android:layout_gravity" but it also doesn't work:(

@bgubanov
Copy link
Contributor

bgubanov commented Dec 2, 2020

Have you overrided android:gravity attribute of parent layout? If yes, try to delete it. I tried your case with your params on default layout and it worked

@krauzee
Copy link
Author

krauzee commented Dec 2, 2020

Have you overrided android:gravity attribute of parent layout? If yes, try to delete it. I tried your case with your params on default layout and it worked

do you mean by parent_layout is "aimybox_container"? Can you show me your code please?

@krauzee
Copy link
Author

krauzee commented Dec 3, 2020

Have you overrided android:gravity attribute of parent layout? If yes, try to delete it. I tried your case with your params on default layout and it worked

Please, try to set attr "layout_width" to wrap_content, after this attr gravity and layout_gravity was no work

@morfeusys
Copy link
Collaborator

@krauzee we have published a new version of components. Please try to use implementation("com.justai.aimybox:components:0.1.10") and then update your styles like:

    <style name="CustomRecognitionWidgetTheme" parent="DefaultAssistantTheme.Widget.Recognition">
        <item name="android:gravity">left</item>
    </style>

    <style name="CustomResponseWidgetTheme" parent="DefaultAssistantTheme.Widget.Response">
        <item name="android:gravity">end</item>
    </style>

@krauzee
Copy link
Author

krauzee commented Dec 3, 2020

@krauzee we have published a new version of components. Please try to use implementation("com.justai.aimybox:components:0.1.10") and then update your styles like:

    <style name="CustomRecognitionWidgetTheme" parent="DefaultAssistantTheme.Widget.Recognition">
        <item name="android:gravity">left</item>
    </style>

    <style name="CustomResponseWidgetTheme" parent="DefaultAssistantTheme.Widget.Response">
        <item name="android:gravity">end</item>
    </style>

Gradle can't download components-0.1.10
Endless loading occurs:(

so already 20 minutes
image

@morfeusys
Copy link
Collaborator

You can check that it's available via jcenter normally.

@just-ai just-ai deleted a comment from Billthebest1 Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants