2017-01-30 14 views
0

내 편집 텍스트에서 텍스트를 "모두 선택"하면 텍스트가 선택되고 투명하게 나타납니다.

enter image description here."Select All"은 Edetext Android에서 투명 선택을 표시합니다.

레이아웃

<LinearLayout 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:layout_marginTop="10dp" 
      android:background="@drawable/chat_rounded_corner"> 

      <EditText 
       android:id="@+id/question" 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" 
       android:textCursorDrawable="@null" 
       android:background="@null" 
       android:ems="10" 
       android:hint="Ask something...?" 
       android:inputType="textMultiLine" 
       android:minHeight="45dp" 
       android:paddingLeft="15dp" 
       android:textColor="@color/black" 
       android:textColorHint="@color/base"/> 
     </LinearLayout> 
+0

당신이 스타일을 게시 할 수 ... XML 모드이이 문제를 해결할 수

android:textColorHighlight="#ff0000" 

EditTextTextHightLight 속성을 사용하는 작업에 적용되는? 특정 앱이없는 경우 앱 전체에서 사용중인 앱 일 수 있습니다. 'styles.xml' 또는'themes.xml'에있을 수 있습니다. – degs

+0

모든 텍스트를 선택하는 방법은 무엇입니까? –

+0

'theme.xml'에서'colorAccent'의 색깔을 확인하십시오 – W4R10CK

답변

1

정의하여 colors.xml

<color name="colorAccent">#FF4081</color> 
<color name="colorPrimary">#125688</color> 
<color name="colorPrimaryDark">#104d7a</color> 

를 사용하여 색상이이

<style name="AppTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar"> 
    <!-- Customize your theme here. --> 
    <item name="colorPrimary">@color/colorPrimary</item> 
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item> 
    <item name="colorAccent">@color/colorAccent</item> 
    <item name="colorControlActivated">@color/text_highlight_green</it‌​em> 
</style> 

하고 활동

이 스타일을 사용처럼 AppTheme에서
+1

이 styles.xml' @ color/text_highlight_green' –

+1

괜찮습니다. 다른 사용자의 답을 편집합니다 –

+0

그렇지 않으면 기본 색상이 텍스트 선택을 위해 선택됩니다. –