├── .gitattributes
├── .gitignore
├── PopupMenu
├── .gradle
│ ├── 2.2.1
│ │ └── taskArtifacts
│ │ │ ├── cache.properties
│ │ │ ├── cache.properties.lock
│ │ │ ├── fileHashes.bin
│ │ │ ├── fileSnapshots.bin
│ │ │ ├── outputFileStates.bin
│ │ │ └── taskArtifacts.bin
│ └── 2.4
│ │ └── taskArtifacts
│ │ ├── cache.properties
│ │ ├── cache.properties.lock
│ │ ├── fileHashes.bin
│ │ ├── fileSnapshots.bin
│ │ ├── outputFileStates.bin
│ │ └── taskArtifacts.bin
├── .idea
│ ├── .name
│ ├── compiler.xml
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── encodings.xml
│ ├── gradle.xml
│ ├── libraries
│ │ ├── support_annotations_21_0_3.xml
│ │ └── support_v4_21_0_3.xml
│ ├── misc.xml
│ ├── modules.xml
│ ├── runConfigurations.xml
│ ├── vcs.xml
│ └── workspace.xml
├── PopupMenu.iml
├── PopupMenu1.iml
├── app
│ ├── app.iml
│ ├── build.gradle
│ ├── build
│ │ ├── generated
│ │ │ └── source
│ │ │ │ ├── buildConfig
│ │ │ │ ├── androidTest
│ │ │ │ │ └── debug
│ │ │ │ │ │ └── com
│ │ │ │ │ │ └── lidong
│ │ │ │ │ │ └── popupmenu
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── BuildConfig.java
│ │ │ │ └── debug
│ │ │ │ │ └── com
│ │ │ │ │ └── lidong
│ │ │ │ │ └── popupmenu
│ │ │ │ │ └── BuildConfig.java
│ │ │ │ └── r
│ │ │ │ └── debug
│ │ │ │ └── com
│ │ │ │ └── lidong
│ │ │ │ └── popupmenu
│ │ │ │ └── R.java
│ │ ├── intermediates
│ │ │ ├── classes
│ │ │ │ ├── androidTest
│ │ │ │ │ └── debug
│ │ │ │ │ │ └── com
│ │ │ │ │ │ └── ywl5320
│ │ │ │ │ │ └── popupmenu
│ │ │ │ │ │ └── test
│ │ │ │ │ │ └── BuildConfig.class
│ │ │ │ └── debug
│ │ │ │ │ └── com
│ │ │ │ │ ├── lidong
│ │ │ │ │ └── popupmenu
│ │ │ │ │ │ ├── BuildConfig.class
│ │ │ │ │ │ ├── MainActivity$1$1.class
│ │ │ │ │ │ ├── MainActivity$1.class
│ │ │ │ │ │ ├── MainActivity.class
│ │ │ │ │ │ ├── PopupMenu$MENUITEM.class
│ │ │ │ │ │ ├── PopupMenu$OnItemClickListener.class
│ │ │ │ │ │ ├── PopupMenu.class
│ │ │ │ │ │ ├── R$attr.class
│ │ │ │ │ │ ├── R$color.class
│ │ │ │ │ │ ├── R$drawable.class
│ │ │ │ │ │ ├── R$id.class
│ │ │ │ │ │ ├── R$layout.class
│ │ │ │ │ │ ├── R$string.class
│ │ │ │ │ │ ├── R$style.class
│ │ │ │ │ │ └── R.class
│ │ │ │ │ └── ywl5320
│ │ │ │ │ └── popupmenu
│ │ │ │ │ ├── BuildConfig.class
│ │ │ │ │ ├── MainActivity$1$1.class
│ │ │ │ │ ├── MainActivity$1.class
│ │ │ │ │ ├── MainActivity.class
│ │ │ │ │ ├── PopupMenu$MENUITEM.class
│ │ │ │ │ ├── PopupMenu$OnItemClickListener.class
│ │ │ │ │ ├── PopupMenu.class
│ │ │ │ │ ├── R$attr.class
│ │ │ │ │ └── R$color.class
│ │ │ ├── dex
│ │ │ │ └── debug
│ │ │ │ │ └── classes.dex
│ │ │ ├── exploded-aar
│ │ │ │ └── com.android.support
│ │ │ │ │ └── support-v4
│ │ │ │ │ └── 21.0.3
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── aidl
│ │ │ │ │ └── android
│ │ │ │ │ │ └── support
│ │ │ │ │ │ └── v4
│ │ │ │ │ │ └── app
│ │ │ │ │ │ └── INotificationSideChannel.aidl
│ │ │ │ │ └── jars
│ │ │ │ │ ├── classes.jar
│ │ │ │ │ └── libs
│ │ │ │ │ └── internal_impl-21.0.3.jar
│ │ │ ├── incremental
│ │ │ │ ├── aidl
│ │ │ │ │ ├── androidTest
│ │ │ │ │ │ └── debug
│ │ │ │ │ │ │ └── dependency.store
│ │ │ │ │ └── debug
│ │ │ │ │ │ └── dependency.store
│ │ │ │ ├── mergeAssets
│ │ │ │ │ ├── androidTest
│ │ │ │ │ │ └── debug
│ │ │ │ │ │ │ └── merger.xml
│ │ │ │ │ └── debug
│ │ │ │ │ │ └── merger.xml
│ │ │ │ ├── mergeResourcesandroidTest
│ │ │ │ │ └── debug
│ │ │ │ │ │ └── merger.xml
│ │ │ │ └── mergeResourcesdebug
│ │ │ │ │ └── merger.xml
│ │ │ ├── manifest
│ │ │ │ └── androidTest
│ │ │ │ │ └── debug
│ │ │ │ │ └── AndroidManifest.xml
│ │ │ ├── manifests
│ │ │ │ └── full
│ │ │ │ │ └── debug
│ │ │ │ │ └── AndroidManifest.xml
│ │ │ ├── pre-dexed
│ │ │ │ └── debug
│ │ │ │ │ ├── classes-d3e1fb8914da16bb2c663e338bda4c20ef5454d2.jar
│ │ │ │ │ ├── internal_impl-21.0.3-56a9941b1aa38849b27411140083f80043742bcd.jar
│ │ │ │ │ └── support-annotations-21.0.3-8b3bca93c7cc968fee5176f7f9f153158333f705.jar
│ │ │ ├── res
│ │ │ │ ├── merged
│ │ │ │ │ └── debug
│ │ │ │ │ │ ├── drawable-hdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ ├── drawable-mdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ ├── drawable-xhdpi
│ │ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ │ ├── icon_popupwin_menu_bg.9.png
│ │ │ │ │ │ ├── img_popupmenu_bg.9.png
│ │ │ │ │ │ ├── img_xx.png
│ │ │ │ │ │ └── menu_icon.png
│ │ │ │ │ │ ├── drawable-xxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ ├── drawable
│ │ │ │ │ │ └── bg_default_button_selector.xml
│ │ │ │ │ │ ├── layout
│ │ │ │ │ │ ├── activity_main.xml
│ │ │ │ │ │ ├── common_title_layout.xml
│ │ │ │ │ │ └── popup_menu.xml
│ │ │ │ │ │ ├── values-v11
│ │ │ │ │ │ └── values-v11.xml
│ │ │ │ │ │ ├── values-v14
│ │ │ │ │ │ └── values-v14.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ └── values.xml
│ │ │ │ ├── resources-debug-androidTest.ap_
│ │ │ │ └── resources-debug.ap_
│ │ │ └── symbols
│ │ │ │ └── debug
│ │ │ │ └── R.txt
│ │ └── outputs
│ │ │ ├── apk
│ │ │ ├── app-debug-unaligned.apk
│ │ │ └── app-debug.apk
│ │ │ └── logs
│ │ │ └── manifest-merger-debug-report.txt
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ └── com
│ │ │ └── lidong
│ │ │ └── popupmenu
│ │ │ ├── MainActivity.java
│ │ │ └── PopupMenu.java
│ │ └── res
│ │ ├── drawable-hdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ │ ├── drawable-xhdpi
│ │ ├── ic_launcher.png
│ │ ├── icon_popupwin_menu_bg.9.png
│ │ ├── img_popupmenu_bg.9.png
│ │ ├── img_xx.png
│ │ └── menu_icon.png
│ │ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ │ ├── drawable
│ │ └── bg_default_button_selector.xml
│ │ ├── layout
│ │ ├── activity_main.xml
│ │ ├── common_title_layout.xml
│ │ └── popup_menu.xml
│ │ ├── values-v11
│ │ └── styles.xml
│ │ ├── values-v14
│ │ └── styles.xml
│ │ └── values
│ │ ├── colors.xml
│ │ ├── strings.xml
│ │ └── styles.xml
├── build.gradle
├── build
│ └── intermediates
│ │ └── dex-cache
│ │ └── cache.xml
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── import-summary.txt
├── local.properties
└── settings.gradle
├── README.md
└── screenshots
├── 8C2B13845C23D5110AACDAF2F4A6FD50.jpg
├── QQ图片20160414085112.jpg
└── QQ图片20160414085121.jpg
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 |
7 | # Standard to msysgit
8 | *.doc diff=astextplain
9 | *.DOC diff=astextplain
10 | *.docx diff=astextplain
11 | *.DOCX diff=astextplain
12 | *.dot diff=astextplain
13 | *.DOT diff=astextplain
14 | *.pdf diff=astextplain
15 | *.PDF diff=astextplain
16 | *.rtf diff=astextplain
17 | *.RTF diff=astextplain
18 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Windows image file caches
2 | Thumbs.db
3 | ehthumbs.db
4 |
5 | # Folder config file
6 | Desktop.ini
7 |
8 | # Recycle Bin used on file shares
9 | $RECYCLE.BIN/
10 |
11 | # Windows Installer files
12 | *.cab
13 | *.msi
14 | *.msm
15 | *.msp
16 |
17 | # Windows shortcuts
18 | *.lnk
19 |
20 | # =========================
21 | # Operating System Files
22 | # =========================
23 |
24 | # OSX
25 | # =========================
26 |
27 | .DS_Store
28 | .AppleDouble
29 | .LSOverride
30 |
31 | # Thumbnails
32 | ._*
33 |
34 | # Files that might appear in the root of a volume
35 | .DocumentRevisions-V100
36 | .fseventsd
37 | .Spotlight-V100
38 | .TemporaryItems
39 | .Trashes
40 | .VolumeIcon.icns
41 |
42 | # Directories potentially created on remote AFP share
43 | .AppleDB
44 | .AppleDesktop
45 | Network Trash Folder
46 | Temporary Items
47 | .apdisk
48 |
--------------------------------------------------------------------------------
/PopupMenu/.gradle/2.2.1/taskArtifacts/cache.properties:
--------------------------------------------------------------------------------
1 | #Thu Feb 25 08:25:49 CST 2016
2 |
--------------------------------------------------------------------------------
/PopupMenu/.gradle/2.2.1/taskArtifacts/cache.properties.lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/.gradle/2.2.1/taskArtifacts/cache.properties.lock
--------------------------------------------------------------------------------
/PopupMenu/.gradle/2.2.1/taskArtifacts/fileHashes.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/.gradle/2.2.1/taskArtifacts/fileHashes.bin
--------------------------------------------------------------------------------
/PopupMenu/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin
--------------------------------------------------------------------------------
/PopupMenu/.gradle/2.2.1/taskArtifacts/outputFileStates.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/.gradle/2.2.1/taskArtifacts/outputFileStates.bin
--------------------------------------------------------------------------------
/PopupMenu/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin
--------------------------------------------------------------------------------
/PopupMenu/.gradle/2.4/taskArtifacts/cache.properties:
--------------------------------------------------------------------------------
1 | #Wed Feb 24 19:20:11 CST 2016
2 |
--------------------------------------------------------------------------------
/PopupMenu/.gradle/2.4/taskArtifacts/cache.properties.lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/.gradle/2.4/taskArtifacts/cache.properties.lock
--------------------------------------------------------------------------------
/PopupMenu/.gradle/2.4/taskArtifacts/fileHashes.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/.gradle/2.4/taskArtifacts/fileHashes.bin
--------------------------------------------------------------------------------
/PopupMenu/.gradle/2.4/taskArtifacts/fileSnapshots.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/.gradle/2.4/taskArtifacts/fileSnapshots.bin
--------------------------------------------------------------------------------
/PopupMenu/.gradle/2.4/taskArtifacts/outputFileStates.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/.gradle/2.4/taskArtifacts/outputFileStates.bin
--------------------------------------------------------------------------------
/PopupMenu/.gradle/2.4/taskArtifacts/taskArtifacts.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/.gradle/2.4/taskArtifacts/taskArtifacts.bin
--------------------------------------------------------------------------------
/PopupMenu/.idea/.name:
--------------------------------------------------------------------------------
1 | PopupMenu
--------------------------------------------------------------------------------
/PopupMenu/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/PopupMenu/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/PopupMenu/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/PopupMenu/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
--------------------------------------------------------------------------------
/PopupMenu/.idea/libraries/support_annotations_21_0_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/PopupMenu/.idea/libraries/support_v4_21_0_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/PopupMenu/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 | Android Lint
44 |
45 |
46 | Error handlingJava
47 |
48 |
49 | Groovy
50 |
51 |
52 | Java
53 |
54 |
55 | Probable bugsJava
56 |
57 |
58 | Threading issuesGroovy
59 |
60 |
61 | Threading issuesJava
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 | 1.8
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/PopupMenu/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/PopupMenu/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/PopupMenu/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/PopupMenu/PopupMenu.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/PopupMenu/PopupMenu1.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/PopupMenu/app/app.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | generateDebugAndroidTestSources
19 | generateDebugSources
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
--------------------------------------------------------------------------------
/PopupMenu/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 21
5 | buildToolsVersion "23.0.2"
6 |
7 | defaultConfig {
8 | applicationId "com.lidong.popupmenu"
9 | minSdkVersion 14
10 | targetSdkVersion 21
11 | }
12 |
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | compile 'com.android.support:support-v4:21.0.3'
23 | }
24 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/generated/source/buildConfig/androidTest/debug/com/lidong/popupmenu/test/BuildConfig.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Automatically generated file. DO NOT MODIFY
3 | */
4 | package com.lidong.popupmenu.test;
5 |
6 | public final class BuildConfig {
7 | public static final boolean DEBUG = Boolean.parseBoolean("true");
8 | public static final String APPLICATION_ID = "com.lidong.popupmenu.test";
9 | public static final String BUILD_TYPE = "debug";
10 | public static final String FLAVOR = "";
11 | public static final int VERSION_CODE = -1;
12 | public static final String VERSION_NAME = "";
13 | }
14 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/generated/source/buildConfig/debug/com/lidong/popupmenu/BuildConfig.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Automatically generated file. DO NOT MODIFY
3 | */
4 | package com.lidong.popupmenu;
5 |
6 | public final class BuildConfig {
7 | public static final boolean DEBUG = Boolean.parseBoolean("true");
8 | public static final String APPLICATION_ID = "com.lidong.popupmenu";
9 | public static final String BUILD_TYPE = "debug";
10 | public static final String FLAVOR = "";
11 | public static final int VERSION_CODE = 1;
12 | public static final String VERSION_NAME = "";
13 | }
14 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/generated/source/r/debug/com/lidong/popupmenu/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.lidong.popupmenu;
9 |
10 | public final class R {
11 | public static final class attr {
12 | }
13 | public static final class color {
14 | public static final int transparent_background=0x7f050000;
15 | public static final int transparent_background_button=0x7f050001;
16 | }
17 | public static final class drawable {
18 | public static final int bg_default_button_selector=0x7f020000;
19 | public static final int ic_launcher=0x7f020001;
20 | public static final int icon_popupwin_menu_bg=0x7f020002;
21 | public static final int img_popupmenu_bg=0x7f020003;
22 | public static final int img_xx=0x7f020004;
23 | public static final int menu_icon=0x7f020005;
24 | }
25 | public static final class id {
26 | public static final int iv_back=0x7f070000;
27 | public static final int iv_menu=0x7f070002;
28 | public static final int ly_item1=0x7f070003;
29 | public static final int ly_item2=0x7f070005;
30 | public static final int ly_item3=0x7f070007;
31 | public static final int tv_about_us=0x7f070004;
32 | public static final int tv_check_update=0x7f070006;
33 | public static final int tv_feedback=0x7f070008;
34 | public static final int tv_title=0x7f070001;
35 | }
36 | public static final class layout {
37 | public static final int activity_main=0x7f030000;
38 | public static final int common_title_layout=0x7f030001;
39 | public static final int popup_menu=0x7f030002;
40 | }
41 | public static final class string {
42 | public static final int app_name=0x7f060000;
43 | public static final int hello_world=0x7f060001;
44 | }
45 | public static final class style {
46 | /** API 11 theme customizations can go here.
47 | API 14 theme customizations can go here.
48 |
49 | Theme customizations available in newer API levels can go in
50 | res/values-vXX/styles.xml, while customizations related to
51 | backward-compatibility can go here.
52 |
53 | */
54 | public static final int AppBaseTheme=0x7f040000;
55 | public static final int AppTheme=0x7f040001;
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/androidTest/debug/com/ywl5320/popupmenu/test/BuildConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/androidTest/debug/com/ywl5320/popupmenu/test/BuildConfig.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/BuildConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/BuildConfig.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/MainActivity$1$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/MainActivity$1$1.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/MainActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/MainActivity$1.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/MainActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/MainActivity.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/PopupMenu$MENUITEM.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/PopupMenu$MENUITEM.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/PopupMenu$OnItemClickListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/PopupMenu$OnItemClickListener.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/PopupMenu.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/PopupMenu.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R$attr.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R$attr.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R$color.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R$color.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R$drawable.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R$drawable.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R$id.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R$id.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R$layout.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R$layout.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R$string.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R$string.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R$style.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R$style.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/lidong/popupmenu/R.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/BuildConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/BuildConfig.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/MainActivity$1$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/MainActivity$1$1.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/MainActivity$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/MainActivity$1.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/MainActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/MainActivity.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/PopupMenu$MENUITEM.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/PopupMenu$MENUITEM.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/PopupMenu$OnItemClickListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/PopupMenu$OnItemClickListener.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/PopupMenu.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/PopupMenu.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/R$attr.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/R$attr.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/R$color.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/classes/debug/com/ywl5320/popupmenu/R$color.class
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/dex/debug/classes.dex:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/dex/debug/classes.dex
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/exploded-aar/com.android.support/support-v4/21.0.3/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/exploded-aar/com.android.support/support-v4/21.0.3/aidl/android/support/v4/app/INotificationSideChannel.aidl:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2014 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package android.support.v4.app;
18 |
19 | import android.app.Notification;
20 |
21 | /**
22 | * Interface used for delivering notifications via a side channel that bypasses
23 | * the NotificationManagerService.
24 | *
25 | * @hide
26 | */
27 | oneway interface INotificationSideChannel {
28 | /**
29 | * Send an ambient notification to the service.
30 | */
31 | void notify(String packageName, int id, String tag, in Notification notification);
32 |
33 | /**
34 | * Cancel an already-notified notification.
35 | */
36 | void cancel(String packageName, int id, String tag);
37 |
38 | /**
39 | * Cancel all notifications for the given package.
40 | */
41 | void cancelAll(String packageName);
42 | }
43 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/exploded-aar/com.android.support/support-v4/21.0.3/jars/classes.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/exploded-aar/com.android.support/support-v4/21.0.3/jars/classes.jar
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/exploded-aar/com.android.support/support-v4/21.0.3/jars/libs/internal_impl-21.0.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/exploded-aar/com.android.support/support-v4/21.0.3/jars/libs/internal_impl-21.0.3.jar
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/incremental/aidl/androidTest/debug/dependency.store:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/incremental/aidl/debug/dependency.store:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/incremental/mergeAssets/androidTest/debug/merger.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/incremental/mergeAssets/debug/merger.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/incremental/mergeResourcesandroidTest/debug/merger.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/incremental/mergeResourcesdebug/merger.xml:
--------------------------------------------------------------------------------
1 |
2 | #11000000#ffffffHello world!PopupMenu
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/manifest/androidTest/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
16 |
17 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/pre-dexed/debug/classes-d3e1fb8914da16bb2c663e338bda4c20ef5454d2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/pre-dexed/debug/classes-d3e1fb8914da16bb2c663e338bda4c20ef5454d2.jar
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/pre-dexed/debug/internal_impl-21.0.3-56a9941b1aa38849b27411140083f80043742bcd.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/pre-dexed/debug/internal_impl-21.0.3-56a9941b1aa38849b27411140083f80043742bcd.jar
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/pre-dexed/debug/support-annotations-21.0.3-8b3bca93c7cc968fee5176f7f9f153158333f705.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/pre-dexed/debug/support-annotations-21.0.3-8b3bca93c7cc968fee5176f7f9f153158333f705.jar
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/merged/debug/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/res/merged/debug/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/merged/debug/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/res/merged/debug/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/merged/debug/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/res/merged/debug/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/merged/debug/drawable-xhdpi/icon_popupwin_menu_bg.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/res/merged/debug/drawable-xhdpi/icon_popupwin_menu_bg.9.png
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/merged/debug/drawable-xhdpi/img_popupmenu_bg.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/res/merged/debug/drawable-xhdpi/img_popupmenu_bg.9.png
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/merged/debug/drawable-xhdpi/img_xx.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/res/merged/debug/drawable-xhdpi/img_xx.png
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/merged/debug/drawable-xhdpi/menu_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/res/merged/debug/drawable-xhdpi/menu_icon.png
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/merged/debug/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/res/merged/debug/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/merged/debug/drawable/bg_default_button_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/merged/debug/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
9 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/merged/debug/layout/common_title_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
15 |
16 |
28 |
29 |
37 |
38 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/merged/debug/layout/popup_menu.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
16 |
17 |
25 |
26 |
27 |
31 |
38 |
39 |
45 |
46 |
54 |
55 |
59 |
66 |
67 |
73 |
74 |
82 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/merged/debug/values-v11/values-v11.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/merged/debug/values-v14/values-v14.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/merged/debug/values/values.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | #ffffff
6 | #11000000
7 |
8 |
9 | PopupMenu
10 | Hello world!
11 |
12 |
13 |
20 |
24 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/resources-debug-androidTest.ap_:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/res/resources-debug-androidTest.ap_
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/res/resources-debug.ap_:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/intermediates/res/resources-debug.ap_
--------------------------------------------------------------------------------
/PopupMenu/app/build/intermediates/symbols/debug/R.txt:
--------------------------------------------------------------------------------
1 | int color transparent_background 0x7f050000
2 | int color transparent_background_button 0x7f050001
3 | int drawable bg_default_button_selector 0x7f020000
4 | int drawable ic_launcher 0x7f020001
5 | int drawable icon_popupwin_menu_bg 0x7f020002
6 | int drawable img_popupmenu_bg 0x7f020003
7 | int drawable img_xx 0x7f020004
8 | int drawable menu_icon 0x7f020005
9 | int id iv_back 0x7f070000
10 | int id iv_menu 0x7f070002
11 | int id ly_item1 0x7f070003
12 | int id ly_item2 0x7f070005
13 | int id ly_item3 0x7f070007
14 | int id tv_about_us 0x7f070004
15 | int id tv_check_update 0x7f070006
16 | int id tv_feedback 0x7f070008
17 | int id tv_title 0x7f070001
18 | int layout activity_main 0x7f030000
19 | int layout common_title_layout 0x7f030001
20 | int layout popup_menu 0x7f030002
21 | int string app_name 0x7f060000
22 | int string hello_world 0x7f060001
23 | int style AppBaseTheme 0x7f040000
24 | int style AppTheme 0x7f040001
25 |
--------------------------------------------------------------------------------
/PopupMenu/app/build/outputs/apk/app-debug-unaligned.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/outputs/apk/app-debug-unaligned.apk
--------------------------------------------------------------------------------
/PopupMenu/app/build/outputs/apk/app-debug.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/build/outputs/apk/app-debug.apk
--------------------------------------------------------------------------------
/PopupMenu/app/build/outputs/logs/manifest-merger-debug-report.txt:
--------------------------------------------------------------------------------
1 | -- Merging decision tree log ---
2 | manifest
3 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:2:1-27:12
4 | package
5 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:3:5-35
6 | INJECTED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml
7 | INJECTED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml
8 | android:versionName
9 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:5:5-30
10 | android:versionCode
11 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:4:5-28
12 | INJECTED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml
13 | INJECTED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml
14 | xmlns:android
15 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:2:11-69
16 | uses-sdk
17 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:7:5-9:41
18 | MERGED from [com.android.support:support-v4:21.0.3] E:\AndroidDemo\PopupMenu\app\build\intermediates\exploded-aar\com.android.support\support-v4\21.0.3\AndroidManifest.xml:15:5-42
19 | android:targetSdkVersion
20 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:9:9-38
21 | INJECTED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml
22 | INJECTED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml
23 | android:minSdkVersion
24 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:8:9-35
25 | INJECTED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml
26 | INJECTED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml
27 | application
28 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:11:5-25:19
29 | MERGED from [com.android.support:support-v4:21.0.3] E:\AndroidDemo\PopupMenu\app\build\intermediates\exploded-aar\com.android.support\support-v4\21.0.3\AndroidManifest.xml:16:5-19
30 | android:label
31 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:14:9-41
32 | android:allowBackup
33 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:12:9-35
34 | android:icon
35 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:13:9-45
36 | android:theme
37 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:15:9-40
38 | activity#com.lidong.popupmenu.MainActivity
39 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:16:9-24:20
40 | android:label
41 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:18:13-45
42 | android:name
43 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:17:13-41
44 | intent-filter#android.intent.action.MAIN+android.intent.category.LAUNCHER
45 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:19:13-23:29
46 | action#android.intent.action.MAIN
47 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:20:17-69
48 | android:name
49 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:20:25-66
50 | category#android.intent.category.LAUNCHER
51 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:22:17-77
52 | android:name
53 | ADDED from E:\AndroidDemo\PopupMenu\app\src\main\AndroidManifest.xml:22:27-74
54 |
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/java/com/lidong/popupmenu/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.lidong.popupmenu;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.view.View;
6 | import android.view.View.OnClickListener;
7 | import android.widget.ImageView;
8 | import android.widget.Toast;
9 |
10 |
11 | public class MainActivity extends Activity {
12 |
13 | private ImageView iv_menu;
14 | private PopupMenu popupMenu;
15 |
16 | @Override
17 | protected void onCreate(Bundle savedInstanceState) {
18 | super.onCreate(savedInstanceState);
19 | setContentView(R.layout.activity_main);
20 | String[] abs = new String[]{"关于我们", "检查更新", "意见反馈"};
21 | popupMenu = new PopupMenu(this,abs);
22 |
23 | iv_menu = (ImageView) findViewById(R.id.iv_menu);
24 |
25 | iv_menu.setOnClickListener(new OnClickListener() {
26 |
27 | @Override
28 | public void onClick(View v) {
29 | popupMenu.showLocation(R.id.iv_menu);// 设置弹出菜单弹出的位置
30 | // 设置回调监听,获取点击事件
31 | popupMenu.setOnItemClickListener(new PopupMenu.OnItemClickListener() {
32 |
33 | @Override
34 | public void onClick(PopupMenu.MENUITEM item, String str) {
35 | Toast.makeText(getApplication(), str, Toast.LENGTH_SHORT).show();
36 |
37 | }
38 | });
39 | }
40 | });
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/java/com/lidong/popupmenu/PopupMenu.java:
--------------------------------------------------------------------------------
1 | package com.lidong.popupmenu;
2 |
3 | import android.app.Activity;
4 | import android.content.Context;
5 | import android.graphics.drawable.ColorDrawable;
6 | import android.view.LayoutInflater;
7 | import android.view.View;
8 | import android.view.View.OnClickListener;
9 | import android.widget.LinearLayout.LayoutParams;
10 | import android.widget.PopupWindow;
11 | import android.widget.TextView;
12 |
13 | public class PopupMenu extends PopupWindow implements OnClickListener {
14 |
15 | private Activity activity;
16 | private View popView;
17 |
18 | private View v_item1;
19 | private View v_item2;
20 | private View v_item3;
21 |
22 | private OnItemClickListener onItemClickListener;
23 |
24 | /**
25 | *
26 | * @author ywl5320 枚举,用于区分选择了哪个选项
27 | */
28 | public enum MENUITEM {
29 | ITEM1, ITEM2, ITEM3
30 | }
31 |
32 | private String[] tabs;
33 |
34 | public PopupMenu(Activity activity ,String[] tabs) {
35 | super(activity);
36 | this.activity = activity;
37 | this.tabs = tabs;
38 | LayoutInflater inflater = (LayoutInflater) activity
39 | .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
40 | popView = inflater.inflate(R.layout.popup_menu, null);// 加载菜单布局文件
41 | this.setContentView(popView);// 把布局文件添加到popupwindow中
42 | this.setWidth(dip2px(activity, 120));// 设置菜单的宽度(需要和菜单于右边距的距离搭配,可以自己调到合适的位置)
43 | this.setHeight(LayoutParams.WRAP_CONTENT);
44 | this.setFocusable(true);// 获取焦点
45 | this.setTouchable(true); // 设置PopupWindow可触摸
46 | this.setOutsideTouchable(true); // 设置非PopupWindow区域可触摸
47 | ColorDrawable dw = new ColorDrawable(0x00000000);
48 | this.setBackgroundDrawable(dw);
49 |
50 | // 获取选项卡
51 | v_item1 = popView.findViewById(R.id.ly_item1);
52 | v_item2 = popView.findViewById(R.id.ly_item2);
53 | v_item3 = popView.findViewById(R.id.ly_item3);
54 | // 添加监听
55 | v_item1.setOnClickListener(this);
56 | v_item2.setOnClickListener(this);
57 | v_item3.setOnClickListener(this);
58 |
59 | }
60 |
61 |
62 | /**
63 | * 设置显示的位置
64 | *
65 | * @param resourId
66 | * 这里的x,y值自己调整可以
67 | */
68 | public void showLocation(int resourId) {
69 | showAsDropDown(activity.findViewById(resourId), dip2px(activity, 0),
70 | dip2px(activity, -8));
71 | }
72 |
73 | @Override
74 | public void onClick(View v) {
75 | MENUITEM menuitem = null;
76 | String str = "";
77 | if (v == v_item1) {
78 | menuitem = MENUITEM.ITEM1;
79 | str = tabs[0];
80 | TextView tvAboutUs = (TextView)v_item1.findViewById(R.id.tv_about_us);
81 | tvAboutUs.setText(str);
82 | } else if (v == v_item2) {
83 | menuitem = MENUITEM.ITEM2;
84 | str = tabs[1];
85 | TextView tvAboutUs = (TextView)v_item2.findViewById(R.id.tv_check_update);
86 | tvAboutUs.setText(str);
87 | } else if (v == v_item3) {
88 | menuitem = MENUITEM.ITEM3;
89 | str = tabs[2];
90 | TextView tvAboutUs = (TextView)v_item3.findViewById(R.id.tv_feedback);
91 | tvAboutUs.setText(str);
92 | }
93 | if (onItemClickListener != null) {
94 | onItemClickListener.onClick(menuitem, str);
95 | }
96 | dismiss();
97 | }
98 |
99 | // dip转换为px
100 | public int dip2px(Context context, float dipValue) {
101 | final float scale = context.getResources().getDisplayMetrics().density;
102 | return (int) (dipValue * scale + 0.5f);
103 | }
104 |
105 | // 点击监听接口
106 | public interface OnItemClickListener {
107 | void onClick(MENUITEM item, String str);
108 | }
109 |
110 | // 设置监听
111 | public void setOnItemClickListener(OnItemClickListener onItemClickListener) {
112 | this.onItemClickListener = onItemClickListener;
113 | }
114 |
115 | }
116 |
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/drawable-xhdpi/icon_popupwin_menu_bg.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/src/main/res/drawable-xhdpi/icon_popupwin_menu_bg.9.png
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/drawable-xhdpi/img_popupmenu_bg.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/src/main/res/drawable-xhdpi/img_popupmenu_bg.9.png
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/drawable-xhdpi/img_xx.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/src/main/res/drawable-xhdpi/img_xx.png
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/drawable-xhdpi/menu_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/src/main/res/drawable-xhdpi/menu_icon.png
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/app/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/drawable/bg_default_button_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
9 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/layout/common_title_layout.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
15 |
16 |
28 |
29 |
37 |
38 |
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/layout/popup_menu.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
16 |
17 |
25 |
26 |
27 |
31 |
38 |
39 |
45 |
46 |
54 |
55 |
59 |
66 |
67 |
73 |
74 |
82 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/values-v11/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #11000000
4 | #ffffff
5 |
6 |
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | PopupMenu
5 | Hello world!
6 |
7 |
8 |
--------------------------------------------------------------------------------
/PopupMenu/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/PopupMenu/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | buildscript {
3 | repositories {
4 | jcenter()
5 | }
6 | dependencies {
7 | classpath 'com.android.tools.build:gradle:1.3.0'
8 | }
9 | }
10 |
11 | allprojects {
12 | repositories {
13 | jcenter()
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/PopupMenu/build/intermediates/dex-cache/cache.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
9 |
10 |
11 | -
16 |
17 |
18 | -
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/PopupMenu/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/PopupMenu/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/PopupMenu/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Apr 10 15:27:10 PDT 2013
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
7 |
--------------------------------------------------------------------------------
/PopupMenu/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/PopupMenu/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/PopupMenu/import-summary.txt:
--------------------------------------------------------------------------------
1 | ECLIPSE ANDROID PROJECT IMPORT SUMMARY
2 | ======================================
3 |
4 | Ignored Files:
5 | --------------
6 | The following files were *not* copied into the new Gradle project; you
7 | should evaluate whether these are still needed in your project and if
8 | so manually move them:
9 |
10 | * ic_launcher-web.png
11 | * proguard-project.txt
12 |
13 | Replaced Jars with Dependencies:
14 | --------------------------------
15 | The importer recognized the following .jar files as third party
16 | libraries and replaced them with Gradle dependencies instead. This has
17 | the advantage that more explicit version information is known, and the
18 | libraries can be updated automatically. However, it is possible that
19 | the .jar file in your project was of an older version than the
20 | dependency we picked, which could render the project not compileable.
21 | You can disable the jar replacement in the import wizard and try again:
22 |
23 | android-support-v4.jar => com.android.support:support-v4:21.0.3
24 |
25 | Moved Files:
26 | ------------
27 | Android Gradle projects use a different directory structure than ADT
28 | Eclipse projects. Here's how the projects were restructured:
29 |
30 | * AndroidManifest.xml => app\src\main\AndroidManifest.xml
31 | * assets\ => app\src\main\assets
32 | * res\ => app\src\main\res\
33 | * src\ => app\src\main\java\
34 |
35 | Next Steps:
36 | -----------
37 | You can now build the project. The Gradle project needs network
38 | connectivity to download dependencies.
39 |
40 | Bugs:
41 | -----
42 | If for some reason your project does not build, and you determine that
43 | it is due to a bug or limitation of the Eclipse to Gradle importer,
44 | please file a bug at http://b.android.com with category
45 | Component-Tools.
46 |
47 | (This import summary is for your information only, and can be deleted
48 | after import once you are satisfied with the results.)
49 |
--------------------------------------------------------------------------------
/PopupMenu/local.properties:
--------------------------------------------------------------------------------
1 | ## This file is automatically generated by Android Studio.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must *NOT* be checked into Version Control Systems,
5 | # as it contains information specific to your local configuration.
6 | #
7 | # Location of the SDK. This is only used by Gradle.
8 | # For customization when using a Version Control System, please read the
9 | # header note.
10 | #Fri Feb 26 10:44:43 CST 2016
11 | sdk.dir=E\:\\android\\android-sdk
12 |
--------------------------------------------------------------------------------
/PopupMenu/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PopupMenu
2 | Android中自定义popupwindow
3 |
4 | 使用方法:
5 | package com.lidong.popupmenu;
6 |
7 | import android.app.Activity;
8 | import android.os.Bundle;
9 | import android.view.View;
10 | import android.view.View.OnClickListener;
11 | import android.widget.ImageView;
12 | import android.widget.Toast;
13 |
14 |
15 | public class MainActivity extends Activity {
16 |
17 | private ImageView iv_menu;
18 | private PopupMenu popupMenu;
19 |
20 | @Override
21 | protected void onCreate(Bundle savedInstanceState) {
22 | super.onCreate(savedInstanceState);
23 | setContentView(R.layout.activity_main);
24 | String[] abs = new String[]{"关于我们", "检查更新", "意见反馈"};
25 | popupMenu = new PopupMenu(this,abs);
26 |
27 | iv_menu = (ImageView) findViewById(R.id.iv_menu);
28 |
29 | iv_menu.setOnClickListener(new OnClickListener() {
30 |
31 | @Override
32 | public void onClick(View v) {
33 | popupMenu.showLocation(R.id.iv_menu);// 设置弹出菜单弹出的位置
34 | // 设置回调监听,获取点击事件
35 | popupMenu.setOnItemClickListener(new PopupMenu.OnItemClickListener() {
36 |
37 | @Override
38 | public void onClick(PopupMenu.MENUITEM item, String str) {
39 | Toast.makeText(getApplication(), str, Toast.LENGTH_SHORT).show();
40 |
41 | }
42 | });
43 | }
44 | });
45 | }
46 | }
47 | 图片展示:
48 |
49 | 
50 |
--------------------------------------------------------------------------------
/screenshots/8C2B13845C23D5110AACDAF2F4A6FD50.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/screenshots/8C2B13845C23D5110AACDAF2F4A6FD50.jpg
--------------------------------------------------------------------------------
/screenshots/QQ图片20160414085112.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/screenshots/QQ图片20160414085112.jpg
--------------------------------------------------------------------------------
/screenshots/QQ图片20160414085121.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lidong1665/PopupMenu/8f4e7bc63939d46f0e572ae54f312e73e105a778/screenshots/QQ图片20160414085121.jpg
--------------------------------------------------------------------------------