package com.camnter.newlife.activity.util;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;

import com.camnter.newlife.R;
import com.camnter.newlife.utils.ReflectionUtil;

/**
 * Description：
 * Created by：CaMnter
 * Time：2015-11-20 12:17
 */
public class ReflectionUtilActivity extends AppCompatActivity implements View.OnClickListener {

    ImageView imageView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.setContentView(R.layout.activity_reflection_util);

        this.imageView = (ImageView) this.findViewById(R.id.reflection_iv);
        this.findViewById(R.id.reflection_bt).setOnClickListener(this);
    }

    /**
     * Called when a view has been clicked.
     *
     * @param v The view that was clicked.
     */
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.reflection_bt:
                this.imageView.setImageResource(ReflectionUtil.getResourceId(this, "mm_1", ReflectionUtil.ResourcesType.mipmap));
                break;
        }
    }
}

@@ -271,16 +271,38 @@
 ription%EF%BC%9A
+ReflectionUtilActivity
 %0A * Crea
@@ -1027,16 +1027,96 @@
 ion_bt:%0A
+                /*%0A                 * %E8%8E%B7%E5%8F%96%E8%B5%84%E6%BA%90%E5%90%8D%E4%B8%BAmm_1%E7%9A%84mipmap%E7%B1%BB%E5%9E%8B%E6%96%87%E4%BB%B6%0A                 */%0A
         

add comments