android在連拍菜單中增加連拍張數(shù)選項功能實現(xiàn)代碼
更新時間:2013年06月17日 15:46:27 作者:
想要增加連拍張數(shù)選項需要在entries, entryvalues中添加兩項,同時在mtk_strings.xml中添加相應的字符串,具體如下,感興趣的朋友可以參考下哈
修改\packages\apps\Camera\res\values\arrays.xml中的以下代碼:
<string-array name="pref_camera_continuous_number_entries">
<item>@string/pref_camera_continuous_number_normal</item>
<item>@string/pref_camera_continuous_number_large</item>
</string-array>
<string-array name="pref_camera_continuous_number_entryvalues" translatable="false">
<item>40</item>
<item>99</item>
</string-array>
需要在entries, entryvalues中添加兩項,同時在mtk_strings.xml中添加相應的字符串。
復制代碼 代碼如下:
<string-array name="pref_camera_continuous_number_entries">
<item>@string/pref_camera_continuous_number_normal</item>
<item>@string/pref_camera_continuous_number_large</item>
</string-array>
<string-array name="pref_camera_continuous_number_entryvalues" translatable="false">
<item>40</item>
<item>99</item>
</string-array>
需要在entries, entryvalues中添加兩項,同時在mtk_strings.xml中添加相應的字符串。
相關文章
Android實現(xiàn)簡單的下拉刷新pulltorefresh
這篇文章主要為大家詳細介紹了Android實現(xiàn)簡單的下拉刷新pulltorefresh的相關代碼,具有一定的實用性和操作價值,感興趣的小伙伴們可以參考一下2016-07-07Android編程之播放器MediaPlayer實現(xiàn)均衡器效果示例
這篇文章主要介紹了Android編程之播放器MediaPlayer實現(xiàn)均衡器效果,結合具體實例形式分析了Android調用MediaPlayer相關API構造均衡器的具體步驟與相關功能實現(xiàn)方法,需要的朋友可以參考下2017-08-08Android編程實現(xiàn)仿優(yōu)酷旋轉菜單效果(附demo源碼)
這篇文章主要介紹了Android編程實現(xiàn)仿優(yōu)酷旋轉菜單效果的方法,較為詳細的分析了Android實現(xiàn)旋轉菜單的布局與功能實現(xiàn)技巧,并附帶完整的demo源碼供讀者下載參考,需要的朋友可以參考下2015-12-12在Android Studio中設置Button透明度的方法詳解
本文將介紹在Android Studio中如何設置Button的透明度,首先,我們將展示實現(xiàn)該功能的整個流程,并使用表格列出每個步驟,然后,我們將詳細說明每個步驟需要做什么,并提供相應的代碼和注釋,需要的朋友可以參考下2023-09-09Android編輯框EditText與焦點變更監(jiān)視器及文本變化監(jiān)視器實現(xiàn)流程詳解
這篇文章主要介紹了Android編輯框EditText與焦點變更監(jiān)視器及文本變化監(jiān)視器實現(xiàn)流程,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習吧2022-09-09android使用intent傳遞參數(shù)實現(xiàn)乘法計算
這篇文章主要為大家詳細介紹了android使用intent傳遞參數(shù)實現(xiàn)乘法計算,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下2022-04-04