<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2014 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"
    android:id="@+id/dropdown_menu_text"
    android:orientation="vertical"
    android:gravity="center_vertical">

    <TextView android:id="@+id/dropdown_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="10dp"
        android:layout_marginEnd="10dp"
        android:ellipsize="end"
        android:singleLine="true"
        android:textSize="18sp"
        android:includeFontPadding="false"/>
    <TextView android:id="@+id/dropdown_sublabel"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="10dp"
        android:layout_marginEnd="10dp"
        android:textSize="14sp"
        android:textColor="#8b8b8b"
        android:ellipsize="end"
        android:singleLine="true"
        android:includeFontPadding="false"/>
</LinearLayout>

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2014 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"
    android:id="@+id/dropdown_menu_text"
    android:orientation="vertical"
    android:gravity="center_vertical">

    <TextView android:id="@+id/dropdown_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="10dp"
        android:layout_marginEnd="10dp"
        android:ellipsize="end"
        android:singleLine="true"
        android:textAlignment="viewStart"
        android:textSize="18sp"
        android:includeFontPadding="false"/>
    <TextView android:id="@+id/dropdown_sublabel"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="10dp"
        android:layout_marginEnd="10dp"
        android:textSize="14sp"
        android:textColor="#8b8b8b"
        android:ellipsize="end"
        android:singleLine="true"
        android:textAlignment="viewStart"
        android:includeFontPadding="false"/>
</LinearLayout>

Fix rtl rendering in DropdownPopupWindow
Fix rtl rendering in DropdownPopupWindow

There seems to be a bug where the text of a TextView occasionally vanishes if the text is rtl.

BUG=378268

Review URL: https://codereview.chromium.org/317333003

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@276244 0039d316-1c4b-4281-b951-d872f2087c98
