aimybox-android-assistant icon indicating copy to clipboard operation
aimybox-android-assistant copied to clipboard

UI Customization

Open krauzee opened this issue 4 years ago • 8 comments

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

krauzee avatar Dec 01 '20 10:12 krauzee

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

bgubanov avatar Dec 02 '20 13:12 bgubanov

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

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

krauzee avatar Dec 02 '20 13:12 krauzee

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

bgubanov avatar Dec 02 '20 14:12 bgubanov

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 avatar Dec 02 '20 14:12 krauzee

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

krauzee avatar Dec 03 '20 08:12 krauzee

@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>

morfeusys avatar Dec 03 '20 15:12 morfeusys

@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

krauzee avatar Dec 03 '20 17:12 krauzee

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

morfeusys avatar Dec 03 '20 21:12 morfeusys