Added material design drop shadow to html pages

This commit is contained in:
Anthony Restaino 2015-01-26 12:58:10 -05:00
parent 748c70b280
commit dd919513c1
4 changed files with 210 additions and 213 deletions

View File

@ -1,211 +1,208 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!-- Copyright 2014 A.C.R. Development -->
Copyright 2014 A.C.R. Development
--> <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="acr.browser.lightning"
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="66"
package="acr.browser.lightning" android:versionName="3.2.0.1a" >
android:versionCode="66"
android:versionName="3.2.0.1a" > <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS" />
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS" />
<uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-feature
android:name="android.hardware.location.gps"
<uses-feature android:required="false" />
android:name="android.hardware.location.gps" <uses-feature
android:required="false" /> android:name="android.hardware.location"
<uses-feature android:required="false" />
android:name="android.hardware.location" <uses-feature
android:required="false" /> android:name="android.hardware.touchscreen"
<uses-feature android:required="false" />
android:name="android.hardware.touchscreen"
android:required="false" /> <uses-sdk
android:minSdkVersion="14"
<uses-sdk android:targetSdkVersion="21" />
android:minSdkVersion="14"
android:targetSdkVersion="20" /> <application
android:name="acr.browser.lightning.BrowserApp"
<application android:allowBackup="true"
android:name="acr.browser.lightning.BrowserApp" android:hardwareAccelerated="true"
android:allowBackup="true" android:icon="@mipmap/ic_launcher"
android:hardwareAccelerated="true" android:label="@string/app_name" >
android:icon="@drawable/ic_launcher" <activity
android:label="@string/app_name" > android:name="acr.browser.lightning.MainActivity"
<activity android:alwaysRetainTaskState="true"
android:name="acr.browser.lightning.MainActivity" android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
android:alwaysRetainTaskState="true" android:label="@string/app_name"
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" android:launchMode="singleTask"
android:label="@string/app_name" android:theme="@style/Theme.LightTheme" >
android:launchMode="singleTask" <intent-filter>
android:theme="@style/LightTheme" > <action android:name="android.intent.action.MAIN" />
<intent-filter>
<action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.APP_BROWSER" />
<category android:name="android.intent.category.BROWSABLE" /> </intent-filter>
<category android:name="android.intent.category.APP_BROWSER" /> <intent-filter>
</intent-filter> <action android:name="android.intent.action.VIEW" />
<intent-filter>
<action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="http" />
<data android:scheme="https" />
<data android:scheme="http" /> <data android:scheme="about" />
<data android:scheme="https" /> <data android:scheme="javascript" />
<data android:scheme="about" /> </intent-filter>
<data android:scheme="javascript" /> <!--
</intent-filter> For these schemes where any of these particular MIME types
<!-- have been supplied, we are a good candidate.
For these schemes where any of these particular MIME types -->
have been supplied, we are a good candidate. <intent-filter>
--> <action android:name="android.intent.action.VIEW" />
<intent-filter>
<action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" /> <data android:scheme="http" />
<data android:scheme="https" />
<data android:scheme="http" /> <data android:scheme="inline" />
<data android:scheme="https" /> <data android:mimeType="text/html" />
<data android:scheme="inline" /> <data android:mimeType="text/plain" />
<data android:mimeType="text/html" /> <data android:mimeType="application/xhtml+xml" />
<data android:mimeType="text/plain" /> <data android:mimeType="application/vnd.wap.xhtml+xml" />
<data android:mimeType="application/xhtml+xml" /> </intent-filter>
<data android:mimeType="application/vnd.wap.xhtml+xml" /> <!-- For viewing saved web archives. -->
</intent-filter> <intent-filter>
<!-- For viewing saved web archives. --> <action android:name="android.intent.action.VIEW" />
<intent-filter>
<action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" /> <data android:scheme="http" />
<data android:scheme="https" />
<data android:scheme="http" /> <data android:scheme="file" />
<data android:scheme="https" /> <data android:mimeType="application/x-webarchive-xml" />
<data android:scheme="file" /> </intent-filter>
<data android:mimeType="application/x-webarchive-xml" /> <intent-filter>
</intent-filter> <action android:name="android.intent.action.WEB_SEARCH" />
<intent-filter>
<action android:name="android.intent.action.WEB_SEARCH" /> <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="" />
<data android:scheme="http" />
<data android:scheme="" /> <data android:scheme="https" />
<data android:scheme="http" /> </intent-filter>
<data android:scheme="https" /> </activity>
</intent-filter> <activity
</activity> android:name="acr.browser.lightning.SettingsActivity"
<activity android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
android:name="acr.browser.lightning.SettingsActivity" android:label="@string/settings"
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" android:theme="@style/Theme.SettingsTheme" >
android:label="@string/settings" <intent-filter>
android:theme="@style/DefaultTheme" > <action android:name="android.intent.action.SETTINGS" />
<intent-filter>
<action android:name="android.intent.action.SETTINGS" /> <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<category android:name="android.intent.category.DEFAULT" /> </activity>
</intent-filter> <activity
</activity> android:name="acr.browser.lightning.GeneralSettingsActivity"
<activity android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
android:name="acr.browser.lightning.GeneralSettingsActivity" android:label="@string/settings_general"
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" android:theme="@style/Theme.SettingsTheme" >
android:label="@string/settings_general" <intent-filter>
android:theme="@style/DefaultTheme" > <action android:name="android.intent.action.GENERAL_SETTINGS" />
<intent-filter>
<action android:name="android.intent.action.GENERAL_SETTINGS" /> <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<category android:name="android.intent.category.DEFAULT" /> </activity>
</intent-filter> <activity
</activity> android:name="acr.browser.lightning.DisplaySettingsActivity"
<activity android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
android:name="acr.browser.lightning.DisplaySettingsActivity" android:label="@string/settings_display"
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" android:theme="@style/Theme.SettingsTheme" >
android:label="@string/settings_display" <intent-filter>
android:theme="@style/DefaultTheme" > <action android:name="android.intent.action.DISPLAY_SETTINGS" />
<intent-filter>
<action android:name="android.intent.action.DISPLAY_SETTINGS" /> <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<category android:name="android.intent.category.DEFAULT" /> </activity>
</intent-filter> <activity
</activity> android:name="acr.browser.lightning.PrivacySettingsActivity"
<activity android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
android:name="acr.browser.lightning.PrivacySettingsActivity" android:label="@string/settings_privacy"
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" android:theme="@style/Theme.SettingsTheme" >
android:label="@string/settings_privacy" <intent-filter>
android:theme="@style/DefaultTheme" > <action android:name="android.intent.action.PRIVACY_SETTINGS" />
<intent-filter>
<action android:name="android.intent.action.PRIVACY_SETTINGS" /> <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<category android:name="android.intent.category.DEFAULT" /> </activity>
</intent-filter> <activity
</activity> android:name="acr.browser.lightning.AdvancedSettingsActivity"
<activity android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
android:name="acr.browser.lightning.AdvancedSettingsActivity" android:label="@string/settings_advanced"
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" android:theme="@style/Theme.SettingsTheme" >
android:label="@string/settings_advanced" <intent-filter>
android:theme="@style/DefaultTheme" > <action android:name="android.intent.action.ADVANCED_SETTINGS" />
<intent-filter>
<action android:name="android.intent.action.ADVANCED_SETTINGS" /> <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<category android:name="android.intent.category.DEFAULT" /> </activity>
</intent-filter> <activity
</activity> android:name="acr.browser.lightning.AboutSettingsActivity"
<activity android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
android:name="acr.browser.lightning.AboutSettingsActivity" android:label="@string/settings_about"
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" android:theme="@style/Theme.SettingsTheme" >
android:label="@string/settings_about" <intent-filter>
android:theme="@style/DefaultTheme" > <action android:name="android.intent.action.ABOUT_SETTINGS" />
<intent-filter>
<action android:name="android.intent.action.ABOUT_SETTINGS" /> <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<category android:name="android.intent.category.DEFAULT" /> </activity>
</intent-filter> <activity
</activity> android:name="acr.browser.lightning.IncognitoActivity"
<activity android:alwaysRetainTaskState="true"
android:name="acr.browser.lightning.IncognitoActivity" android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
android:alwaysRetainTaskState="true" android:label="@string/app_name"
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" android:launchMode="singleTask"
android:label="@string/app_name" android:theme="@style/Theme.DarkTheme"
android:launchMode="singleTask" android:windowSoftInputMode="stateHidden" >
android:theme="@style/DarkTheme" <intent-filter>
android:windowSoftInputMode="stateHidden" > <action android:name="android.intent.action.INCOGNITO" />
<intent-filter>
<action android:name="android.intent.action.INCOGNITO" /> <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<category android:name="android.intent.category.DEFAULT" /> </activity>
</intent-filter> <activity
</activity> android:name="acr.browser.lightning.LicenseActivity"
<activity android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
android:name="acr.browser.lightning.LicenseActivity" android:label="@string/licenses"
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" android:theme="@style/Theme.SettingsTheme" >
android:label="@string/licenses" <intent-filter>
android:theme="@style/DefaultTheme" > <action android:name="android.intent.action.LICENSE" />
<intent-filter>
<action android:name="android.intent.action.LICENSE" /> <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<category android:name="android.intent.category.DEFAULT" /> </activity>
</intent-filter> <activity
</activity> android:name="acr.browser.lightning.BookmarkActivity"
android:configChanges="orientation|screenSize|keyboardHidden|keyboard"
<activity android:label="@string/bookmark_settings"
android:name="acr.browser.lightning.BookmarkActivity" android:theme="@style/Theme.SettingsTheme" >
android:configChanges="orientation|screenSize|keyboardHidden|keyboard" <intent-filter>
android:label="@string/bookmark_settings" <action android:name="android.intent.action.BOOKMARK" />
android:theme="@style/DefaultTheme" >
<intent-filter> <category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.BOOKMARK" /> </intent-filter>
</activity>
<category android:name="android.intent.category.DEFAULT" /> </application>
</intent-filter>
</activity>
</application>
</manifest> </manifest>

View File

@ -9,7 +9,7 @@ public class BookmarkPage {
public static final String HEADING = "<!DOCTYPE html><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><meta content=\"en-us\" http-equiv=\"Content-Language\" /><meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\" /><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\"><title>" public static final String HEADING = "<!DOCTYPE html><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><meta content=\"en-us\" http-equiv=\"Content-Language\" /><meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\" /><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\"><title>"
+ BrowserApp.getAppContext().getString(R.string.action_bookmarks) + BrowserApp.getAppContext().getString(R.string.action_bookmarks)
+ "</title></head><style>body { background: #e1e1e1; max-width:100%; min-height:100%;}#content {width:100%; max-width:800px; margin:0 auto; text-align:center;}.box { vertical-align:middle;text-align:center;position:relative; display: inline-block; height: 100px; width: 100px; margin: 10px; background-color:#fff;box-shadow: 0px 3px rgba( 0, 0, 0, 0.1 );font-family: Arial;color: #444;font-size: 12px;-moz-border-radius: 2px;-webkit-border-radius: 2px;border-radius: 2px;}.stuff {height: 100px; width: 100px;vertical-align:middle;text-align:center; display: table-cell;}p.ellipses {width:90px; white-space: nowrap; overflow: hidden;text-align:center;margin:auto; text-overflow: ellipsis; -o-text-overflow: ellipsis; -ms-text-overflow: ellipsis;}.box a { width: 100%; height: 100%; position: absolute; left: 0; top: 0;}</style><body> <div id=\"content\">"; + "</title></head><style>body { background: #e1e1e1; max-width:100%; min-height:100%;}#content {width:100%; max-width:800px; margin:0 auto; text-align:center;}.box { vertical-align:middle;text-align:center;position:relative; display: inline-block; height: 100px; width: 100px; margin: 10px; background-color:#fff;box-shadow: 0px 2px 3px rgba( 0, 0, 0, 0.25 );font-family: Arial;color: #444;font-size: 12px;-moz-border-radius: 2px;-webkit-border-radius: 2px;border-radius: 2px;}.stuff {height: 100px; width: 100px;vertical-align:middle;text-align:center; display: table-cell;}p.ellipses {width:90px; white-space: nowrap; overflow: hidden;text-align:center;margin:auto; text-overflow: ellipsis; -o-text-overflow: ellipsis; -ms-text-overflow: ellipsis;}.box a { width: 100%; height: 100%; position: absolute; left: 0; top: 0;}</style><body> <div id=\"content\">";
public static final String PART1 = "<div class=\"box\"><a href=\""; public static final String PART1 = "<div class=\"box\"><a href=\"";

View File

@ -17,7 +17,7 @@ public class HistoryPage {
private static final String HEADING = "<!DOCTYPE html><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><meta content=\"en-us\" http-equiv=\"Content-Language\" /><meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\" /><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\"><title>" private static final String HEADING = "<!DOCTYPE html><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><meta content=\"en-us\" http-equiv=\"Content-Language\" /><meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\" /><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\"><title>"
+ BrowserApp.getAppContext().getString(R.string.action_history) + BrowserApp.getAppContext().getString(R.string.action_history)
+ "</title></head><style>body { background: #e1e1e1;}.box { vertical-align:middle;position:relative; display: block; margin: 10px;padding-left:10px;padding-right:10px;padding-top:5px;padding-bottom:5px; background-color:#fff;box-shadow: 0px 3px rgba( 0, 0, 0, 0.1 );font-family: Arial;color: #444;font-size: 12px;-moz-border-radius: 2px;-webkit-border-radius: 2px;border-radius: 2px;}.box a { width: 100%; height: 100%; position: absolute; left: 0; top: 0;}.black {color: black;font-size: 15px;font-family: Arial; white-space: nowrap; overflow: hidden;margin:auto; text-overflow: ellipsis; -o-text-overflow: ellipsis; -ms-text-overflow: ellipsis;}.font {color: gray;font-size: 10px;font-family: Arial; white-space: nowrap; overflow: hidden;margin:auto; text-overflow: ellipsis; -o-text-overflow: ellipsis; -ms-text-overflow: ellipsis;}</style><body><div id=\"content\">"; + "</title></head><style>body { background: #e1e1e1;}.box { vertical-align:middle;position:relative; display: block; margin: 10px;padding-left:10px;padding-right:10px;padding-top:5px;padding-bottom:5px; background-color:#fff;box-shadow: 0px 2px 3px rgba( 0, 0, 0, 0.25 );font-family: Arial;color: #444;font-size: 12px;-moz-border-radius: 2px;-webkit-border-radius: 2px;border-radius: 2px;}.box a { width: 100%; height: 100%; position: absolute; left: 0; top: 0;}.black {color: black;font-size: 15px;font-family: Arial; white-space: nowrap; overflow: hidden;margin:auto; text-overflow: ellipsis; -o-text-overflow: ellipsis; -ms-text-overflow: ellipsis;}.font {color: gray;font-size: 10px;font-family: Arial; white-space: nowrap; overflow: hidden;margin:auto; text-overflow: ellipsis; -o-text-overflow: ellipsis; -ms-text-overflow: ellipsis;}</style><body><div id=\"content\">";
private static final String PART1 = "<div class=\"box\"><a href=\""; private static final String PART1 = "<div class=\"box\"><a href=\"";

View File

@ -17,7 +17,7 @@ public class HomepageVariables {
+ "<style>body{background:#f2f2f2;text-align:center;margin:0px;}#search_input{height:35px; " + "<style>body{background:#f2f2f2;text-align:center;margin:0px;}#search_input{height:35px; "
+ "width:100%;outline:none;border:none;font-size: 16px;background-color:transparent;}" + "width:100%;outline:none;border:none;font-size: 16px;background-color:transparent;}"
+ "span { display: block; overflow: hidden; padding-left:5px;vertical-align:middle;}" + "span { display: block; overflow: hidden; padding-left:5px;vertical-align:middle;}"
+ ".search_bar{display:table;vertical-align:middle;width:90%;height:35px;max-width:500px;margin:0 auto;background-color:#fff;box-shadow: 0px 3px rgba( 0, 0, 0, 0.1 );" + ".search_bar{display:table;vertical-align:middle;width:90%;height:35px;max-width:500px;margin:0 auto;background-color:#fff;box-shadow: 0px 2px 3px rgba( 0, 0, 0, 0.25 );"
+ "font-family: Arial;color: #444;-moz-border-radius: 2px;-webkit-border-radius: 2px;border-radius: 2px;}" + "font-family: Arial;color: #444;-moz-border-radius: 2px;-webkit-border-radius: 2px;border-radius: 2px;}"
+ "#search_submit{outline:none;height:37px;float:right;color:#404040;font-size:16px;font-weight:bold;border:none;" + "#search_submit{outline:none;height:37px;float:right;color:#404040;font-size:16px;font-weight:bold;border:none;"
+ "background-color:transparent;}.outer { display: table; position: absolute; height: 100%; width: 100%;}" + "background-color:transparent;}.outer { display: table; position: absolute; height: 100%; width: 100%;}"