Patent attributes
A method and a device for providing a user interface (UI) in an electronic device are provided. The electronic device includes a display that displays a UI corresponding to an operation state of the display, and a processor electrically connected with the display, wherein the processor is configured to determine the operation state of the display, display a first UI based on a first object according to a basic arrangement when the operation state is a first state, display a second UI based on the first object and a second object associated with the first object according to an expanded arrangement when the operation state is a second state, and display the second object in an area adjacent to the first object, corresponding to the expanded arrangement.