diff options
author | Camil Staps | 2015-04-08 22:19:04 +0200 |
---|---|---|
committer | Camil Staps | 2015-04-08 22:19:04 +0200 |
commit | 19687378e6c59233725e0b7b1580140642e13a47 (patch) | |
tree | 9fc92307c0fc4b1404151dcf5ba65986a140de92 /app/src/main/java/com/camilstaps/taize/DemoObjectFragment.java | |
parent | Fixed bug not updating reading after language change (diff) |
Made an incomplete, messy start with ViewPager
Diffstat (limited to 'app/src/main/java/com/camilstaps/taize/DemoObjectFragment.java')
-rw-r--r-- | app/src/main/java/com/camilstaps/taize/DemoObjectFragment.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app/src/main/java/com/camilstaps/taize/DemoObjectFragment.java b/app/src/main/java/com/camilstaps/taize/DemoObjectFragment.java new file mode 100644 index 0000000..17a0858 --- /dev/null +++ b/app/src/main/java/com/camilstaps/taize/DemoObjectFragment.java @@ -0,0 +1,30 @@ +package com.camilstaps.taize; + +import android.os.Bundle; +import android.support.v4.app.Fragment; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.TextView; + +/** + * Created by camilstaps on 8-4-15. + */ + + +// Instances of this class are fragments representing a single +// object in our collection. +public class DemoObjectFragment extends Fragment { + public static final String ARG_OBJECT = "object"; + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { + // The last two arguments ensure LayoutParams are inflated + // properly. + View rootView = inflater.inflate(R.layout.pager_content, container, false); + Bundle args = getArguments(); + //((TextView) rootView.findViewById(R.id.pager_content_text)).setText(args.getString("text")); + return rootView; + } +} + |