如何启用默认文本高亮菜单,如:在webviewview中复制/粘贴/搜索/共享?

我在android中使用webview开发应用程序.我正在使用CSS3 webkit属性将页面加载到webview并动态拆分多个列.一旦用户到达最后一页/列,我必须显示TOC确认对话框.任何人都可以请教我如何做到这一点?
height:600px;
-webkit-column-width:600px;
-webkit-column-count:auto;
Run Code Online (Sandbox Code Playgroud) 我试图将ImageView从子布局(Relativelayout)动画到父布局(相对布局).进入父布局时,imageview没有被绘制.
enter code
/** Called when the activity is first created. */
private static final int SWIPE_MIN = 20;
private static final int SWIPE_MAX_OFF_PATH = 250;
private static final int SWIPE_THRESHOLD = 20;
GestureDetector detector;
ImageView topImage;
ImageView bottomImage;
ImageView aView;
RelativeLayout rlBottomChild;
RelativeLayout rlTopChild;
FrameLayout flTopChild;
FrameLayout flBottomChild;
RelativeLayout table;
RelativeLayout relativeLayout ;
FrameLayout frameLayout ;
WindowManager wManger;
int screenWidth;
int screenHeight;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
wManger = getWindowManager();
screenWidth = wManger.getDefaultDisplay().getWidth();
screenHeight = wManger.getDefaultDisplay().getHeight();
detector …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用 Facebook Account-Kit 服务验证 Android/iOS 客户端电话号码或电子邮件地址。我不确定如何使用基于 Spring Boot 的后端服务器验证授权码或访问令牌并返回我自己的访问令牌。
在此之间,我已经彻底了解了这个博客https://www.baeldung.com/spring-security-5-oauth2-login,但它基于会话。我不清楚如何将其更改为无状态(例如 /oauth/token)。
任何人都可以让我知道如何解决这个问题吗?
参考:[ https://developers.facebook.com/docs/accountkit/graphapi][1]
这是我的代码:
@Configuration
@EnableOAuth2Client
public class SocialConfig extends WebSecurityConfigurerAdapter {
@Autowired
OAuth2ClientContext oauth2ClientContext;
private String[] PUBLIC_URL = { "/*", "/api/v1/account/validate", "login/accountkit", "/api/v1/account" };
@Override
protected void configure(HttpSecurity http) throws Exception {
// super.configure(http);
http.authorizeRequests()
.antMatchers(PUBLIC_URL).permitAll()
.anyRequest().authenticated()
.and().csrf()
.disable()
.addFilterBefore(ssoFilter(), BasicAuthenticationFilter.class);
}
private Filter ssoFilter() {
OAuth2ClientAuthenticationProcessingFilter filter = new OAuth2ClientAuthenticationProcessingFilter(
"/login/accountkit");
OAuth2ProtectedResourceDetails accountkit = accountKit();
OAuth2RestTemplate template = new OAuth2RestTemplate(accountkit, oauth2ClientContext);
filter.setRestTemplate(template);
UserInfoTokenServices userInfo = …Run Code Online (Sandbox Code Playgroud) android spring-security spring-social spring-boot spring-security-oauth2