小编Mar*_*101的帖子

渲染期间引发异常:无法找到操作栏的布局

刚刚使用Android Studio时我在编辑器中编辑了一个XML文件,我在预览和设计窗口中遇到了这个错误:

 Exception raised during rendering: Unable to find the layout for Action Bar.
Run Code Online (Sandbox Code Playgroud)

我已经尝试重新启动Android Studio,我的笔记本电脑和谷歌搜索,但我找不到任何东西.有没有人经历过类似的事情?

android android-studio

28
推荐指数
3
解决办法
2万
查看次数

尝试发布到朋友墙时OAuthException

我尝试使用Android中的Facebook api发布到朋友的墙上有很多麻烦.这就是我现在所拥有的:

if (facebook.isSessionValid()) {
                        String response = facebook.request((userID == null) ? "me" : userID);

                        Bundle params = new Bundle();
                        params.putString("message", "put message here");
                        params.putString("link", "http://mylink.com");    
                        params.putString("caption", "{*actor*} just posted this!");
                        params.putString("description", "description of my link.  Click the link to find out more.");
                        params.putString("name", "Name of this link!");
                        params.putString("picture", "http://mysite.com/picture.jpg");

                        response = facebook.request(((userID == null) ? "me" : userID) + "/feed", params, "POST");       

                        Log.d("Tests",response);
                        if (response == null || response.equals("") || 
                                response.equals("false")) {
                            Log.v("Error", "Blank response");
                        }
                    } else { …
Run Code Online (Sandbox Code Playgroud)

android facebook

4
推荐指数
1
解决办法
8711
查看次数

Android:在PagerTitleStrip中更改字体

有人知道怎么做这个吗?PagerTitleStrip类没有.setTypeface方法或类似的任何东西,所以我有点难过.

我发现的另一个回应是: You are probably best served copying the PagerTitleStrip code (in your SDK or available online), refactor your fork into your own package, and modify it to suit.但我不知道如何去做.

任何帮助将非常感激.

android

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

标签 统计

android ×3

android-studio ×1

facebook ×1