一、定制录制主题
录制界面包括右侧的图标工具栏、底部的工具栏、音乐面板、美颜面板、音效面板等。
1. 在app/res/values/style.xml中声明一个<style>,父主题指定为RecordStyle,重写你需要替换的样式,这些可替换的样式在 app/ugckit/res/values.theme_style.xml中可找到。
如下所示,替换录制界面的音乐图标和美颜图标:
<style name="RecordActivityTheme" parent="RecordStyle"><item name="recordMusicIcon">@drawable/ic_music</item><item name="recordBeautyIcon">@drawable/ic_beauty</item></style>
2. 在AndroidManifest.xml中声明你定制的主题:
<activityandroid:name="com.tencent.qcloud.xiaoshipin.videorecord.TCVideoRecordActivity"android:launchMode="singleTop"android:screenOrientation="portrait"android:theme="@style/RecordActivityTheme"android:windowSoftInputMode="adjustNothing" />
二、定制编辑主题
编辑界面包括编辑裁剪界面、动态滤镜特效面板、速度面板、滤镜面板、贴纸面板、气泡字幕面板。
1. 在app/res/values/style.xml中声明一个<style>,父主题指定为EditerStyle,重写你需要替换的样式,这些可替换的样式在 app/ugckit/res/values.theme_style.xml中可找到。
如下所示,替换编辑界面的播放图标和暂停图标:
<style name="EditerActivityTheme" parent="EditerStyle"> <item name="editorPlayIcon">@drawable/ic_play</item> <item name="editorPauseIcon">@drawable/ic_pause</item></style>
2. 在AndroidManifest.xml中声明你定制的主题:
<activity android:name=".videoeditor.TCVideoEffectActivity" android:screenOrientation="portrait" android:theme="@style/EditerActivityTheme" />