I have TWO questions..
( 1 ) - I would like my EditText's HINT size to be smaller than the user's entered TEXT size.. Since this doesn't seem to be possible using the default layout controls, I pursue'd the answer here on Stack.
After researching, I found this - however you cannot use "sp" for the size value:
Create a string <string name="edittext_hint"><font size="15">Hint here!</font></string>
and then set android:hint="@string/edittext_hint"
in your layout xml..
But, again, since you can't use "sp" for the value, I continued searching, and found this code:
// Set HINT size via XML EDITOR - and use THIS CODE to set ACTUAL TEXT size:
int actualTextSize = 16;
EditText editText = (EditText) findViewById(R.id.editTextId);
editText.setTextSize(TypedValue.COMPLEX_UNIT_SP, actualTextSize);
// THEN SET HINT SIZE IN LAYOUT XML EDITOR
But is it truly that simple ? And if so, why are there so many other answers doing it using an excessive amount of code to achieve what is for all intents and purposes the exact same result?
.. Is the above method correct, and is it the simplest best practice solution?
aaaand
( 2 ) - I would also like my EditText's HINT to be semi-Transparent, but NOT the 'ACTUAL TEXT'..
..IS THIS POSSIBLE? and if so, HOW?
Thanks in advance for any help provided for either of these questions!