在活动Android中删除默认工具栏

时间:2018-09-16 22:47:33

标签: android android-layout android-studio themes

升级到Dim gridRow = MyDataGridView.Rows(e.RowIndex) Dim rowView = DirectCast(gridRow.DataBoundItem, DataRowView) Dim tableRow = rowView.Row Select Case tableRow.RowState Case DataRowState.Unchanged '... Case DataRowState.Added '... Case DataRowState.Modified '... Case DataRowState.Deleted '... End Select 之前。我通常只是将主题更改为主题。应用紧凑。 android 3.1,但是NoTitleBar的新版本在识别它时出现了错误。我通过在开头添加基数来解决此问题。但是我似乎可以找到有关支持删除自定义栏的样式主题的任何答案。

3 个答案:

答案 0 :(得分:1)

Add this style in style file . where other styles are mentioned . 


<!-- Base application theme. -->
<style name="AppThemeNoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="colorPrimary">@color/colorPrimaryDark</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorPrimaryDark</item>
    <item name="android:statusBarColor">@color/lightgreycolor</item>
</style>

答案 1 :(得分:0)

在您的res/values/styles.xml中,您具有类似的代码块。 确保将Theme.AppCompat.Light.NoActionBar用作主题的parent

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
</style>

答案 2 :(得分:0)

就我而言,我不得不在 res/values/themes.xml 中更改父主题

enter image description here