[Panlingual][Settings] Add top intro on the top of app list.

- show a message for app selection of user to avoid any confusion of
   searching app.

Bug: b/230689178
Test: see b/230689178
Change-Id: I597e718b81bd7a5019c69dbdfc02f26d7f3af5fd
This commit is contained in:
tom hsu
2022-05-13 17:57:14 +08:00
committed by Tom Hsu
parent 8a823a2c2c
commit 36693d8096
3 changed files with 63 additions and 13 deletions

View File

@@ -85,6 +85,14 @@ public class ApplicationViewHolder extends RecyclerView.ViewHolder {
return view;
}
static View newHeader(ViewGroup parent, int resText) {
ViewGroup view = (ViewGroup) LayoutInflater.from(parent.getContext())
.inflate(R.layout.preference_app_header, parent, false);
TextView textView = view.findViewById(R.id.apps_top_intro_text);
textView.setText(resText);
return view;
}
void setSummary(CharSequence summary) {
mSummary.setText(summary);
}