在surfaceview相机预览中的神器

时间:2012-03-17 01:00:40

标签: java android layout camera

我有一个包含相机预览的表面视图,下面是一个列表视图,预览可以正常工作,但是如果列表很长,它有时会在预览中显示与背景颜色相同的颜色它没有它如果它比屏幕短,它没有它我无法解释它我链接到一些图片显示这个,因为我不能上传它们,还在framelayout中创建了surfaceview

布局代码

    <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/layout"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:baselineAligned="false"
    android:background="@color/main_background" >



    <FrameLayout
        android:id="@+id/preview"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"/>

    <Button
            android:layout_alignParentRight="true"
            android:layout_alignParentBottom="true"
            android:id="@+id/send_msg"
            android:layout_width="70dp"
            android:layout_height="wrap_content"
            android:text="Send" />

        <ListView 
            android:layout_below="@id/preview"
            android:layout_above="@id/send_msg"
            android:id="@+id/message_list"
            android:layout_height="wrap_content"
            android:drawSelectorOnTop="false" 
            android:layout_width="fill_parent"
            android:background="@android:color/transparent"
            android:cacheColorHint="@android:color/transparent" />

        <MultiAutoCompleteTextView
            android:id="@+id/new_msg"
            android:layout_alignParentBottom="true"
            android:layout_toLeftOf="@id/send_msg"
            android:layout_alignTop="@id/send_msg"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="MultiAutoCompleteTextView" />



</RelativeLayout>

IMAGES

Image 1 image 2

我无法弄清楚这一点,并非常感谢帮助。

0 个答案:

没有答案
相关问题