Advertisement
nzisaacnz

less to android

Dec 1st, 2015
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.42 KB | None | 0 0
  1. @bodyBGColor: #f39444;
  2. @headerBGColor: #ffefe2;
  3. @textColor: #117692;
  4.  
  5. @fontFamily: Calibri;
  6.  
  7. Main{
  8.   minWidth: 25px;
  9.   minHeight: 25px;
  10.   textColor: @textColor;
  11.   fontFamily: @fontFamily;
  12.   Background{
  13.     background: @bodyBGColor;
  14.     layout_width:fill_parent;
  15.     layout_height:fill_parent;
  16.   }
  17.   Head{
  18.     background: @headerBGColor;
  19.     layout_width:match_parent;
  20.     layout_height:200px;
  21.     Logo{
  22.       layout_width:match_parent;
  23.       layout_height:match_parent;
  24.     }
  25.   }
  26. }
  27.  
  28.  
  29.  
  30. goes to
  31.  
  32.  
  33.  
  34.  
  35. <?xml version="1.0" encoding="utf-8"?>
  36. <resources>
  37.   <style name="Main">
  38.     <item name="android:minWidth">25px</item>
  39.     <item name="android:minHeight">25px</item>
  40.     <item name="android:textColor">#117692</item>
  41.     <item name="android:fontFamily">Calibri</item>
  42.   </style>
  43.   <style name="Background" parent="@style/Main">
  44.     <item name="android:background">#f39444</item>
  45.     <item name="android:layout_width">fill_parent</item>
  46.     <item name="android:layout_height">fill_parent</item>
  47.   </style>
  48.   <style name="Head" parent="@style/Main">
  49.     <item name="android:background">#ffefe2</item>
  50.     <item name="android:layout_width">match_parent</item>
  51.     <item name="android:layout_height">200px</item>
  52.   </style>
  53.   <style name="Logo" parent="@style/Head">
  54.     <item name="android:layout_width">match_parent</item>
  55.     <item name="android:layout_height">match_parent</item>
  56.   </style>
  57. </resources>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement