question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi , this is rtl direction for ‘Persian (Farsi)’ and ‘Arabic’ languages

rtl direction


<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal">

    <android.support.v7.widget.AppCompatImageButton
        android:id="@+id/text_field_boxes_imageView"
        android:layout_width="@dimen/icon_signifier_width"
        android:layout_height="@dimen/icon_signifier_height"
        android:layout_alignParentEnd="true"
        android:layout_alignParentRight="true"
        android:layout_marginLeft="@dimen/icon_signifier_marginEnd"
        android:layout_marginStart="@dimen/icon_signifier_marginEnd"
        android:layout_marginTop="@dimen/icon_signifier_marginTop"
        android:background="?selectableItemBackgroundBorderless"
        android:contentDescription="icon"
        android:visibility="gone" />

    <RelativeLayout
        android:id="@+id/text_field_boxes_right_shell"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_toLeftOf="@+id/text_field_boxes_imageView"
        android:layout_toStartOf="@+id/text_field_boxes_imageView">

        <studio.carbonylgroup.textfieldboxes.ClipToBoundsView
            android:id="@+id/text_field_boxes_panel"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_alignParentEnd="true"
            android:layout_alignParentRight="true"
            android:layout_alignParentTop="true"
            android:background="@drawable/bg"
            android:clickable="true"
            android:focusable="true"
            android:foreground="?attr/selectableItemBackground">

            <FrameLayout
                android:id="@+id/bg_bottom_line"
                android:layout_width="wrap_content"
                android:layout_height="@dimen/bottom_line_height"
                android:layout_alignEnd="@+id/text_field_boxes_upper_panel"
                android:layout_alignLeft="@+id/text_field_boxes_upper_panel"
                android:layout_alignRight="@+id/text_field_boxes_upper_panel"
                android:layout_alignStart="@+id/text_field_boxes_upper_panel"
                android:layout_below="@+id/text_field_boxes_upper_panel" />

            <RelativeLayout
                android:id="@+id/text_field_boxes_upper_panel"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_alignParentEnd="true"
                android:layout_alignParentRight="true"
                android:layout_alignParentTop="true"
                android:paddingEnd="@dimen/upper_panel_paddingEnd"
                android:paddingLeft="@dimen/upper_panel_paddingStart"
                android:paddingRight="@dimen/upper_panel_paddingEnd"
                android:paddingStart="@dimen/upper_panel_paddingStart">

                <android.support.v7.widget.AppCompatTextView
                    android:id="@+id/text_field_boxes_label"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentRight="true"
                    android:layout_marginTop="@dimen/label_idle_margin_top"
                    android:gravity="center"
                    android:includeFontPadding="false"
                    android:textSize="@dimen/label_text_size"
                    tools:text="Label" />

                <android.support.v4.widget.Space
                    android:id="@+id/text_field_boxes_label_space"
                    android:layout_width="wrap_content"
                    android:layout_height="@dimen/label_space_height"
                    android:layout_alignEnd="@+id/text_field_boxes_editTextLayout"
                    android:layout_alignLeft="@+id/text_field_boxes_editTextLayout"
                    android:layout_alignParentTop="true"
                    android:layout_alignRight="@+id/text_field_boxes_editTextLayout"
                    android:layout_alignStart="@+id/text_field_boxes_editTextLayout" />

                <LinearLayout
                    android:id="@+id/text_field_boxes_editTextLayout"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_below="@+id/text_field_boxes_label_space"
                    android:layout_gravity="bottom"
                    android:orientation="horizontal">

                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="bottom|start"
                        android:background="@android:color/transparent"
                        android:orientation="horizontal">

                        <android.support.v7.widget.AppCompatImageButton
                            android:id="@+id/text_field_boxes_end_icon_button"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:background="?selectableItemBackgroundBorderless"
                            android:minHeight="@dimen/end_icon_min_height"
                            android:minWidth="@dimen/end_icon_min_width"
                            android:visibility="gone" />

                        <android.support.v7.widget.AppCompatImageButton
                            android:id="@+id/text_field_boxes_clear_button"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:background="?selectableItemBackgroundBorderless"
                            android:minHeight="@dimen/clear_button_min_height"
                            android:minWidth="@dimen/clear_button_min_width"
                            android:visibility="gone" />

                    </LinearLayout>

                    <RelativeLayout
                        android:id="@+id/text_field_boxes_input_layout"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content" />

                </LinearLayout>

                <android.support.v4.widget.Space
                    android:id="@+id/text_field_boxes_label_space_below"
                    android:layout_width="wrap_content"
                    android:layout_height="@dimen/label_space_height"
                    android:layout_alignEnd="@+id/text_field_boxes_editTextLayout"
                    android:layout_alignLeft="@+id/text_field_boxes_editTextLayout"
                    android:layout_alignRight="@+id/text_field_boxes_editTextLayout"
                    android:layout_alignStart="@+id/text_field_boxes_editTextLayout"
                    android:layout_below="@+id/text_field_boxes_editTextLayout"
                    android:background="@color/A400red"
                    android:visibility="gone" />

            </RelativeLayout>

        </studio.carbonylgroup.textfieldboxes.ClipToBoundsView>

        <RelativeLayout
            android:id="@+id/text_field_boxes_bottom"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignEnd="@+id/text_field_boxes_panel"
            android:layout_alignLeft="@+id/text_field_boxes_panel"
            android:layout_alignRight="@+id/text_field_boxes_panel"
            android:layout_alignStart="@+id/text_field_boxes_panel"
            android:layout_below="@id/text_field_boxes_panel"
            android:layout_marginTop="@dimen/bottom_marginTop"
            android:paddingEnd="@dimen/upper_panel_paddingEnd"
            android:paddingLeft="@dimen/upper_panel_paddingStart"
            android:paddingRight="@dimen/upper_panel_paddingEnd"
            android:paddingStart="@dimen/upper_panel_paddingStart">

            <android.support.v7.widget.AppCompatTextView
                android:id="@+id/text_field_boxes_helper"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:layout_alignParentRight="true"
                android:layout_marginLeft="@dimen/helper_marginEnd"
                android:layout_marginStart="@dimen/helper_marginEnd"
                android:layout_toEndOf="@+id/text_field_boxes_counter"
                android:layout_toRightOf="@+id/text_field_boxes_counter"
				android:gravity="right"
                android:textSize="@dimen/helper_text_size" />

            <android.support.v7.widget.AppCompatTextView
                android:id="@+id/text_field_boxes_counter"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentLeft="true"
                android:layout_alignParentStart="true"
                android:textSize="@dimen/counter_text_size" />

        </RelativeLayout>

    </RelativeLayout>

</RelativeLayout>


Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
MahdiDelnavazicommented, Jan 15, 2019

با سلام کد های ایکس ام ال رو کپلی کردم ولی هنوز مشکل لیبل که تو کوچیک شدن میره سمت راست هست

0reactions
afkhami7ecommented, Aug 9, 2019

با سلام کد های ایکس ام ال رو کپلی کردم ولی هنوز مشکل لیبل که تو کوچیک شدن میره سمت راست هست سلام اره من این مشکل رو دارم

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS direction property - W3Schools
The direction property specifies the text direction/writing direction within a block-level element. Tip: Use this property together with the unicode-bidi ...
Read more >
direction - CSS-Tricks
rtl – Right to Left; inherit – inherits its value from the parent element. The text on this page is set in the...
Read more >
Structural markup and right-to-left text in HTML - W3C
The LTR/RTL direction of the page shouldn't affect the location ... For example, if the html tag declares the document direction to be...
Read more >
Right-to-left Styling - RTL Styling 101
To my knowledge, the vertical scrollbar direction inside a container in CSS changes based on the page direction. For an RTL layout, the...
Read more >
CSS | direction Property - GeeksforGeeks
rtl : Specifies the direction as right to left. · ltr(default): Specifies the direction as left to right which is also the default...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found