├── res ├── drawable │ ├── icon.png │ ├── search_icon.png │ ├── browser_icon.png │ └── search_progress_bar_background.9.png ├── drawable-hdpi │ ├── icon.png │ └── search_progress_bar_background.9.png ├── drawable-ldpi │ └── icon.png ├── drawable-mdpi │ ├── icon.png │ └── search_progress_bar_background.9.png ├── xml │ └── searchable.xml ├── layout │ ├── progress_bar.xml │ ├── main.xml │ └── default_url_dialog.xml └── values │ └── strings.xml ├── .gitattributes ├── src └── org │ ├── badboy │ └── browser │ │ ├── WebProgressBar.java │ │ ├── BrowserActivity.java │ │ └── Downloads.java │ └── metalev │ └── multitouch │ └── controller │ └── MultiTouchController.java ├── AndroidManifest.xml └── .gitignore /res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdtianyu/MyBrowser/master/res/drawable/icon.png -------------------------------------------------------------------------------- /res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdtianyu/MyBrowser/master/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdtianyu/MyBrowser/master/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdtianyu/MyBrowser/master/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /res/drawable/search_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdtianyu/MyBrowser/master/res/drawable/search_icon.png -------------------------------------------------------------------------------- /res/drawable/browser_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdtianyu/MyBrowser/master/res/drawable/browser_icon.png -------------------------------------------------------------------------------- /res/drawable/search_progress_bar_background.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdtianyu/MyBrowser/master/res/drawable/search_progress_bar_background.9.png -------------------------------------------------------------------------------- /res/drawable-hdpi/search_progress_bar_background.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdtianyu/MyBrowser/master/res/drawable-hdpi/search_progress_bar_background.9.png -------------------------------------------------------------------------------- /res/drawable-mdpi/search_progress_bar_background.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdtianyu/MyBrowser/master/res/drawable-mdpi/search_progress_bar_background.9.png -------------------------------------------------------------------------------- /res/xml/searchable.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /src/org/badboy/browser/WebProgressBar.java: -------------------------------------------------------------------------------- 1 | package org.badboy.browser; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.widget.LinearLayout; 6 | import android.widget.ProgressBar; 7 | 8 | public class WebProgressBar extends LinearLayout { 9 | 10 | private ProgressBar bar; 11 | public WebProgressBar(Context context) { 12 | super(context); 13 | LayoutInflater factory = LayoutInflater.from(context); 14 | factory.inflate(R.layout.progress_bar, this); 15 | bar = (ProgressBar)findViewById(R.id.progress_bar); 16 | } 17 | public void setProgress(int newProgress){ 18 | bar.setProgress(newProgress); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /res/layout/progress_bar.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 17 | 18 | -------------------------------------------------------------------------------- /res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 12 | 19 | 20 | 25 | 26 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello World, BrowserActivity! 4 | MyBrowser 5 | New web page 6 | Search websites 7 | 输入的网址有误,请重新输入! 8 | http://www.google.com.hk/ 9 | http://www.uc.cn/ 10 | Set Default URL 11 | OK 12 | Cancel 13 | 请输入默认主页网址 14 | SD card unavailable 15 | The SD card is busy. To allow downloads, select \"Turn off USB storage\" in the notification. 16 | An SD card is required to download 17 | SD card unavailable 18 | 网络错误! 19 | Page is loading... 20 | File is loading... 21 | 22 | -------------------------------------------------------------------------------- /res/layout/default_url_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 19 | 26 | 27 | 32 |