码迷,mamicode.com
首页 >  
搜索关键字:theme    ( 1906个结果)
android 自定义title 报错 You cannot combine custom titles with other title feat
solution: http://www.apkbus.com/android-80416-1-1.html http://www.eoeandroid.com/forum.php?mod=viewthread&tid=225717 要么theme更改成为Theme.Light低版本的,要么自己重新...
分类:移动开发   时间:2015-04-15 18:58:57    阅读次数:137
You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法
报错如下: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. 解决方法: 创建的activity是MainActivity extends ActionBarActivity这样的。把后面的ActionBarActivity改...
分类:移动开发   时间:2015-04-15 17:04:38    阅读次数:153
android-studio 使用过程遇到的问题,持续中...
1、Rendering Problems Missing styles 设计界面布局时显示的错误: [plain] view plaincopy Rendering Problems    Missing styles. Is the correct theme chosen for this layout?     Use the Them...
分类:移动开发   时间:2015-04-15 13:43:23    阅读次数:190
POJ 1743 Musical Theme
都在注释里了 //第一个想法是枚举那个差值,然后把该字符串复制一遍加在后面 //看了网上的做法,仔细观察一下同一主题的两个字符串,发现都加上一个数之后,虽然值变了,但相邻的数的差值是没有变的 //所以可以对相邻数的差值求height数组 #include #include using namespace std; #define N 20005 int n; int s[N],r[N],sa...
分类:其他好文   时间:2015-04-15 13:37:26    阅读次数:112
Android设置Activity背景为透明style
方法一:通过Theme.Translucent@android:style/Theme.Translucent @android:style/Theme.Translucent.NoTitleBar @android:style/Theme.Translu...
分类:移动开发   时间:2015-04-14 16:01:34    阅读次数:200
Android Studio 基本设置图解教程
Android Studio 简单设置界面设置默认的 Android Studio 为灰色界面,可以选择使用炫酷的黑色界面。Settings-->Appearance-->Theme,选择Darcula主题即可。字体设置系统字体设置如果你的Android Studio界面中,中文显示有问题,或者选择...
分类:移动开发   时间:2015-04-14 14:32:13    阅读次数:159
自定义dialog-----activity
android自带的dialog样式一般不满足自己的要求,那就要求dialog自定义。 其实,activity也是可以以dialog的形式存在的,我们只需在清单文件中设置其theme属性即可:             android:name=".EditActivity"             android:theme="@android:style/Theme.Dialog" ...
分类:其他好文   时间:2015-04-13 23:02:33    阅读次数:197
ActivityChooserView-具体使用事例
今天接触到了数据分享这个类,现在总结一下它的具体使用方法1.直接绑定一个menu item上,代码如下其实,这里面的icon可以不用设置,因为你设置了也没有什么效果。它其实是在theme中设定 只要我们在这个按钮上绑定了这个类,当我们点击这个按钮的时候,就会自动打开它了。不过,这个类也需要满足...
分类:其他好文   时间:2015-04-13 18:23:10    阅读次数:756
You need to use a Theme.AppCompat theme (or descendant) with this activity
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test2/com.example.test2.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or desce...
分类:移动开发   时间:2015-04-12 17:51:58    阅读次数:412
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!