package net.ktnx.mobileledger.ui.templates;
import android.annotation.SuppressLint;
+import android.content.res.Resources;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
}
@Override
void bind(TemplateDetailsItem item) {
- String groupNoText = b.getRoot()
- .getResources()
- .getString(R.string.template_item_match_group_source);
+ final Resources resources = b.getRoot()
+ .getResources();
+ String groupNoText = resources.getString(R.string.template_item_match_group_source);
TemplateDetailsItem.AccountRow accRow = item.asAccountRowItem();
+ b.patternAccountLabel.setText(String.format(Locale.US,
+ resources.getString(R.string.template_details_account_row_label),
+ accRow.getPosition()));
if (accRow.hasLiteralAccountName()) {
b.templateDetailsAccountNameLayout.setVisibility(View.VISIBLE);
b.templateDetailsAccountName.setText(accRow.getAccountName());
<string name="template_details_amount_label">Сума</string>
<string name="template_details_test_text_label">Примерен текст</string>
<string name="template_details_account_name_label">Сметка</string>
- <string name="template_details_account_row_label">Данни за сметка</string>
+ <string name="template_details_account_row_label">Данни за сметка №%d</string>
<string name="account_name_source_label">Източник на името на сметката</string>
<string name="template_details_source_literal">ръчно въвеждане</string>
<string name="account_comment_source_label">Източник на бележка към сметката</string>
<string name="template_details_amount_label">Amount</string>
<string name="template_details_test_text_label">Test text</string>
<string name="template_details_account_name_label">Account name</string>
- <string name="template_details_account_row_label">Account details</string>
+ <string name="template_details_account_row_label">Details of account #%d</string>
<string name="account_name_source_label">Account name source</string>
<string name="template_details_source_literal">literal</string>
<string name="account_comment_source_label">Account comment source</string>