Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d29af00 authored by guanxiongliu's avatar guanxiongliu
Browse files

Modifying editor fields layout for RTL

Screenshots b/27484594 #6

Bug:27484594
Change-Id: I79b635e2326ba8a07382a24032a05f3c61ec0d27
parent f50616b4
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2016 The Android Open Source Project

  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.
  -->

<!-- Button to select a date in the contact editor. -->
<Button
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/date_view"
    style="@style/SpinnerButtonStyle"
    android:layout_width="match_parent"
    android:layout_height="@dimen/editor_min_line_item_height"
    android:layout_weight="1"
    android:textSize="@dimen/editor_form_text_size"
    android:textAlignment="viewStart"
    android:paddingEnd="@dimen/editor_spinner_right_padding_workaround" />
 No newline at end of file
+29 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2016 The Android Open Source Project

  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.
  -->

<!-- Spinner for a field in the contact editor. -->
<Spinner
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/spinner"
    android:layout_gravity="bottom|start"
    style="@android:style/Widget.Material.Spinner.Underlined"
    android:dropDownWidth="@dimen/editor_type_label_dropdown_width"
    android:layout_width="@dimen/editor_type_label_width"
    android:layout_height="@dimen/editor_min_line_item_height"
    android:paddingBottom="0dp"
    android:paddingTop="0dp"
    android:paddingEnd="@dimen/editor_spinner_right_padding_workaround"/>
 No newline at end of file
+44 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 The Android Open Source Project

     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.
-->

<com.android.contacts.editor.GroupMembershipView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/group_membership_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal">

    <ImageView
        android:id="@+id/kind_icon"
        android:src="@drawable/ic_people_black_24dp"
        style="@style/EditKindIconStyle" />

    <Button
        style="@style/SpinnerButtonStyle"
        android:id="@+id/group_list"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:minHeight="@dimen/editor_min_line_item_height"
        android:textSize="@dimen/editor_form_text_size"
        android:textAlignment="viewStart"
        android:singleLine="true"
        android:ellipsize="end"
        android:focusable="true"
        android:layout_marginEnd="@dimen/editor_delete_button_size"
        android:layout_marginBottom="@dimen/editor_padding_between_editor_views"
        android:paddingEnd="@dimen/editor_spinner_right_padding"/>

</com.android.contacts.editor.GroupMembershipView>
 No newline at end of file
+2 −1
Original line number Diff line number Diff line
@@ -24,4 +24,5 @@
    android:layout_height="@dimen/editor_min_line_item_height"
    android:layout_weight="1"
    android:textSize="@dimen/editor_form_text_size"
    android:paddingRight="@dimen/editor_spinner_right_padding_workaround" />
    android:textAlignment="viewStart"
    android:paddingRight="@dimen/editor_spinner_right_padding" />
 No newline at end of file
+2 −2
Original line number Diff line number Diff line
@@ -19,11 +19,11 @@
<Spinner
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/spinner"
    android:layout_gravity="bottom"
    android:layout_gravity="bottom|start"
    style="@android:style/Widget.Material.Spinner.Underlined"
    android:dropDownWidth="@dimen/editor_type_label_dropdown_width"
    android:layout_width="@dimen/editor_type_label_width"
    android:layout_height="@dimen/editor_min_line_item_height"
    android:paddingBottom="0dp"
    android:paddingTop="0dp"
    android:paddingRight="@dimen/editor_spinner_right_padding_workaround" />
    android:paddingRight="@dimen/editor_spinner_right_padding"/>
 No newline at end of file
Loading