視訊直播系統原始碼,頂部標題欄的隱藏和標題修改

zhibo系統開發發表於2022-06-22

視訊直播系統原始碼,頂部標題欄的隱藏和標題修改

1、頂部標題欄的隱藏:

在我們的project工程下,找到“values”資料夾下的“themes.xml”或“styles.xml”檔案(檔案位置一致,後者優先順序更高),然後把以下程式碼

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


修改為:

<style name="Theme.Intelligent_agriculture" parent="Theme.MaterialComponents.DayNight.NoActionBar">
 
//只需要把DarkActionBar修改成NoActionBar


 2、頂部標題欄的標題修改:

首先,先開啟“manifests”資料夾下的“AndroidManifest.xml”檔案,設定主啟動介面的label標籤

<application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="智慧農業管理"
        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="農事記錄">
        </activity>
        <activity
            android:name=".MainActivity"
            android:exported="true"        //標誌為主啟動介面
            android:label="智慧農業管理">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
 
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
 
 
 
//通過:label標籤修改
//如果主啟動介面沒有設定label標籤,則APP的名稱為application標籤的label
//非主啟動的Activity沒有設定label標籤的情況下,預設顯示為APP的名稱


以上就是視訊直播系統原始碼,頂部標題欄的隱藏和標題修改, 更多內容歡迎關注之後的文章


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69978258/viewspace-2902208/,如需轉載,請註明出處,否則將追究法律責任。

相關文章