-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Glennmen/master
thank you
- Loading branch information
Showing
6 changed files
with
147 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<FrameLayout | ||
android:id="@+id/container" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"></FrameLayout> | ||
android:layout_height="wrap_content" /> | ||
</FrameLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,68 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
<LinearLayout | ||
xmlns:tools="http://schemas.android.com/tools" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
tools:context="com.kcode.lib.dialog.UpdateActivity"> | ||
|
||
<ScrollView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="@drawable/shape_update_lib_dialog_bg" | ||
android:orientation="vertical" | ||
tools:context="com.kcode.lib.dialog.UpdateActivity"> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:background="@drawable/shape_update_lib_dialog_title_bg" | ||
android:elevation="3dp" | ||
android:gravity="center" | ||
android:text="@string/update_lib_dialog_title" | ||
android:textColor="#525252" | ||
android:textSize="20sp"/> | ||
|
||
<TextView | ||
android:id="@+id/tvContent" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="12dp" | ||
android:minLines="10" | ||
android:textColor="#4a4a4a" | ||
android:textSize="16sp"/> | ||
android:background="@drawable/shape_update_lib_dialog_bg"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal" | ||
android:paddingBottom="8dp" | ||
android:paddingLeft="12dp" | ||
android:paddingRight="12dp" | ||
android:paddingStart="12dp" | ||
android:paddingTop="12dp"> | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:background="@drawable/shape_update_lib_dialog_title_bg" | ||
android:elevation="3dp" | ||
android:gravity="center" | ||
android:text="@string/update_lib_dialog_title" | ||
android:textColor="#525252" | ||
android:textSize="20sp" /> | ||
|
||
<Button | ||
android:id="@+id/btnCancel" | ||
android:layout_width="0dp" | ||
<TextView | ||
android:id="@+id/tvContent" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="8dp" | ||
android:layout_weight="1" | ||
android:background="@drawable/selector_update_lib_button" | ||
android:text="@string/update_lib_cancel" | ||
android:layout_margin="12dp" | ||
android:minLines="10" | ||
android:textColor="#4a4a4a" | ||
android:textSize="18sp"/> | ||
android:textSize="16sp" /> | ||
|
||
<Button | ||
android:id="@+id/btnUpdate" | ||
android:layout_width="0dp" | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="8dp" | ||
android:layout_weight="1" | ||
android:background="@drawable/selector_update_lib_button" | ||
android:text="@string/update_lib_update" | ||
android:textColor="#4a4a4a" | ||
android:textSize="18sp"/> | ||
android:orientation="horizontal"> | ||
|
||
<Button | ||
android:id="@+id/btnCancel" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="12dp" | ||
android:layout_weight="1" | ||
android:background="@drawable/selector_update_lib_button" | ||
android:text="@string/update_lib_cancel" | ||
android:textColor="#4a4a4a" | ||
android:textSize="18sp" /> | ||
|
||
<Button | ||
android:id="@+id/btnUpdate" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="12dp" | ||
android:layout_weight="1" | ||
android:background="@drawable/selector_update_lib_button" | ||
android:text="@string/update_lib_update" | ||
android:textColor="#4a4a4a" | ||
android:textSize="18sp" /> | ||
|
||
</LinearLayout> | ||
</LinearLayout> | ||
</LinearLayout> | ||
</ScrollView> | ||
</FrameLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="update_lib_network_not_available">Het huidige netwerk is niet beschikbaar</string> | ||
<string name="update_lib_default_toast">Is momenteel de nieuwste versie</string> | ||
|
||
<!--DownLoadDialog--> | ||
<string name="update_lib_download_cancel">Download geannuleerd</string> | ||
<string name="update_lib_download_in_background">Bijwerken op de achtergrond</string> | ||
<string name="update_lib_download_finish">Download is compleet</string> | ||
<string name="update_lib_download_failed">Download mislukt</string> | ||
<string name="update_lib_file_download_format">Downloaden(%1$s/%2$s)</string> | ||
|
||
<!--UpdateDialog--> | ||
<string name="update_lib_update_content">Release notities:</string> | ||
<string name="update_lib_version_code">Versienummer:</string> | ||
<string name="update_lib_update">Update</string> | ||
<string name="update_lib_cancel">Annuleren</string> | ||
<string name="update_lib_dialog_title">Update Beschikbaar</string> | ||
|
||
<!--DownLoadService--> | ||
<string name="update_lib_file_download">Bestand downloaden</string> | ||
<string name="update_lib_file_downloading">Wordt gedownload…</string> | ||
|
||
<!--fragment_download.xml--> | ||
<string name="update_lib_file_download_text">Downloaden</string> | ||
<string name="update_lib_stop_download">Stop met downloaden</string> | ||
<string name="update_lib_background_download">Achtergrond download</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="update_lib_network_not_available">当前网络不可用</string> | ||
<string name="update_lib_default_toast">当前已是最新版本</string> | ||
|
||
<!--DownLoadDialog--> | ||
<string name="update_lib_download_cancel">已取消更新</string> | ||
<string name="update_lib_download_in_background">正在后台进行更新</string> | ||
<string name="update_lib_download_finish">下载完成</string> | ||
<string name="update_lib_download_failed">下载失败</string> | ||
<string name="update_lib_file_download_format">正在下载(%1$s/%2$s)</string> | ||
|
||
<!--UpdateDialog--> | ||
<string name="update_lib_update_content">更新内容:</string> | ||
<string name="update_lib_version_code">版本号:</string> | ||
<string name="update_lib_update">升级</string> | ||
<string name="update_lib_cancel">取消</string> | ||
<string name="update_lib_dialog_title">更新提示</string> | ||
|
||
<!--DownLoadService--> | ||
<string name="update_lib_file_download">文件下载</string> | ||
<string name="update_lib_file_downloading">正在下载中…</string> | ||
|
||
<!--fragment_download.xml--> | ||
<string name="update_lib_file_download_text">正在下载</string> | ||
<string name="update_lib_stop_download">停止下载</string> | ||
<string name="update_lib_background_download">后台下载</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="update_lib_network_not_available">当前网络不可用</string> | ||
<string name="update_lib_default_toast">当前已是最新版本</string> | ||
<string name="update_lib_network_not_available">The current network is not available</string> | ||
<string name="update_lib_default_toast">Is currently the latest version</string> | ||
|
||
<!--DownLoadDialog--> | ||
<string name="update_lib_download_cancel">已取消更新</string> | ||
<string name="update_lib_download_in_background">正在后台进行更新</string> | ||
<string name="update_lib_download_finish">下载完成</string> | ||
<string name="update_lib_download_failed">下载失败</string> | ||
<string name="update_lib_file_download_format">正在下载(%1$s/%2$s)</string> | ||
<string name="update_lib_download_cancel">Download canceled</string> | ||
<string name="update_lib_download_in_background">Is updating in the background</string> | ||
<string name="update_lib_download_finish">Download completed</string> | ||
<string name="update_lib_download_failed">Download failed</string> | ||
<string name="update_lib_file_download_format">Downloading(%1$s/%2$s)</string> | ||
|
||
<!--UpdateDialog--> | ||
<string name="update_lib_update_content">更新内容:</string> | ||
<string name="update_lib_version_code">版本号:</string> | ||
<string name="update_lib_update">升级</string> | ||
<string name="update_lib_cancel">取消</string> | ||
<string name="update_lib_dialog_title">更新提示</string> | ||
<string name="update_lib_update_content">Release notes:</string> | ||
<string name="update_lib_version_code">Version number:</string> | ||
<string name="update_lib_update">Update</string> | ||
<string name="update_lib_cancel">Cancel</string> | ||
<string name="update_lib_dialog_title">Update Available</string> | ||
|
||
<!--DownLoadService--> | ||
<string name="update_lib_file_download">文件下载</string> | ||
<string name="update_lib_file_downloading">正在下载中...</string> | ||
<string name="update_lib_file_download">Download document</string> | ||
<string name="update_lib_file_downloading">Is being downloaded…</string> | ||
|
||
<!--fragment_download.xml--> | ||
<string name="update_lib_file_download_text">正在下载</string> | ||
<string name="update_lib_stop_download">停止下载</string> | ||
<string name="update_lib_background_download">后台下载</string> | ||
|
||
<string name="update_lib_file_download_text">Downloading</string> | ||
<string name="update_lib_stop_download">Stop downloading</string> | ||
<string name="update_lib_background_download">Background download</string> | ||
</resources> |