Open stari4ek opened 5 years ago
It can be easily fixed updating modal layouts:
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:focusable="true"
android:focusableInTouchMode="true"
tools:text="Wishlist"
tools:textColor="#000000">
<requestFocus/>
</Button>
android:focusable="true"
android:focusableInTouchMode="true"
<requestFocus/>
But it's really hard to apply this workaround when firebase-inappmessaging-display
is used as external library.
I've tried to override layout with tools:override
but it does not work for me (most probably cause it should override layout from layout-land
)
And the only way is to build library locally
/assign @MeghaB
Hi @stari4ek - Thanks for the suggestion! In the meantime, the android sdk for FIAM-display is open sourced and so you can definitely apply the workaround to use yourself. Cheers!
Yeah. I've ended up with prebuilt aar with workaround applied.
Since there is no source code published for firebase-inappmessage-display
starting from 17.0.3 (as date of writing, current version is 18.0.2) (#441) - and this issue can't be workarounded easily
looks like with 18.0.2 there is a bit different behavior. action button sometime gets focus sometime don't, but clicking with d-pad when it's not in the focus does not dismiss message, which is good. Checked with card/modal
What feature would you like to see?
Set focus to action button in FIAM display by default. Otherwise default focus goes to scrollview with text and clicking "enter" on D-Pad dismisses modal view instead of performing "Click" on action button.
How would you use it?
It provides better usability for Android TV system and standard Android if external keyboard is used