Skip to main content

Posts

Showing posts from February, 2017

Background And Borders (Drawable - layer-list)

Rounded Corners <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"      android:padding="10dp"      android:shape="rectangle" >      <solid android:color=" #C8C8C8 " />      <corners           android:bottomLeftRadius="10dp"           android:bottomRightRadius="10dp"           android:topLeftRadius="10dp"            android:topRightRadius="10dp" /> </shape> __________________________________________________________________ Rectangle frame <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"     android:shape="rectangle" >      ...

XML Strings and Special Characters

XML Strings and Special Characters String Special Characters … &#8230; < &lt; > &gt; & &amp; " &quot; ' &#39; <string name=”Rs”>\u20B9</string> <string name=”filled_bullet”>\u25CF</string> <string name=”linear_bullet”>\u25CB</string> <string name=”rect_bullet”>\u25A0</string> <string name=”blank_rect”>\u25A1</string> <string name=”true_tick”>\u2713</string> <string name=”star”>\u2605</string>

Transparent Color Code

Transparent Color Code : Color hexadecimal notation is like the following:  #AARRGGBB A: alpha R: red G: green B: blue ____________________________________________ E.g. for 50% white you'd use             #80FFFFFF.              # ( Transparent  hex value ) (Any Color code) ____________________________________________ Normal opaque black hex- "#000000" Fully transparent - "#00000000" Fully opaque - "#FF000000" 50% transparent - "#80000000" ____________________________________________ Percentages to hex values.  100% — FF 95% — F2 90% — E6 85% — D9 80% — CC 75% — BF 70% — B3 65% — A6 60% — 99 55% — 8C 50% — 80 45% — 73 40% — 66 35% — 59 30% — 4D 25% — 40 20% — 33 15% — 26 10% — 1A 5% — 0D 0% — 00 ____________________________________________ All hex value from 100% to 0% alpha: 100% — FF 99% — FC 98% — FA 97% — F7 96% — F5 95% — F2 94% — F0 93% ...