-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Merge][AppLanguagePrompt] Add Other Languages Item
This CL makes it so the AppLanguagePrompt only shows the suggested languages to start. A "Other languages" item is added to the end of the list that when click expands the list to include all languages. (cherry picked from commit bdfa334) Bug: 1323985 Change-Id: I0ade9f39ccfd4f8e364a50d54a89f378a52d5d03 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3648393 Reviewed-by: Josh Simmons <jds@google.com> Commit-Queue: Trevor Perrier <perrier@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1003444} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3651354 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/5060@{#51} Cr-Branched-From: b83393d-refs/heads/main@{#1002911}
- Loading branch information
Trevor Perrier
authored and
Chromium LUCI CQ
committed
May 17, 2022
1 parent
48151bd
commit 4d9741b
Showing
5 changed files
with
122 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
chrome/browser/language/android/java/res/layout/app_language_prompt_more_languages.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2017 The Chromium Authors. All rights reserved. | ||
Use of this source code is governed by a BSD-style license that can be | ||
found in the LICENSE file. --> | ||
|
||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/app_language_prompt_row" | ||
style="@style/ListItemContainer" | ||
android:layout_height="wrap_content" | ||
android:layout_width="match_parent" | ||
android:orientation="horizontal"> | ||
|
||
<!-- Invisible but used for alignment of the TextView --> | ||
<RadioButton | ||
android:id="@+id/app_language_prompt_radiobutton" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:visibility="invisible" | ||
android:paddingEnd="8dp" /> | ||
|
||
<!-- TODO(https://crbug.com/1325465) Change wording --> | ||
<TextView | ||
android:id="@+id/more_languages_button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/languages_select_other" | ||
style="@style/TextAppearance.Button.Text.Blue" /> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters