{"action":"created","issue":{"url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/904","repository_url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer","labels_url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/904/labels{/name}","comments_url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/904/comments","events_url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/904/events","html_url":"https://github.com/CarGuo/GSYVideoPlayer/issues/904","id":304647686,"number":904,"title":"急急急！大佬这个问题怎么解决。","user":{"login":"DavaLc","id":29915195,"avatar_url":"https://avatars3.githubusercontent.com/u/29915195?v=4","gravatar_id":"","url":"https://api.github.com/users/DavaLc","html_url":"https://github.com/DavaLc","followers_url":"https://api.github.com/users/DavaLc/followers","following_url":"https://api.github.com/users/DavaLc/following{/other_user}","gists_url":"https://api.github.com/users/DavaLc/gists{/gist_id}","starred_url":"https://api.github.com/users/DavaLc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavaLc/subscriptions","organizations_url":"https://api.github.com/users/DavaLc/orgs","repos_url":"https://api.github.com/users/DavaLc/repos","events_url":"https://api.github.com/users/DavaLc/events{/privacy}","received_events_url":"https://api.github.com/users/DavaLc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-13T06:55:54Z","updated_at":"2018-03-13T08:50:35Z","closed_at":"2018-03-13T07:46:03Z","author_association":"NONE","body":"引入项目com.shuyu:GSYVideoPlayer:4.1.0\r\n里面的v7包版本是22  \r\napi   22  中  是这个    import android.suport.v7.internal.view.ContextThemeWrapper\r\n我的项目 api是27    \r\nv7包\r\napi  27中  是这个  import  android.suport.v7.view.ContextThemeWrapper\r\n那个类是  com.shuyu.gsyvideoplayer.utils.CommonUtil 。\r\n项目编译不报错，运行报错。提示找不到 ContextThemeWrapper这个类\r\n \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/comments/372590445","html_url":"https://github.com/CarGuo/GSYVideoPlayer/issues/904#issuecomment-372590445","issue_url":"https://api.github.com/repos/CarGuo/GSYVideoPlayer/issues/904","id":372590445,"user":{"login":"DavaLc","id":29915195,"avatar_url":"https://avatars3.githubusercontent.com/u/29915195?v=4","gravatar_id":"","url":"https://api.github.com/users/DavaLc","html_url":"https://github.com/DavaLc","followers_url":"https://api.github.com/users/DavaLc/followers","following_url":"https://api.github.com/users/DavaLc/following{/other_user}","gists_url":"https://api.github.com/users/DavaLc/gists{/gist_id}","starred_url":"https://api.github.com/users/DavaLc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavaLc/subscriptions","organizations_url":"https://api.github.com/users/DavaLc/orgs","repos_url":"https://api.github.com/users/DavaLc/repos","events_url":"https://api.github.com/users/DavaLc/events{/privacy}","received_events_url":"https://api.github.com/users/DavaLc/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T08:50:35Z","updated_at":"2018-03-13T08:50:35Z","author_association":"NONE","body":"大佬，如果只有一个fragment ，像demo里那么写没有问题。\r\n但是多个fragment 还是会出现刚刚的报错。\r\n  Caused by: java.lang.ClassNotFoundException: Didn't find class \"android.support.v7.internal.view.ContextThemeWrapper\"\r\n\r\n我是这么添加的fragment\r\n\r\n/**\r\n     * 获取到fragment集合\r\n     * @return\r\n     */\r\n    private ArrayList<Fragment> getFragments() {\r\n        fragments.add(HotDramaFragment.newInstance());\r\n        fragments.add(FilmFanFragment.newInstance());\r\n        fragments.add(MessageFragment.newInstance());\r\n        fragments.add(MyFragment2.newInstance());\r\n        return fragments;\r\n    }\r\n    /**\r\n     * 设置默认的fragment\r\n     */\r\n    public void setDefaultFragment() {\r\n        setBottomView(0);\r\n    }\r\n\r\n    //设置底部导航栏的改变\r\n    private void setBottomView(int i) {\r\n        rljIv.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.tab_chat_2));\r\n        rljTv.setTextColor(ContextCompat.getColor(this, R.color.color_888888));\r\n        ysmIv.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.tab_fans_2));\r\n        ysmTv.setTextColor(ContextCompat.getColor(this, R.color.color_888888));\r\n        xsIv.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.tab_news_2));\r\n        xsTv.setTextColor(ContextCompat.getColor(this, R.color.color_888888));\r\n        myIv.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.tab_user_2));\r\n        myTv.setTextColor(ContextCompat.getColor(this, R.color.color_888888));\r\n\r\n\r\n        if (i == 0) {\r\n            rljIv.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.tab_chat_1));\r\n            rljTv.setTextColor(ContextCompat.getColor(this, R.color.color_f06868));\r\n        } else if (i == 1) {\r\n            if (mainLll.getVisibility()== View.GONE){\r\n                showFooter();\r\n            }\r\n            ysmIv.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.tab_fans_1));\r\n            ysmTv.setTextColor(ContextCompat.getColor(this, R.color.color_f06868));\r\n        } else if (i == 2) {\r\n            if (mainLll.getVisibility()==View.GONE){\r\n                showFooter();\r\n            }\r\n            xsIv.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.tab_news_1));\r\n            xsTv.setTextColor(ContextCompat.getColor(this, R.color.color_f06868));\r\n        } else if (i == 3) {\r\n            if (mainLll.getVisibility()==View.GONE){\r\n                showFooter();\r\n            }\r\n            myIv.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.tab_user_1));\r\n            myTv.setTextColor(ContextCompat.getColor(this, R.color.color_f06868));\r\n        }\r\n\r\n        showFragment(i);\r\n\r\n    }\r\n    private int lastPosition = -1;//最后选择的位置\r\n    private int curIndex = -1;// 当前选中的左侧菜单的下标\r\n    //展示fragment\r\n    public void showFragment(int index){\r\n        if(index == lastPosition)\r\n            return;\r\n        FragmentManager fm = getSupportFragmentManager();\r\n        FragmentTransaction trx = fm.beginTransaction();\r\n        if(curIndex != -1)\r\n            trx.hide(fragments.get(curIndex));\r\n\r\n\r\n        if (!fragments.get(index).isAdded()) {\r\n            trx.add(R.id.layFrame, fragments.get(index),\r\n                    \"fragment_\" + index);\r\n        }\r\n        trx.show(fragments.get(index)).commitAllowingStateLoss();\r\n        curIndex = index;\r\n    }\r\n\r\n    public void hideFooter(){\r\n        mainLll.setVisibility(View.GONE);\r\n    }\r\n    public  void  showFooter(){\r\n        mainLll.setVisibility(View.VISIBLE);\r\n    }\r\n\r\n\r\n"}}
{"actor":{"display_login":"DavaLc"}}