優先順位で優先項目の右側にアイコンをマークする方法は?
-
28-10-2019 - |
質問
画像を表示するにはクリックしてくださいhttp://i1094.photobucket.com/albums/i455/tdounnyy/device.png
この優先反応性の下部には、「選択着信音」には右側にアイコン/ボタンがあります。
そして、「振動」はそうではありません。
この振動の好みは、1つの文化的好みが好みを拡張することです。
同じアイコンをVibrate列に入れたいです。 1つの方法は、ListPreferenceまたはRingTonePreferenceをチートOSに拡張することです。
私はこれが好きではありませんが、より良い解決策があるかどうか疑問に思います。 ^_^
repireces.xmlありがとう@femi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Layout used by PreferenceScreen. This is inflated inside
android.R.layout.preference. -->
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="4dip"
android:layout_gravity="center_vertical"
android:background="@drawable/btn_circle"
android:src="@drawable/ic_btn_round_more" />
次のようにプレフィックス「Android」を追加しました
android:background="@android:drawable/btn_circle"
android:src="@android:drawable/ic_btn_round_more" />
さて、Eclipseは次のように述べています:エラー:リソースは公開されていません。私はグーグルでグーグルしましたが、運はありません。突破する方法はありますか?
解決
設定XMLファイルを作成すると、好みのためにカスタムレイアウトを指定し、アイコンを入れることができます。それを行う最も簡単な方法は、Android SDKフォルダーを見ることです:プラットフォーム/データ// res/layout/(これはそれを信じている)には、さまざまな設定タイプに使用される実際のレイアウトファイルが含まれています。そこに、それをあなた自身のカスタム選好の基礎として使用します。
所属していません StackOverflow