├── .classpath ├── .project ├── .settings └── org.eclipse.jdt.core.prefs ├── AndroidManifest.xml ├── BubbleDrag.png ├── README.md ├── bin ├── AndroidManifest.xml ├── R.txt ├── a.apk ├── classes.dex ├── classes │ └── com │ │ ├── bubble │ │ ├── AndroidUtil.class │ │ ├── BubbleMove.class │ │ ├── BubbleStable.class │ │ └── activity │ │ │ └── MainActivity.class │ │ └── wangjie │ │ └── draggableflagview │ │ ├── BuildConfig.class │ │ ├── R$attr.class │ │ ├── R$drawable.class │ │ ├── R$id.class │ │ ├── R$layout.class │ │ ├── R$string.class │ │ ├── R$styleable.class │ │ └── R.class ├── dexedLibs │ ├── android-support-v4-4d992af91565ecc5981ea88b8a541a25.jar │ └── androidbucket-6054b62b9da8340f69dc9f4d6a19142b.jar ├── jarlist.cache ├── res │ └── crunch │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-ldpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ └── drawable-xhdpi │ │ └── ic_launcher.png └── resources.ap_ ├── gen └── com │ └── wangjie │ └── draggableflagview │ ├── BuildConfig.java │ └── R.java ├── ic_launcher-web.png ├── libs └── android-support-v4.jar ├── proguard-project.txt ├── project.properties ├── res ├── drawable-hdpi │ └── ic_launcher.png ├── drawable-ldpi │ └── ic_launcher.png ├── drawable-mdpi │ └── ic_launcher.png ├── drawable-xhdpi │ └── ic_launcher.png ├── layout │ └── main.xml └── values │ ├── attrs.xml │ └── strings.xml └── src └── com └── bubble ├── AndroidUtil.java ├── BubbleMove.java ├── BubbleStable.java └── activity └── MainActivity.java /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | a 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.source=1.6 5 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 11 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /BubbleDrag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/BubbleDrag.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # BubbleDrag 2 | 高仿QQ新版聊天消息提示气泡,可以拖动,反弹跳动 3 | -------------------------------------------------------------------------------- /bin/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 11 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /bin/R.txt: -------------------------------------------------------------------------------- 1 | int anim fade_in 0x7f040000 2 | int anim push_down_in 0x7f040001 3 | int anim push_down_out 0x7f040002 4 | int anim push_up_in 0x7f040003 5 | int anim push_up_out 0x7f040004 6 | int anim slide_bottom_in 0x7f040005 7 | int anim slide_left_in 0x7f040006 8 | int anim slide_left_out 0x7f040007 9 | int anim slide_right_in 0x7f040008 10 | int anim slide_right_out 0x7f040009 11 | int anim slide_top_out 0x7f04000a 12 | int attr cardBackgroundColor 0x7f010000 13 | int attr cardCornerRadius 0x7f010001 14 | int attr cardElevation 0x7f010002 15 | int attr cardMaxElevation 0x7f010003 16 | int attr cardPreventCornerOverlap 0x7f010005 17 | int attr cardUseCompatPadding 0x7f010004 18 | int attr color 0x7f010013 19 | int attr contentPadding 0x7f010006 20 | int attr contentPaddingBottom 0x7f01000a 21 | int attr contentPaddingLeft 0x7f010007 22 | int attr contentPaddingRight 0x7f010008 23 | int attr contentPaddingTop 0x7f010009 24 | int attr filterAlphaVector 0x7f010011 25 | int attr filterBlueVector 0x7f010010 26 | int attr filterBrightnessVector 0x7f010012 27 | int attr filterGreenVector 0x7f01000f 28 | int attr filterRedVector 0x7f01000e 29 | int attr shadowEndColor 0x7f01000c 30 | int attr shadowSize 0x7f01000d 31 | int attr shadowStartColor 0x7f01000b 32 | int color ab__gray_light 0x7f050000 33 | int color cardview_dark_background 0x7f050002 34 | int color cardview_light_background 0x7f050001 35 | int color cardview_shadow_end_color 0x7f050004 36 | int color cardview_shadow_start_color 0x7f050003 37 | int dimen cardview_compat_inset_shadow 0x7f060003 38 | int dimen cardview_default_elevation 0x7f060002 39 | int dimen cardview_default_radius 0x7f060001 40 | int dimen cardview_shadow_size 0x7f060000 41 | int drawable ab__shape_corners_black 0x7f020000 42 | int drawable ic_launcher 0x7f020001 43 | int drawable selector_bg_sheet_corner_all 0x7f020002 44 | int drawable selector_bg_sheet_item 0x7f020003 45 | int drawable shape_corners_gray_corner_all 0x7f020004 46 | int drawable shape_corners_white_corner_all 0x7f020005 47 | int drawable shape_corners_white_corner_top_lr 0x7f020006 48 | int id ab__id_adapter_child_position 0x7f070004 49 | int id ab__id_adapter_group_position 0x7f070003 50 | int id ab__id_adapter_item_position 0x7f070005 51 | int id ab__id_adapter_item_type_render 0x7f070006 52 | int id ab_drop_menu_item_title 0x7f070008 53 | int id ab_drop_menu_lv 0x7f070007 54 | int id ab_horizontial_edit_menu_items_view 0x7f070009 55 | int id ab_sheet_cancel_tv 0x7f07000c 56 | int id ab_sheet_item_title_tv 0x7f07000d 57 | int id ab_sheet_lv 0x7f07000b 58 | int id ab_sheet_title_tv 0x7f07000a 59 | int id ids_adapter_on_adapter_click_listener 0x7f070002 60 | int id main_btn 0x7f07000e 61 | int id main_dfv 0x7f07000f 62 | int id view_height 0x7f070000 63 | int id view_width 0x7f070001 64 | int layout ab_drop_menu 0x7f030000 65 | int layout ab_drop_menu_item 0x7f030001 66 | int layout ab_horizontial_edit_menu 0x7f030002 67 | int layout ab_sheet 0x7f030003 68 | int layout ab_sheet_item 0x7f030004 69 | int layout main 0x7f030005 70 | int string app_name 0x7f080000 71 | int string tag_fragment_tab_click_only 0x7f080001 72 | int style CardView 0x7f090004 73 | int style CardView_Dark 0x7f090006 74 | int style CardView_Light 0x7f090005 75 | int style LoadingDialogStyle 0x7f090003 76 | int style animDialogPushDown 0x7f090002 77 | int style animDialogPushUp 0x7f090001 78 | int style customDialogStyle 0x7f090000 79 | int[] styleable CardView { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b, 0x7f01000c, 0x7f01000d } 80 | int styleable CardView_cardBackgroundColor 0 81 | int styleable CardView_cardCornerRadius 1 82 | int styleable CardView_cardElevation 2 83 | int styleable CardView_cardMaxElevation 3 84 | int styleable CardView_cardPreventCornerOverlap 5 85 | int styleable CardView_cardUseCompatPadding 4 86 | int styleable CardView_contentPadding 6 87 | int styleable CardView_contentPaddingBottom 10 88 | int styleable CardView_contentPaddingLeft 7 89 | int styleable CardView_contentPaddingRight 8 90 | int styleable CardView_contentPaddingTop 9 91 | int styleable CardView_shadowEndColor 12 92 | int styleable CardView_shadowSize 13 93 | int styleable CardView_shadowStartColor 11 94 | int[] styleable ColorFilterImageButton { 0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011, 0x7f010012 } 95 | int styleable ColorFilterImageButton_filterAlphaVector 3 96 | int styleable ColorFilterImageButton_filterBlueVector 2 97 | int styleable ColorFilterImageButton_filterBrightnessVector 4 98 | int styleable ColorFilterImageButton_filterGreenVector 1 99 | int styleable ColorFilterImageButton_filterRedVector 0 100 | int[] styleable DraggableFlagView { 0x7f010013 } 101 | int styleable DraggableFlagView_color 0 102 | -------------------------------------------------------------------------------- /bin/a.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/a.apk -------------------------------------------------------------------------------- /bin/classes.dex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/classes.dex -------------------------------------------------------------------------------- /bin/classes/com/bubble/AndroidUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/classes/com/bubble/AndroidUtil.class -------------------------------------------------------------------------------- /bin/classes/com/bubble/BubbleMove.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/classes/com/bubble/BubbleMove.class -------------------------------------------------------------------------------- /bin/classes/com/bubble/BubbleStable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/classes/com/bubble/BubbleStable.class -------------------------------------------------------------------------------- /bin/classes/com/bubble/activity/MainActivity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/classes/com/bubble/activity/MainActivity.class -------------------------------------------------------------------------------- /bin/classes/com/wangjie/draggableflagview/BuildConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/classes/com/wangjie/draggableflagview/BuildConfig.class -------------------------------------------------------------------------------- /bin/classes/com/wangjie/draggableflagview/R$attr.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/classes/com/wangjie/draggableflagview/R$attr.class -------------------------------------------------------------------------------- /bin/classes/com/wangjie/draggableflagview/R$drawable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/classes/com/wangjie/draggableflagview/R$drawable.class -------------------------------------------------------------------------------- /bin/classes/com/wangjie/draggableflagview/R$id.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/classes/com/wangjie/draggableflagview/R$id.class -------------------------------------------------------------------------------- /bin/classes/com/wangjie/draggableflagview/R$layout.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/classes/com/wangjie/draggableflagview/R$layout.class -------------------------------------------------------------------------------- /bin/classes/com/wangjie/draggableflagview/R$string.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/classes/com/wangjie/draggableflagview/R$string.class -------------------------------------------------------------------------------- /bin/classes/com/wangjie/draggableflagview/R$styleable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/classes/com/wangjie/draggableflagview/R$styleable.class -------------------------------------------------------------------------------- /bin/classes/com/wangjie/draggableflagview/R.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/classes/com/wangjie/draggableflagview/R.class -------------------------------------------------------------------------------- /bin/dexedLibs/android-support-v4-4d992af91565ecc5981ea88b8a541a25.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/dexedLibs/android-support-v4-4d992af91565ecc5981ea88b8a541a25.jar -------------------------------------------------------------------------------- /bin/dexedLibs/androidbucket-6054b62b9da8340f69dc9f4d6a19142b.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/dexedLibs/androidbucket-6054b62b9da8340f69dc9f4d6a19142b.jar -------------------------------------------------------------------------------- /bin/jarlist.cache: -------------------------------------------------------------------------------- 1 | # cache for current jar dependency. DO NOT EDIT. 2 | # format is 3 | # Encoding is UTF-8 4 | -------------------------------------------------------------------------------- /bin/res/crunch/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/res/crunch/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/res/crunch/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/res/crunch/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/res/crunch/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/resources.ap_: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/bin/resources.ap_ -------------------------------------------------------------------------------- /gen/com/wangjie/draggableflagview/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package com.wangjie.draggableflagview; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /gen/com/wangjie/draggableflagview/R.java: -------------------------------------------------------------------------------- 1 | /* AUTO-GENERATED FILE. DO NOT MODIFY. 2 | * 3 | * This class was automatically generated by the 4 | * aapt tool from the resource data it found. It 5 | * should not be modified by hand. 6 | */ 7 | 8 | package com.wangjie.draggableflagview; 9 | 10 | public final class R { 11 | public static final class attr { 12 | /**

Must be a color value, in the form of "#rgb", "#argb", 13 | "#rrggbb", or "#aarrggbb". 14 |

This may also be a reference to a resource (in the form 15 | "@[package:]type:name") or 16 | theme attribute (in the form 17 | "?[package:][type:]name") 18 | containing a value of this type. 19 | */ 20 | public static final int color=0x7f010000; 21 | } 22 | public static final class drawable { 23 | public static final int ic_launcher=0x7f020000; 24 | } 25 | public static final class id { 26 | public static final int bubble=0x7f050000; 27 | } 28 | public static final class layout { 29 | public static final int main=0x7f030000; 30 | } 31 | public static final class string { 32 | public static final int app_name=0x7f040000; 33 | } 34 | public static final class styleable { 35 | /** Attributes that can be used with a DraggableFlagView. 36 |

Includes the following attributes:

37 | 38 | 39 | 40 | 41 | 42 |
AttributeDescription
{@link #DraggableFlagView_color com.wangjie.draggableflagview:color}
43 | @see #DraggableFlagView_color 44 | */ 45 | public static final int[] DraggableFlagView = { 46 | 0x7f010000 47 | }; 48 | /** 49 |

This symbol is the offset where the {@link com.wangjie.draggableflagview.R.attr#color} 50 | attribute's value can be found in the {@link #DraggableFlagView} array. 51 | 52 | 53 |

Must be a color value, in the form of "#rgb", "#argb", 54 | "#rrggbb", or "#aarrggbb". 55 |

This may also be a reference to a resource (in the form 56 | "@[package:]type:name") or 57 | theme attribute (in the form 58 | "?[package:][type:]name") 59 | containing a value of this type. 60 | @attr name com.wangjie.draggableflagview:color 61 | */ 62 | public static final int DraggableFlagView_color = 0; 63 | }; 64 | } 65 | -------------------------------------------------------------------------------- /ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/ic_launcher-web.png -------------------------------------------------------------------------------- /libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/libs/android-support-v4.jar -------------------------------------------------------------------------------- /proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-19 15 | -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/res/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | DraggableFlagView 4 | 5 | -------------------------------------------------------------------------------- /src/com/bubble/AndroidUtil.java: -------------------------------------------------------------------------------- 1 | package com.bubble; 2 | 3 | import java.lang.reflect.Field; 4 | 5 | import android.app.Activity; 6 | import android.content.Context; 7 | import android.view.Window; 8 | import android.view.WindowManager; 9 | 10 | public class AndroidUtil { 11 | public static int getDeviceHeight(Context context) 12 | { 13 | WindowManager manager = (WindowManager) context 14 | .getSystemService(Context.WINDOW_SERVICE); 15 | return manager.getDefaultDisplay().getHeight(); 16 | } 17 | public static int getTopBarHeight(Activity activity) 18 | { 19 | Class c = null; 20 | 21 | Object obj = null; 22 | 23 | Field field = null; 24 | 25 | int x = 0, sbar = 0; 26 | 27 | try { 28 | 29 | c = Class.forName("com.android.internal.R$dimen"); 30 | 31 | obj = c.newInstance(); 32 | 33 | field = c.getField("status_bar_height"); 34 | 35 | x = Integer.parseInt(field.get(obj).toString()); 36 | 37 | sbar = activity.getResources().getDimensionPixelSize(x); 38 | 39 | } catch (Exception e1) { 40 | 41 | e1.printStackTrace(); 42 | 43 | } 44 | 45 | return sbar; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/com/bubble/BubbleMove.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/src/com/bubble/BubbleMove.java -------------------------------------------------------------------------------- /src/com/bubble/BubbleStable.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/younfor/BubbleDrag/f3ee0dc7af2a69a9788f0127a1299da07c19156c/src/com/bubble/BubbleStable.java -------------------------------------------------------------------------------- /src/com/bubble/activity/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.bubble.activity; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import com.wangjie.draggableflagview.R; 6 | 7 | public class MainActivity extends Activity { 8 | 9 | @Override 10 | public void onCreate(Bundle savedInstanceState) { 11 | super.onCreate(savedInstanceState); 12 | setContentView(R.layout.main); 13 | 14 | } 15 | } 16 | --------------------------------------------------------------------------------