File tree Expand file tree Collapse file tree 3 files changed +1
-11
lines changed
java/com/pengxh/kt/lite/widget Expand file tree Collapse file tree 3 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ import android.widget.TextView
12
12
import com.pengxh.kt.lite.R
13
13
import com.pengxh.kt.lite.extensions.getScreenWidth
14
14
15
- /* *
16
- * TODO 封装不尽人意,先就这样吧
17
- * */
18
15
class EasyPopupWindow constructor(context : Context ) : PopupWindow() {
19
16
20
17
init {
@@ -33,6 +30,7 @@ class EasyPopupWindow constructor(context: Context) : PopupWindow() {
33
30
val listView = contentView.findViewById<ListView >(R .id.listView)
34
31
listView.adapter = object : BaseAdapter () {
35
32
private val inflater: LayoutInflater = LayoutInflater .from(contentView.context)
33
+
36
34
override fun getCount (): Int {
37
35
return menuItems.size
38
36
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<set xmlns : android =" http://schemas.android.com/apk/res/android" >
3
3
<scale
4
- android : duration =" 300"
5
4
android : fromXScale =" 1.0"
6
5
android : fromYScale =" 1.0"
7
- android : interpolator =" @android:anim/accelerate_decelerate_interpolator"
8
- android : pivotX =" 50%"
9
- android : pivotY =" 0%"
10
6
android : toXScale =" 0.0"
11
7
android : toYScale =" 0.0" />
12
8
</set >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<set xmlns : android =" http://schemas.android.com/apk/res/android" >
3
3
<scale
4
- android : duration =" 300"
5
4
android : fromXScale =" 0.0"
6
5
android : fromYScale =" 0.0"
7
- android : interpolator =" @android:anim/accelerate_decelerate_interpolator"
8
- android : pivotX =" 50%"
9
- android : pivotY =" 0%"
10
6
android : toXScale =" 1.0"
11
7
android : toYScale =" 1.0" />
12
8
</set >
You can’t perform that action at this time.
0 commit comments