Home > Mobile >  The ListView control using a context menu item, location how to adjust?
The ListView control using a context menu item, location how to adjust?

Time:09-19



In the old android 4.4 system, a context menu can be full display,
Later to a new android 8.0 system, the context menu, only shows a small piece of area, have to scroll up and down in the menu area select a menu item,
How does ability let the context menu full display, please?

CodePudding user response:

You can use the popwindow

CodePudding user response:

reference 1st floor BDMH response:
you can use the popwindow


Well, should realize the pop-up context menu popwindow, certainly can be normal to implement this function,

CodePudding user response:

Or you set the android: try clipChildren="false", this is the child tried to without being limited by the container

CodePudding user response:

reference BDMH reply: 3/f
or you set android: try clipChildren="false", this is the child tried to without being limited by the container

Well, after the test, ListView with android: this property clipChildren="false", really can't control the problem ContenxtMenu display,
It seems that still use the Popup

CodePudding user response:

Using recyclerview, wrap, or directly write up layout, listview highly uncertain always has this problem

CodePudding user response:

reference 5 floor wang can reply:
use recyclerview, wrap, or directly write up layout, listview highly uncertain always has this problem


Using a ListView,
The version of android before 5. X, a context menu shows that there is no problem,
The android 7 began to have this problem,
  • Related