This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"insuranceCompany": [ | |
{ | |
"company": "ALF", | |
"program": "CLASSIC" | |
}, | |
{ | |
"company": "VTB", | |
"program": "ECONOMY" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"351833": { | |
"complete": true, | |
"response": { | |
"responseDate": "", | |
"status": "error", | |
"insuranceCompany": "ALF", | |
"program": { | |
"id": 5, | |
"name": "CLASSIC", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.graphics.Rect; | |
import android.support.annotation.StringRes; | |
import android.util.AttributeSet; | |
import android.widget.EditText; | |
/** | |
* Edit text that removes hint when it is focused. | |
* If text is centered horizontally and hint is set, on some devices cursor can look ugly in the center of hint. | |
* So, this editText automatically hides hint when focus is on, and shows it back when focus is out |