Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
841d17b0
Commit
841d17b0
authored
Oct 18, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update string.xml
parent
c6bc990a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
21 deletions
+21
-21
src/main/java/com/common/activity/RepaymentGuideActivity.java
+8
-8
src/main/java/tech/starwin/utils/format_utils/InfoTranslator.java
+13
-13
src/main/res/values-in/strings.xml
+0
-0
src/main/res/values-zh/strings.xml
+0
-0
src/main/res/values/strings.xml
+0
-0
No files found.
src/main/java/com/common/activity/RepaymentGuideActivity.java
View file @
841d17b0
...
...
@@ -25,7 +25,7 @@ public class RepaymentGuideActivity extends BaseActivity {
@Override
protected
void
initTopBar
(
TopBar
topBar
)
{
super
.
initTopBar
(
topBar
);
topBar
.
toolBar
().
setTitle
(
R
.
string
.
text_title_repaymentraiders
);
//
topBar.toolBar().setTitle(R.string.text_title_repaymentraiders);
}
@Override
...
...
@@ -35,13 +35,13 @@ public class RepaymentGuideActivity extends BaseActivity {
@Override
public
void
initView
()
{
String
[]
titles
=
getResources
().
getStringArray
(
R
.
array
.
text_repayment_raiders_instruction_title
);
String
[]
details
=
getResources
().
getStringArray
(
R
.
array
.
text_repayment_raiders_instruction_detail
);
List
<
RepaymentGuideBean
>
guideBeanList
=
new
ArrayList
<>(
titles
.
length
);
for
(
int
i
=
0
;
i
<
titles
.
length
;
i
++)
{
guideBeanList
.
add
(
new
RepaymentGuideBean
(
titles
[
i
],
details
[
i
]));
}
UIHelper
.
bindAdapter
(
findViewById
(
R
.
id
.
activity_repaymentGuide_tv
),
new
RepaymentGuideAdapter
(
this
,
guideBeanList
));
//
String[] titles = getResources().getStringArray(R.array.text_repayment_raiders_instruction_title);
//
String[] details = getResources().getStringArray(R.array.text_repayment_raiders_instruction_detail);
//
List<RepaymentGuideBean> guideBeanList = new ArrayList<>(titles.length);
//
for (int i = 0; i < titles.length; i++) {
//
guideBeanList.add(new RepaymentGuideBean(titles[i], details[i]));
//
}
//
UIHelper.bindAdapter(findViewById(R.id.activity_repaymentGuide_tv), new RepaymentGuideAdapter(this, guideBeanList));
}
@Override
...
...
src/main/java/tech/starwin/utils/format_utils/InfoTranslator.java
View file @
841d17b0
...
...
@@ -172,19 +172,19 @@ public class InfoTranslator {
}
/**
* 还款方式
*/
public
static
StringAdapter
getRepayMethodAdapter
(
Context
context
)
{
StringAdapter
adapter
=
new
StringAdapter
();
adapter
.
addItem
(
newItem
(
context
,
"ALFAMART"
,
R
.
string
.
pay_in_alfamart_title
));
adapter
.
addItem
(
newItem
(
context
,
"BCA"
,
R
.
string
.
bca_title
));
adapter
.
addItem
(
newItem
(
context
,
"MANDIRI"
,
R
.
string
.
mandiri_title
));
adapter
.
addItem
(
newItem
(
context
,
"BNI"
,
R
.
string
.
bni_title
));
adapter
.
addItem
(
newItem
(
context
,
"BRI"
,
R
.
string
.
bri_title
));
adapter
.
addItem
(
newItem
(
context
,
"OTHERS"
,
R
.
string
.
other_banks_title
));
return
adapter
;
}
//
/**
//
* 还款方式
//
*/
//
public static StringAdapter getRepayMethodAdapter(Context context) {
//
StringAdapter adapter = new StringAdapter();
//
adapter.addItem(newItem(context, "ALFAMART", R.string.pay_in_alfamart_title));
//
adapter.addItem(newItem(context, "BCA", R.string.bca_title));
//
adapter.addItem(newItem(context, "MANDIRI", R.string.mandiri_title));
//
adapter.addItem(newItem(context, "BNI", R.string.bni_title));
//
adapter.addItem(newItem(context, "BRI", R.string.bri_title));
//
adapter.addItem(newItem(context, "OTHERS", R.string.other_banks_title));
//
return adapter;
//
}
/**
...
...
src/main/res/values-in/strings.xml
View file @
841d17b0
This diff is collapsed.
Click to expand it.
src/main/res/values-zh/strings.xml
View file @
841d17b0
This diff is collapsed.
Click to expand it.
src/main/res/values/strings.xml
View file @
841d17b0
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment