Make input into Presentation

from the CommonsWare Community archives

At January 3, 2019, 3:31am, leonsaber asked:

Greeting:

I have made external display through Presentation and create an EditText on it.
The question is how to make the input from MainActivity to EditText which on the external display. Thank you very much.

Sincerely,


At January 3, 2019, 12:29pm, mmurphy replied:

AFAIK, Presentation is output-only. You could have an EditText in MainActivity and mirror it to the Presentation — I have mirroring stuff for that in the CWAC-Presentation library.


At January 4, 2019, 1:01am, leonsaber replied:

mmurphy:

Thank you so much for your reply. I knew your layout SDK, which is very good~ but in my case, I will try to avoid use Mirror. I made one solution by myself, I set onKeyDown listener, through edittext.append() help me make input into edittext which on the external display. I listen to each Key case by case :frowning:.I knew this is not a very good solution but it is working for me. Hope got a better idea in the future. I think about why edittext.requestfocus() cannot work in PresentationFragment and how to make it work right now. BTW, thank you so much again.