CopyPastor

Detecting plagiarism made easy.

Score: 1.846895924308798; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2016-05-08
by USKMobility

Original Post

Original - Posted on 2014-06-18
by Nico



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Create a custom selector in drawables and set it as
<EditText android:textColor="@drawable/edit_text_selector" />
1) in 'colors.xml' define the color for enabled and disabled state:
<color name="enabled_color">#F7FE2E</color> <color name="disabled_color">#000000</color>
2) in 'drawable/edit_text_selector.xml':
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_enabled="false" android:color="@color/disabled_color"/> <item android:color="@color/enabled_color"/> </selector> 3)use it on textColor
<EditText android:id="@+id/customEditText" android:layout_width="match_parent" android:layout_height="wrap_content" android:enabled="false" android:text="Hello!" android:textColor="@drawable/edit_text_selector" />
Create a custom selector in drawables and set it as
`<EditText android:textColor="@drawable/edit_text_selector" />`
**1)** in 'colors.xml' define the color for enabled and disabled state:
<color name="enabled_color">#F7FE2E</color> <color name="disabled_color">#000000</color>
**2)** in 'drawable/edit_text_selector.xml':
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_enabled="false" android:color="@color/disabled_color"/> <item android:color="@color/enabled_color"/> </selector>
**3)** in your layout.xml:
<EditText android:id="@+id/customEditText" android:layout_width="match_parent" android:layout_height="wrap_content" android:enabled="false" android:text="Hello!" android:textColor="@drawable/edit_text_selector" />

        
Present in both answers; Present only in the new answer; Present only in the old answer;