add jumping between layout hierarchy and layout bounds view

This commit is contained in:
hyb1996
2017-06-27 22:43:11 +08:00
parent 59a1b5dffb
commit 97ff7e49a1
28 changed files with 745 additions and 125 deletions

View File

@@ -0,0 +1,51 @@
package com.stardust.util;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import java.util.HashMap;
/**
* Created by Stardust on 2017/6/27.
*/
public class MessageIntent extends Intent {
private HashMap<String, Object> mObjectExtras;
public MessageIntent() {
}
public MessageIntent(Intent o) {
super(o);
}
public MessageIntent(String action) {
super(action);
}
public MessageIntent(String action, Uri uri) {
super(action, uri);
}
public MessageIntent(Context packageContext, Class<?> cls) {
super(packageContext, cls);
}
public MessageIntent(String action, Uri uri, Context packageContext, Class<?> cls) {
super(action, uri, packageContext, cls);
}
public MessageIntent putExtra(String key, Object value) {
if (mObjectExtras == null) {
mObjectExtras = new HashMap<>();
}
mObjectExtras.put(key, value);
return this;
}
public Object getObjectExtra(String key) {
return mObjectExtras.get(key);
}
}