Android 自定义操作栏
我尝试自定义ActionBar。以下是我的尝试: 我覆盖了背景,我想覆盖底部边框,并禁用操作栏下的阴影Android 自定义操作栏,android,android-ui,Android,Android Ui,我尝试自定义ActionBar。以下是我的尝试: 我覆盖了背景,我想覆盖底部边框,并禁用操作栏下的阴影 <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <bitmap xmlns:android="http://schemas.android.com/apk/res/android"
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<bitmap
xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/actionbar_bg"
android:tileMode="repeat" />
</item>
</layer>
参考这一点,我认为它对您有所帮助
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Bottom Line -->
<item>
<shape android:shape="rectangle">
// you can change here
<solid android:color="@color/action_bar_line_color" />
</shape>
</item>
<!-- Color of your action bar -->
<item android:bottom="2dip">
<shape android:shape="rectangle">
<solid android:color="@color/action_bar_color" />
</shape>
</item>
</layer-list>
//你可以在这里换车
参考这一点,我认为它对您有所帮助
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Bottom Line -->
<item>
<shape android:shape="rectangle">
// you can change here
<solid android:color="@color/action_bar_line_color" />
</shape>
</item>
<!-- Color of your action bar -->
<item android:bottom="2dip">
<shape android:shape="rectangle">
<solid android:color="@color/action_bar_color" />
</shape>
</item>
</layer-list>
//你可以在这里换车
我已经检查过了,但也有相同的用法。我无法按照这种方式覆盖底部边框。我已经检查过了,但有相同的方式使用。我无法按照这种方式覆盖底部边框。