Skip to content

Commit

Permalink
support Englist
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghejie committed Nov 29, 2015
1 parent fb22eb8 commit 62abe35
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
4 changes: 2 additions & 2 deletions xrecyclerview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

version = "1.2.0"
version = "1.2.1"
group = "com.jcodecraeer"

def siteUrl = 'https://github.com/jianghejie/XRecyclerView'
Expand All @@ -13,7 +13,7 @@ android {
buildToolsVersion "23.0.1"

defaultConfig {
minSdkVersion 14
minSdkVersion 11
targetSdkVersion 23
versionCode 1
versionName "1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ public void setState(int state) {
switch(state) {
case STATE_LAODING:
progressCon.setVisibility(View.VISIBLE);
mText.setText("正在加载...");
mText.setText(mContext.getText(R.string.listview_loading));
this.setVisibility(View.VISIBLE);
break;
case STATE_COMPLETE:
mText.setText("正在加载...");
mText.setText(mContext.getText(R.string.listview_loading));
this.setVisibility(View.GONE);
break;
case STATE_NOMORE:
mText.setText("加载完成");
mText.setText(mContext.getText(R.string.nomore_loading));
progressCon.setVisibility(View.GONE);
this.setVisibility(View.VISIBLE);
break;
Expand Down
10 changes: 10 additions & 0 deletions xrecyclerview/src/main/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<resources>
<string name="app_name">XRecyclerView</string>
<string name="listview_header_hint_normal">下拉刷新</string>
<string name="listview_header_hint_release">释放立即刷新</string>
<string name="listview_loading">正在加载...</string>
<string name="nomore_loading">没有了</string>
<string name="refreshing">正在刷新...</string>
<string name="refresh_done">刷新完成</string>
<string name="listview_header_last_time">上次更新时间:</string>
</resources>
14 changes: 7 additions & 7 deletions xrecyclerview/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<resources>
<string name="app_name">XRecyclerView</string>
<string name="listview_header_hint_normal">下拉刷新</string>
<string name="listview_header_hint_release">释放立即刷新</string>
<string name="listview_header_hint_loading">正在加载...</string>
<string name="refreshing">正在刷新...</string>
<string name="refresh_done">刷新完成</string>
<string name="listview_header_last_time">上次更新时间:</string>
<string name="listview_footer_hint_normal">查看更多</string>
<string name="listview_header_hint_normal">pull to refresh</string>
<string name="listview_header_hint_release">release to start refresh</string>
<string name="listview_loading">loading...</string>
<string name="nomore_loading">no more to be loaded</string>
<string name="refreshing">refreshing...</string>
<string name="refresh_done">refresh done</string>
<string name="listview_header_last_time">last update:</string>
</resources>

0 comments on commit 62abe35

Please sign in to comment.