刚刚使用Android Studio时我在编辑器中编辑了一个XML文件,我在预览和设计窗口中遇到了这个错误:
Exception raised during rendering: Unable to find the layout for Action Bar.
Run Code Online (Sandbox Code Playgroud)
我已经尝试重新启动Android Studio,我的笔记本电脑和谷歌搜索,但我找不到任何东西.有没有人经历过类似的事情?
我尝试使用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) 有人知道怎么做这个吗?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.但我不知道如何去做.
任何帮助将非常感激.