Question: I've been scouting around Google in hope that it could push me in the right way on how to do it, but sadly I couldn't find any... So my question is basically:

Is it possible to have a 404 pop up show up instead of it being a page?|

I'm currently creating a onepager and it'd be nice to have a pop up showing a 404 message instead of linking it to a 404 page.

If there is such thing, could I be pushed in the right direction?

Thanks in advance,
Ahmed

Answer: 
HI i just tried the below way and it worked for me 

Create a drawable file colorchange.xml as below,

```
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_focused="true" android:color="@android:color/holo_blue_dark"/>
    <item android:state_pressed="true" android:color="@android:color/holo_red_light" />
    <item android:state_focused="false" android:color="@android:color/white" />
    <item android:state_pressed="false" android:color="@android:color/white" /> 
</selector>

```

and then add the xml to the textcolor of the textview,

```
android:textColor="@drawable/colorchange"

```

hope this helps.
Implement OnFocusChangeListener for your TextView

```
textView.setOnFocusChangeListener(new OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
    if(hasFocus){
        //do something
    }else {
       //do something 
    }
   }
});

```