The invention provides an
interaction method for adaptively expanding full text of input box content, which comprises the following steps: triggering a first expansion condition when monitoring that the word number of the content of an input box exceeds the preset width of the input box, starting an expansion panel positioning calculation process after response, and calculating the display position and the
display size of an expansion panel by adopting an elastic
layout algorithm. And based on the display position and the
display size, rendering the unfolded panel on an independent graphic rendering layer through a layered rendering technology, and applying an
animation effect for display, thereby generating an input box display panel. After
user input is finished and the input box is out of focus, a preset triggering gesture of the input box is monitored, then a second unfolding condition is triggered, and the positioning calculation process is skipped to be executed after response. Registering and closing the monitor for the display panel of the input box, and when a preset hiding event is captured, controlling the hiding event to be hidden. The real-
time perception and dynamic adjustment of content growth are realized by establishing self-adaptive mapping of the input box content and the display form; by means of elastic
layout and layered rendering, input experience and interaction fluency are improved.