Exemplo n.º 1
0
        public static TestFragment NewInstance(String content)
        {
            TestFragment fragment = new TestFragment();

            StringBuilder builder = new StringBuilder();

            for (int i = 0; i < 20; i++)
            {
                builder.Append(content).Append(" ");
            }
            builder.Remove(builder.Length - 1, 1);
            fragment.mContent = builder.ToString();

            return(fragment);
        }
 public override Fragment GetItem(int position)
 {
     return(TestFragment.NewInstance(CONTENT[position % CONTENT.Length]));
 }