小编bae*_*n83的帖子

工具栏菜单项无法在Android 4.4(19)上单击

我有一个适用于Android sdk版本23的Android应用程序.现在我尝试使用版本19到23的用户可用.所有工作正常,期望应用程序头部的工具栏.我无法点击菜单项.点击时没有任何动静.此外,如果我插入Log.v(),调试视图中没有消息.

我能做什么?

public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();

        //noinspection SimplifiableIfStatement
        if (id == R.id.action_settings) {
            return true;
        }

        if (id == R.id.action_refresh) {
            doRefreshGames(item);
            return true;
        }

        if(id == R.id.action_rss){
            Intent rssIntent = new Intent(AmericanFootball.this, AmericanFootballRSS.class);
            //if you need to pass data:
            Bundle mBundle = new …
Run Code Online (Sandbox Code Playgroud)

android toolbar android-toolbar

6
推荐指数
1
解决办法
457
查看次数

Sudoers文件中的正则表达式?

我有一个正则表达式,并希望在sudoers文件中使用它.但我无法让它发挥作用.

\/test\/([0-9a-zA-Z\/]+\.[0-9a-zA-Z]+)+
Run Code Online (Sandbox Code Playgroud)

我发现它一定是

\\/test\\/([0-9a-zA-Z\/]+\.[0-9a-zA-Z]+)+
Run Code Online (Sandbox Code Playgroud)

但我不知道如何在/后使用正则表达式([...

我可以使用1到n的加号吗?我该逃脱什么?如何?

regex linux sudo sudoers

2
推荐指数
1
解决办法
6093
查看次数

标签 统计

android ×1

android-toolbar ×1

linux ×1

regex ×1

sudo ×1

sudoers ×1

toolbar ×1