Используйте LINQ:
Dictionary<string, int> myDict = new Dictionary<string, int>();
myDict.Add("one", 1);
myDict.Add("four", 4);
myDict.Add("two", 2);
myDict.Add("three", 3);
var sortedDict = from entry in myDict orderby entry.Value ascending select entry;
Это также допускало бы большую гибкость, в которой можно выбрать лучшие 10, 20 10%, и т.д. Или если Вы используете свой индекс частотности слова для type-ahead
, Вы могли бы также включать StartsWith
пункт также.
Как насчет этого:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="@color/Black"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:textColor="@color/White"
android:layout_width="wrap_content"
android:text="Glowing Text"
android:layout_height="wrap_content"
android:padding="2dp"
android:shadowColor="@color/White"
android:shadowDx="0"
android:shadowDy="0"
android:shadowRadius="3" />
</LinearLayout>
найдено здесь: http://blog.stylingandroid.com/archives/378 :