File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed
Voice Control For Plex/src/main Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change
1
+ package com .atomjack .vcfp ;
2
+
3
+ import android .content .Context ;
4
+ import android .util .AttributeSet ;
5
+ import android .view .ViewGroup ;
6
+ import android .widget .ListView ;
7
+
8
+ public class NonScrollListView extends ListView {
9
+ public NonScrollListView (Context context ) {
10
+ super (context );
11
+ }
12
+ public NonScrollListView (Context context , AttributeSet attrs ) {
13
+ super (context , attrs );
14
+ }
15
+ public NonScrollListView (Context context , AttributeSet attrs , int defStyle ) {
16
+ super (context , attrs , defStyle );
17
+ }
18
+ @ Override
19
+ public void onMeasure (int widthMeasureSpec , int heightMeasureSpec ) {
20
+ int heightMeasureSpec_custom = MeasureSpec .makeMeasureSpec (
21
+ Integer .MAX_VALUE >> 2 , MeasureSpec .AT_MOST );
22
+ super .onMeasure (widthMeasureSpec , heightMeasureSpec_custom );
23
+ ViewGroup .LayoutParams params = getLayoutParams ();
24
+ params .height = getMeasuredHeight ();
25
+ }
26
+ }
Original file line number Diff line number Diff line change 15
15
android : orientation =" vertical"
16
16
android : gravity =" center" >
17
17
18
- <ListView
18
+ <com .atomjack.vcfp.NonScrollListView
19
19
android : id =" @+id/settingsList"
20
20
android : layout_height =" fill_parent"
21
21
android : layout_width =" match_parent" >
22
- </ListView >
22
+ </com .atomjack.vcfp.NonScrollListView >
23
23
24
24
<CheckBox
25
25
android : id =" @+id/resumeCheckbox"
You can’t perform that action at this time.
0 commit comments