Quantcast
Viewing latest article 14
Browse Latest Browse All 19

Answer by HaimS for How to add buttons like refresh and search in ToolBar in Android?

To control the location of the title you may want to set a custom font as explained here (by twaddington): Link

Then to relocate the position of the text, in updateMeasureState() you would add p.baselineShift += (int) (p.ascent() * R);Similarly in updateDrawState() add tp.baselineShift += (int) (tp.ascent() * R);Where R is double between -1 and 1.


Viewing latest article 14
Browse Latest Browse All 19

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>