aimybox-android-assistant
aimybox-android-assistant copied to clipboard
UI Customization
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.
1
Hello, please try using android:layout_gravity instead of android:gravity
Hello, please try using android:layout_gravity instead of android:gravity
Hello! I tried using "android:layout_gravity" but it also doesn't work:(
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
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?
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 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 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
You can check that it's available via jcenter normally.