MVVMCross 앱에 BugSense 패키지를 설치하면 매우 이상한 상황이 발생합니다. EditText에 문자를 입력 할 때마다 커서가 첫 번째 문자로 이동합니다. 다음 글자를 타이프하기 위해 필드 끝으로 넘어 가야하기 때문에 이것은 매우 성가신 일입니다! 내 시작 화면이 사라질 때MVVMCross with Bugsense로 인해 Android에서 EditText 바인딩과 관련된 이상한 문제가 발생합니다.
이protected override void OnCreate(Bundle bundle)
{
BugSenseHandler.Instance.InitAndStartSession(new ExceptionManager(), ApplicationContext, "xxxxxxxx");
base.OnCreate(bundle);
}
내 LoginViewModel로 이동 : 내가 무슨 짓을
내가이 설정 내 SplashScreenView의 "한 OnCreate"의 재정에 있었다.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/white_full_box">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_centerHorizontal="false"
android:layout_centerInParent="true"
android:layout_marginBottom="@dimen/table_margin"
android:layout_marginLeft="@dimen/table_margin"
android:layout_marginTop="@dimen/dialog_margin"
android:padding="@dimen/zero"
android:background="@drawable/white_full_box">
<EditText
android:id="@+id/username"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/password"
android:layout_centerHorizontal="true"
android:layout_marginBottom="40dp"
android:ems="10"
android:hint="username"
android:layout_marginLeft="@dimen/table_margin"
android:inputType="textVisiblePassword"
android:singleLine="true"
local:MvxBind="Text UserName">
<requestFocus />
</EditText>
<EditText
android:id="@+id/password"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:ems="10"
android:hint="password"
android:layout_marginLeft="@dimen/table_margin"
android:inputType="textPassword"
local:MvxBind="Text Password" />
<Button
android:id="@+id/loginButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/password"
android:layout_centerHorizontal="true"
android:layout_marginTop="40dp"
android:layout_marginRight="@dimen/dialog_margin"
android:text="Login"
style="@style/ButtonStyle"
local:MvxBind="Click LoginCommand" />
</RelativeLayout>
</RelativeLayout>
을 그리고 난 그냥보기 모델의 사용자 이름, 암호 및 로그인 버튼 바인딩 일반 속성이 있습니다 내 로그인보기에 대한 나의 axml 지금처럼 보인다. 이 동작을 확인하기 위해 몇 가지 작업을 수행했습니다.
1.) 나는 버그 센스 초기화 코드를 남겨두고 사용자 이름에서 Text 바인드를 제거했습니다. 이 시나리오에서는 사용자 이름이 올바르게 작동하지만 암호 필드는 항상 각 문자 입력 후에 문자를 첫 번째 문자로 이동합니다.
2.) 사용자 입력란에 텍스트 바인딩을 다시 구현 한 다음 BugSense 초기화 코드를 주석 처리하고 모든 것이 올바르게 다시 작동하는 것으로 보입니다.
여기 무슨 일입니까? MVVMCross 앱에서 어디에서 BugSense 초기화를 수행해야합니까?
를 따라 할 수있는 문제를 조사 할 나타 납니까 .... 지금은 그것을 이동하고 있습니다 테스트에서 나중에 다른 것이 팝업되지 않는 한 문제를 해결하는 것처럼 보이는 MainView의 OnCreate 오버라이드에 – PkL728
문제가 해결되지 않았습니다. 이제 StartAndInit을 MainView로 이동하면 MainView 이후에 생성 된 활동에 동일한 문제가 발생합니다. 거기에 어떤 아이디어가 있습니까? – PkL728