Android 安科主题与风格
有没有办法通过Anko向版面中添加主题和风格?谢谢Android 安科主题与风格,android,kotlin,anko,Android,Kotlin,Anko,有没有办法通过Anko向版面中添加主题和风格?谢谢 <RelativeLayout android:id="@+id/rlHeaderLayout" style="?defaultStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="?topBarThemeContext"> 我只是用谷歌搜索同一个问题,然后找到答案 主题 Anko支持主题覆盖(x
<RelativeLayout
android:id="@+id/rlHeaderLayout"
style="?defaultStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="?topBarThemeContext">
我只是用谷歌搜索同一个问题,然后找到答案 主题 Anko支持主题覆盖(xml方式是在任何视图中添加
android:theme
parameter>),在任何视图或布局之前添加theme
前缀:
kotlin themedLinearLayout(ThemeOverlay_AppCompat_Dark) {
orientation = VERTICAL
gravity = BOTTOM
}