当前位置:网站首页>Source code of live video system, hiding and Title Modification of the top title bar

Source code of live video system, hiding and Title Modification of the top title bar

2022-06-22 17:37:00 Yunbao network technology

Live video system source code , Hide the top title bar and modify the title
1、 Hide the top title bar :
In our project Under the project , find “values” Under folder “themes.xml” or “styles.xml” file ( Consistent file location , The latter has a higher priority ), Then put the following code

<style name="Theme.Intelligent_agriculture" parent="Theme.MaterialComponents.DayNight.DarkActionBar">

It is amended as follows :

<style name="Theme.Intelligent_agriculture" parent="Theme.MaterialComponents.DayNight.NoActionBar">
 
// Only need to DarkActionBar Modified into NoActionBar

2、 The title of the top title block is modified :
First , To open the first “manifests” Under folder “AndroidManifest.xml” file , Set the... Of the main startup interface label label

<application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label=" Smart agricultural management "
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.Intelligent_agriculture">
        <activity
            android:name=".new_farming"
            android:exported="false"
            android:label=" Farming records ">
        </activity>
        <activity
            android:name=".MainActivity"
            android:exported="true"        // Mark the main startup interface 
            android:label=" Smart agricultural management ">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
 
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
 
 
 
// adopt :label Label modification 
// If the main startup interface is not set label label , be APP For the name of the application Labeled label
// Non main start Activity No settings label Label case , The default display is APP The name of 

The above is the source code of the live video system , Hide the top title bar and modify the title , More content welcome to follow the article

原网站

版权声明
本文为[Yunbao network technology]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221548003864.html