Android Open Source - PrettyBundle Menu Activity






From Project

Back to project page PrettyBundle.

License

The source code is released under:

Apache License

If you think the Android project PrettyBundle listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.tale.prettybundle.sample;
/*  w ww. j a va  2  s .  c  o m*/
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.tale.prettybundle.Activities;
import com.tale.prettybundle.sample.data.Person;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by giang on 2/24/15.
 */
public class MenuActivity extends Activity {

    @Override public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_menu);
        ButterKnife.inject(this);
    }

    @OnClick(R.id.btTestStringExtras) public void testStringExtras() {
        startActivity(new Intent(this, MainActivity.class));
    }

    @OnClick(R.id.btTestPrimaryTypeExtras) public void testPrimaryTypeExtras() {
        startActivity(new Intent(this, TestPrimaryTypeSetterActivity.class));
    }

    @OnClick(R.id.btTestParcelableExtras) public void testTestParcelableExtras() {
        startActivity(Activities.createTestParcelableActivityIntent(this, new Person("Giang", 26)));
    }

    @OnClick(R.id.btTestArrayExtras) public void testTestArrayExtras() {
        final int[] ints = {1, 2, 3};
        final long[] longs = {4, 5, 6};
        final float[] floats = {4.1f, 5.1f, 6.1f};
        final double[] doubles = {7.2d, 8.2d, 9.2d};
        final boolean[] booleans = {true, false, false, true};
        final String[] strings = {"One", "Two", "Three"};
        final Person[] persons = {new Person("p1", 18), new Person("p2", 19)};
        startActivity(Activities.createTestArrayExtrasActivityIntent(this, ints, longs, floats, doubles, booleans, strings, persons));
    }

    @OnClick(R.id.btTestFragmentInject) public void testFragmentInject() {
        startActivity(new Intent(this, TestExtraOnFragmentActivity.class));
    }
}




Java Source Code List

com.tale.prettybundle.ExtraBinderProvider.java
com.tale.prettybundle.ExtraBinder.java
com.tale.prettybundle.Extra.java
com.tale.prettybundle.Injector.java
com.tale.prettybundle.PrettyBundle.java
com.tale.prettybundle.internal.ExtraAnnotatedClass.java
com.tale.prettybundle.internal.ExtraClassesGrouped.java
com.tale.prettybundle.internal.ExtraInjectorClassBuilder.java
com.tale.prettybundle.internal.ExtraUtilityClassBuilder.java
com.tale.prettybundle.internal.PrettyBundleProcessor.java
com.tale.prettybundle.internal.SupportedType.java
com.tale.prettybundle.sample.ActivitiesClassTest.java
com.tale.prettybundle.sample.ActivitiesTest.java
com.tale.prettybundle.sample.ApplicationTest.java
com.tale.prettybundle.sample.BaseActivityUnitTestCase.java
com.tale.prettybundle.sample.InjectArrayExtrasTest.java
com.tale.prettybundle.sample.InjectParcelableExtrasTest.java
com.tale.prettybundle.sample.InjectPrimaryTypeExtrasFragmentTest.java
com.tale.prettybundle.sample.InjectPrimaryTypeExtrasTest.java
com.tale.prettybundle.sample.InjectStringExtrasTest.java
com.tale.prettybundle.sample.MainActivity.java
com.tale.prettybundle.sample.MenuActivity.java
com.tale.prettybundle.sample.TestArrayExtrasActivity.java
com.tale.prettybundle.sample.TestExtraOnFragmentActivity.java
com.tale.prettybundle.sample.TestParcelableActivity.java
com.tale.prettybundle.sample.TestPrimaryTypeDisplayActivity.java
com.tale.prettybundle.sample.TestPrimaryTypeSetterActivity.java
com.tale.prettybundle.sample.TestStringExtra1Activity.java
com.tale.prettybundle.sample.TestStringExtra2Activity.java
com.tale.prettybundle.sample.data.Person.java
com.tale.prettybundle.sample.espresso.ExtViewActions.java
com.tale.prettybundle.sample.fragments.TestPrimaryExtraFragment.java
com.tale.prettybundle.sample.services.TestPrimaryTypeService.java