package com.averi.worldscribe.activities;

import android.os.Bundle;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;
import android.widget.ImageButton;
import android.widget.ImageView;

import com.averi.worldscribe.R;
import com.averi.worldscribe.views.BottomBar;

public class ItemActivity extends ArticleActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected int getLayoutResourceID() {
        return R.layout.activity_item;
    }

    @Override
    protected ImageView getImageView() { return (ImageView) findViewById(R.id.imageItem); }

    @Override
    protected BottomBar getBottomBar() {
        return (BottomBar) findViewById(R.id.bottomBar);
    }

    @Override
    protected RecyclerView getConnectionsRecycler() {
        return (RecyclerView) findViewById(R.id.recyclerConnections);
    }

    @Override
    protected RecyclerView getSnippetsRecycler() {
        return (RecyclerView) findViewById(R.id.recyclerSnippets);
    }

}

@@ -36,16 +36,54 @@
 ities;%0A%0A
+import android.content.res.Resources;%0A
 import a
@@ -100,16 +100,16 @@
 Bundle;%0A
-
 import a
@@ -245,16 +245,48 @@
 erView;%0A
+import android.widget.EditText;%0A
 import a
@@ -378,16 +378,71 @@
 ribe.R;%0A
+import com.averi.worldscribe.utilities.ExternalReader;%0A
 import c
@@ -533,16 +533,90 @@
 vity %7B%0A%0A
+    private EditText propertiesField;%0A    private EditText historyField;%0A%0A
     @Ove
@@ -721,16 +721,261 @@
 eState);
+%0A%0A        propertiesField = (EditText) findViewById(R.id.editProperties);%0A        historyField = (EditText) findViewById(R.id.editHistory);%0A    %7D%0A%0A    @Override%0A    protected void onResume() %7B%0A        super.onResume();%0A%0A        loadTextFields();
 %0A    %7D%0A%0A
@@ -1504,32 +1504,32 @@
 etsRecycler() %7B%0A
-
         return (
@@ -1586,10 +1586,551 @@
 %0A    %7D%0A%0A
+    /**%0A     * Load data for the Item's text fields and display them.%0A     */%0A    private void loadTextFields() %7B%0A        Resources resources = getResources();%0A        propertiesField.setText(ExternalReader.getArticleTextFieldData(this, getWorldName(),%0A                getCategory(), getArticleName(), resources.getString(R.string.propertiesHint)));%0A        historyField.setText(ExternalReader.getArticleTextFieldData(this, getWorldName(),%0A                getCategory(), getArticleName(), resources.getString(R.string.historyHint)));%0A    %7D%0A%0A
 %7D%0A

Load text field data in ItemActivity