Android Open Source - FirePhoneDemos Fire Fly Product Activity






From Project

Back to project page FirePhoneDemos.

License

The source code is released under:

Apache License

If you think the Android project FirePhoneDemos 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.zappos.firephone.firefly;
//w ww . j  a  v  a 2s . c o  m

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.RatingBar;
import android.widget.TextView;

import com.zappos.firephone.R;

import butterknife.ButterKnife;
import butterknife.InjectView;

public class FireFlyProductActivity extends Activity {

    @InjectView(R.id.tv_title)
    TextView mTvTitle;

    @InjectView(R.id.tv_upc)
    TextView mTvUpc;

    @InjectView(R.id.rb_ratings)
    RatingBar mRbRating;


    // Get the intent that started this Activity and display the associated product data.
    @Override
    public void onCreate(Bundle b) {
        super.onCreate(b);
        setContentView(R.layout.activity_fire_fly_product);

        ButterKnife.inject(this);

        // Get the intent that started this activity.
        Intent callerIntent = getIntent();
        final String title = callerIntent.getStringExtra(FireFlyDigitalEntityUI.EXTRA_TITLE);
        final String upc = callerIntent.getStringExtra(FireFlyDigitalEntityUI.EXTRA_UPC);
        final float rating = callerIntent.getFloatExtra(FireFlyDigitalEntityUI.EXTRA_RATING, 0);

        mTvTitle.setText(title);
        mTvUpc.setText("UPC: " + upc);
        mRbRating.setRating(rating);
    }
}




Java Source Code List

com.zappos.firephone.ApplicationTest.java
com.zappos.firephone.activity.BaseActivity.java
com.zappos.firephone.activity.GestureActivity.java
com.zappos.firephone.activity.HeadTrackingCircleActivity.java
com.zappos.firephone.activity.HomeActivity.java
com.zappos.firephone.activity.HomeWidgetActivity.java
com.zappos.firephone.activity.NumericBadgeActivity.java
com.zappos.firephone.firefly.FireFlyDigitalEntityUI.java
com.zappos.firephone.firefly.FireFlyPhoneActivity.java
com.zappos.firephone.firefly.FireFlyPlugin.java
com.zappos.firephone.firefly.FireFlyProductActivity.java
com.zappos.firephone.receiver.WidgetBroadcastReceiver.java
com.zappos.firephone.view.CircleView.java