when prefix is set, edit text doesn't show cursor when it's empty
Opened this issue · 4 comments
raylee4204 commented
When edit text is cursor's at position 0 when focused, the cursor is not visible when prefix is set
raylee4204 commented
HITGIF commented
raylee4204 commented
Here's my code
`
<android.support.design.widget.AppBarLayout
android:id="@+id/lyt_app_bar"
android:layout_width="match_parent"
android:layout_height="@dimen/profile_banner_size"
android:elevation="@dimen/elevation_default"
android:fitsSystemWindows="true"
android:theme="@style/AppTheme.AppBarOverlay.Dark">
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/collapsing_toolbar"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:contentScrim="@color/color_dark_primary"
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
app:titleEnabled="false">
<ImageView
android:id="@+id/img_profile"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_collapseMode="parallax"
app:layout_collapseParallaxMultiplier="0.7"
tools:src="@color/grey_dark" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/profile_banner_overlay_height"
android:background="@drawable/bg_gradient_overlay_top"
android:fitsSystemWindows="true"
app:layout_collapseMode="pin" />
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
app:layout_collapseMode="pin"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<android.support.v4.widget.NestedScrollView
android:id="@+id/scroll_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/txt_social_links"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="16dp"
android:focusable="true"
android:focusableInTouchMode="true"
android:text="Add social links to your profile"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<studio.carbonylgroup.textfieldboxes.TextFieldBoxes
android:id="@+id/lyt_twitter_input"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="24dp"
app:iconSignifier="@drawable/ic_twitter_dark"
app:labelText="Twitter"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/txt_social_links">
<studio.carbonylgroup.textfieldboxes.ExtendedEditText
android:id="@+id/edt_twitter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:imeOptions="actionDone|flagNoFullscreen"
android:textColor="@color/text_primary_dark"
app:prefix="\@"
app:prefixTextColor="@color/text_hint" />
</studio.carbonylgroup.textfieldboxes.TextFieldBoxes>
<studio.carbonylgroup.textfieldboxes.TextFieldBoxes
android:id="@+id/lyt_instagram_input"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="24dp"
app:iconSignifier="@drawable/ic_instagram"
app:labelText="Instagram"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/lyt_twitter_input">
<studio.carbonylgroup.textfieldboxes.ExtendedEditText
android:id="@+id/edt_instagram"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:imeOptions="actionDone|flagNoFullscreen"
android:textColor="@color/text_primary_dark"
app:prefix="\@"
app:prefixTextColor="@color/text_hint" />
</studio.carbonylgroup.textfieldboxes.TextFieldBoxes>
</android.support.constraint.ConstraintLayout>
</android.support.v4.widget.NestedScrollView>
`
raylee4204 commented
If I navigate to next text field for the first time, the cursor doesn't show