Android Force GridView项目填充完整的gridview高度

时间:2017-04-07 12:20:41

标签: android gridview height android-gridview

首先,我想说它不重复。我的问题是我需要很多项目,我想让它们更小以填充gridview高度。这就是为什么我不能使用_ZN7MyClass19non_throwing_methodEv: .LFB1253: .loc 2 13 0 .cfi_startproc .cfi_personality 0x3,__gxx_personality_v0 .cfi_lsda 0x3,.LLSDA1253 pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 subq $16, %rsp movq %rdi, -8(%rbp) movq __gcov0._ZN7MyClass19non_throwing_methodEv(%rip), %rax addq $1, %rax movq %rax, __gcov0._ZN7MyClass19non_throwing_methodEv(%rip) .loc 2 17 0 movq -8(%rbp), %rax movq %rax, %rdi .LEHB0: call _ZN7MyClass15throwing_methodEv .LEHE0: movq __gcov0._ZN7MyClass19non_throwing_methodEv+8(%rip), %rax addq $1, %rax movq %rax, __gcov0._ZN7MyClass19non_throwing_methodEv+8(%rip) .loc 2 22 0 jmp .L3 .L8: movq %rax, %rdx movq __gcov0._ZN7MyClass19non_throwing_methodEv+16(%rip), %rax addq $1, %rax movq %rax, __gcov0._ZN7MyClass19non_throwing_methodEv+16(%rip) .loc 2 19 0 movq %rdx, %rax movq %rax, %rdi call __cxa_begin_catch movq __gcov0._ZN7MyClass19non_throwing_methodEv+24(%rip), %rax addq $1, %rax movq %rax, __gcov0._ZN7MyClass19non_throwing_methodEv+24(%rip) .LEHB1: call __cxa_end_catch .LEHE1: movq __gcov0._ZN7MyClass19non_throwing_methodEv+32(%rip), %rax addq $1, %rax movq %rax, __gcov0._ZN7MyClass19non_throwing_methodEv+32(%rip) .loc 2 22 0 jmp .L3 .L9: cmpq $-1, %rdx je .L7 movq __gcov0._ZN7MyClass19non_throwing_methodEv+48(%rip), %rdx addq $1, %rdx movq %rdx, __gcov0._ZN7MyClass19non_throwing_methodEv+48(%rip) movq %rax, %rdi .LEHB2: call _Unwind_Resume .L7: movq __gcov0._ZN7MyClass19non_throwing_methodEv+40(%rip), %rdx addq $1, %rdx movq %rdx, __gcov0._ZN7MyClass19non_throwing_methodEv+40(%rip) .loc 2 13 0 movq %rax, %rdi call __cxa_call_unexpected .LEHE2: .L3: .loc 2 22 0 leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE1253: .globl __gxx_personality_v0 .section .gcc_except_table._ZN7MyClass19non_throwing_methodEv,"aG",@progbits,_ZN7MyClass19non_throwing_methodEv,comdat .align 4 .LLSDA1253: .byte 0xff .byte 0x3 .uleb128 .LLSDATT1253-.LLSDATTD1253 .LLSDATTD1253: .byte 0x1 .uleb128 .LLSDACSE1253-.LLSDACSB1253 .LLSDACSB1253: .uleb128 .LEHB0-.LFB1253 .uleb128 .LEHE0-.LEHB0 .uleb128 .L8-.LFB1253 .uleb128 0x1 .uleb128 .LEHB1-.LFB1253 .uleb128 .LEHE1-.LEHB1 .uleb128 .L9-.LFB1253 .uleb128 0x3 .uleb128 .LEHB2-.LFB1253 .uleb128 .LEHE2-.LEHB2 .uleb128 0 .uleb128 0 .LLSDACSE1253: .byte 0x1 .byte 0 .byte 0x7f .byte 0 .align 4 .long 0 .LLSDATT1253: .byte 0 .section .text._ZN7MyClass19non_throwing_methodEv,"axG",@progbits,_ZN7MyClass19non_throwing_methodEv,comdat .size _ZN7MyClass19non_throwing_methodEv, .-_ZN7MyClass19non_throwing_methodEv .section .text._ZN7MyClass15throwing_methodEv,"axG",@progbits,_ZN7MyClass15throwing_methodEv,comdat .align 2 .weak _ZN7MyClass15throwing_methodEv .type _ZN7MyClass15throwing_methodEv, @function 。我需要类似setMinimumHeight的内容,但Android SDK预测不会出现这种情况。另外,我没有任何行间距,所以我不能让它变小。

图片有助于理解:

enter image description here

我想让itemw更小的高度,我不希望任何被显示边框“剪切”。

0 个答案:

没有答案