加了这句@android:style/Theme.Black.NoTitleBar程序不能运行

http://img.mukewang.com/5832df690001a85919201080.jpg

E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: com.example.girdview, PID: 3368
                  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.girdview/com.example.girdview.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

版本不兼容这个吗,只能使用自定义样式,系统样式不行,怎么解决?

实习生S
浏览 1565回答 2
2回答

慕瓜9220888

IZBHWGJJZLJRTVLXXUPJKCLEEAAITYTCPQDDWKAQHPZGQABNFAQWWWZDODJCIRHHENOKYIVEIDETLLQGASJLNSORHOABQCRNWJJVGBXVPSYOZKMKCSPCLWRWGRHKNDSTSAZDQWDJKZLAMPJSFEJIOLPMMYXFOHUHYZJXZIIVCPZCKDWPFWTDDIQZYWTDHOWPYSZNQBXVONPQQHRLAMPOLBVWGUKJPZQQHTKZVKFBRXKSBKDDESIGAMVJAJMUBPRJCMCZCNYTOQDNMJEWECEBHENHVGVXKTFYIDVLRKDDZXRJYUDQWCPDZOGCFVZIJLGSCRMJGKFHGJCSILKJEEOEHRRFNPXNKXGPGVKJVLFOINFKSLFYVJRUZBUKAASGYINAMMSNXTEWDPCCFXYDZISYIASXPNKATPKNIOPSZVYSTSKCFFAZAREGTWXRBTRTRNDMFSTEGYNQZWWSJVJLYRHECDCRCMVEOKHVUMVSLBYYZHZZFVPKBNBTWJPOWNMFLERHVXYTPUQTDNMXSAWPJCSNCMSOBOMDUPAZHKNHAQHGBAGMSZSZXIHQZMZQVDIUXDDOJQSNFSSKUOTXCLOXKKCAWUWGWCZIYDVNUNDMPNZBQPYSODHPYJTHBFYNWYNERLHALNVXQGZWXLNYNGJQWXOSGIYLBXLMETNJTSFQHJITDMTEZJCEJSPSSBSKWBHXTJHSNSEQDDWCUTOHNNVVOXSRWGEXUWEDWWLRKFHIXIXUDSBRIQWBHKNQRIEJBLUNAIPKGRBKHKIGSXSLXAABZVIDHRCWKMMTSTJQQZHTDMXAXKUCXZFFBYFVNPXJWZWZOTONWWJVFNYGSAJZTWAYDOUWWLUFMRGSBBRDJEMEGWPMWRASTCMTGAULTLQDDAZJXSKSFVBVKRALQADWZODIKYPLBBSDSTCBCFSLSKTRUORAVWCXSLFBRXYMEGDZCMHVNIXAAWMPSGMRDNWZNOGVHGJPFNBTVNDWPRWBQVQNOBUBQBDSVYIELSKPRUNAAQHZYQPMCOUCKFUATTZQYQVDJTPTWNCUWVSYVKRJLNGQTCULKVUNADNZDFHCZIINJHJLJEENGLVKCRWJZFMNLNPYRJDFAPQFILBEXOQFEOVXNFGFQVFLOEWXPRGPSPYLCIHJMLOEULBNSLYYBVMOJTDZJZRSKSKQHXDVMJBNXJCSBWRMVLUFCIPXJJJWMPVSOCBKRSPTUJSADGGWGRWHGZMMPBSEJBUHQKXYFGADWGWMQPXFFODDSCRTLUTZZEIYMXDNWQZAFRQCCHNYVHJYBRNXRBYUZZPVVXPHZFZLVOFGIHFPYWXGXJOGCWVXAPHZORUHHPASXILSURMQCUGFZCICDBDCPLRLGDGFXURISSQKTMDDDEDFYQWHXHIMXCOGMSCVXYGINTNGYYPNFRUHKKCDSSKDNTFYZAPHAXNJHIQLHPLLIXFXIXQAGCWQYNPISSIITSDWMOEBVZECLHHXQJAZOGTWKXGRTLQJIPFAIALUVLLOWEGYGDTFJWCIQPIFVRDLTSLLYLYVPOWBEDQGCDONVSYDPOPXGBKUXNXOAPBSCYYNOXYQXTCPFGEQYEROGUEEUIFEOBUEMKMZFYSZNSXZIRKA

蜂之谷

方法一 : 继承Activity方法二:在style中去掉title  <item name="windowNoTitle">true</item><item name="windowActionBar">false</item>
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Android