2013-09-30 10 views
1

거의 하루 동안이 문제를 조사한 후에이 문제에 대해 Stack에 관해 더 잘 질문했습니다. 프로그램에서 발견 한 해결책은 항상 있습니다. lanuguage가 영어 인 때 같이 나는 그 때 중력을 놓고 그것을한다. 그러나 이것은 암호로 본문에서만이 문제점을 나에게주고있다. 다음은 비밀 번호 텍스트 발행 현지화

정상 상태에서 이미지 :

enter image description here

그리고 난 다시 영어 다시 아랍어에서 전환 할 때입니다 :

enter image description here

는 XML 그것에 관련된 :

<RelativeLayout 
     android:id="@+id/layoutDetails" 
     android:layout_width="180dp" 
     android:layout_height="200dp" 
     android:layout_alignTop="@+id/imvImage" 
     android:layout_marginLeft="20dp" 
     android:layout_toRightOf="@+id/lblTextView" 
     android:background="@drawable/login_bg" 
     android:paddingBottom="10dp" 
     android:paddingLeft="10dp" 
     android:paddingRight="10dp" 
     android:paddingTop="10dp" > 

     <EditText 
      android:id="@+id/txtPhoneNo" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:background="@drawable/textfiled_selected_ipad" 
      android:drawableRight="@drawable/login_icon" 
      android:hint="@string/_tel_no_" 
      android:inputType="number" 
      android:maxLength="15" 
      android:paddingLeft="5dp" /> 

     <EditText 
      android:id="@+id/txtPassword" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:layout_below="@+id/txtPhoneNo" 
      android:background="@drawable/textfiled_selected_ipad" 
      android:drawableRight="@drawable/password_icon" 
      android:hint="@string/_password" 
      android:inputType="textPassword" 
      android:paddingLeft="5dp" /> 

     <Button 
      android:id="@+id/btnLogin" 
      android:layout_width="match_parent" 
      android:layout_height="30dp" 
      android:layout_below="@+id/txtPassword" 
      android:layout_marginTop="15dp" 
      android:background="@drawable/btn_click_select" 
      android:text="@string/login" /> 

     <TextView 
      android:id="@+id/lblSignUp" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:layout_alignParentBottom="true" 
      android:text="@string/new_user_sign_up" /> 
    </RelativeLayout> 
+0

관련 레이아웃 XML을 게시하십시오. – ssantos

+0

@ssantos : 간단한 xml 파일. 만약 내가 그것을 붙여 넣을 수 있습니다. –

+0

그래, 나도 알아,하지만 가끔은 스크린 샷보다 더 많은 정보를 줄 수 있습니다 :) – ssantos

답변

0

확실히 어떤 종류의 버그가 있습니다. 제 내기가 아랍어로 당신의 TextViewsgravities을 망치고 있습니다. 왼쪽 중력을 txtPassword으로 설정하려고 시도 했습니까?

android:gravity="left" 
+0

나는 이미 해냈어. –