<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   
android:orientation="vertical"
   
android:layout_width="match_parent"
   
android:layout_height="match_parent"
   
android:background="@color/content_blackground"     >
    <RelativeLayout
       
android:id="@+id/search_bar_layout"
       
android:layout_width="match_parent"
       
android:layout_height="48dp"
        
android:layout_margin="10dp"
          
>
        <TextView
            
android:id="@+id/btn_search_around"
           
android:layout_width="wrap_content"
           
android:layout_height="match_parent"
           
android:layout_alignParentEnd="true"
           
android:layout_alignParentRight="true"
           
android:layout_centerVertical="true"
           
android:background="@drawable/map_search_btn"
            
android:gravity="center"
           
android:padding="12dp"
           
android:text="搜索"
            
android:textColor="@color/white"
           
android:textSize="12dp"/>
        <ImageView
           
android:id="@+id/img_back"
           
android:layout_width="20dp"
           
android:layout_height="20dp"
           
android:src="@drawable/back_gray"
           
android:layout_alignParentLeft="true"
           
android:layout_centerVertical="true"
           
android:layout_marginRight="10dp"
            
/>
        <LinearLayout
           
android:layout_width="match_parent"
           
android:layout_height="match_parent"
           
android:layout_centerVertical="true"
           
android:orientation="horizontal"
           
android:layout_toRightOf="@id/img_back"
           
android:layout_toLeftOf="@+id/btn_search_around"
           
android:background="@drawable/search_input_half"
            
android:gravity="center_vertical" >
            <AutoCompleteTextView
               
android:id="@+id/input_edittext"
               
android:layout_width="0dp"
               
android:layout_weight="2"
               
android:layout_height="match_parent"
               
android:drawableLeft="@drawable/search_input"
               
android:background="@color/transparent"
               
android:hint="请输入搜索关键字"
               
android:textColorHint="@color/check_gray"
               
android:singleLine="true"
               
android:textColor="@color/check_gray"
               
android:textSize="14sp" />
            <ImageView
               
android:id="@+id/img_clear"
               
android:layout_width="18dp"
               
android:layout_height="18dp"
               
android:src="@drawable/common_input_box_clear"
               
android:layout_marginRight="5dp"/>
        </LinearLayout>
    </RelativeLayout>     <LinearLayout
       
android:layout_width="match_parent"
       
android:layout_height="wrap_content"
       
android:orientation="vertical">
        <ListView
           
android:id="@+id/lv_record"
           
android:layout_marginTop="20dp"
           
android:layout_width="match_parent"
           
android:layout_height="0dp"
           
android:layout_weight="1"
           
>
        </ListView>
        <LinearLayout
           
android:id="@+id/ll_clear"
           
android:layout_width="match_parent"
            
android:orientation="vertical"
           
android:layout_height="wrap_content"
           
android:layout_weight="0"
           
>
            <View
               
android:layout_width="match_parent"
               
android:layout_height="1px"
               
android:background="@color/main_view_split_line_color"
               
/>
            <TextView
               
android:id="@+id/tv_clear"
               
android:layout_width="match_parent"
               
android:layout_height="wrap_content"
               
android:text="清空历史记录"
               
android:textSize="@dimen/word_small"
               
android:textColor="@color/check_gray"
               
android:padding="10dp"
               
android:gravity="center"
               
android:layout_marginBottom="10dp"
               
android:background="@color/white"
               
/>
        </LinearLayout>     </LinearLayout> </LinearLayout>

listView后面加控件,防止被挤的更多相关文章

  1. 扩展ToolBarManager、ListView和Grid控件以实现气球式的ToolTip

    原文:扩展ToolBarManager.ListView和Grid控件以实现气球式的ToolTip infragistics是全球领先的UI工具和用户体验的专家,Infragistics开发了一系列的 ...

  2. 让ListView中的控件失去焦点:android:descendantFocusability="blocksDescendants"

    值得注意的是,ListView中的控件不能设置clickable="true",否则会无视父控件的blockDescendants. 可参考: https://segmentfau ...

  3. Qt qml listview 列表视图控件(下拉刷新、上拉分页、滚动轴)

    Qt qml listview下拉刷新和上拉分页主要根据contentY来判断.但要加上顶部下拉指示器.滚动条,并封装成可简单调用的组件,着实花了我不少精力:) [先看效果]    [功能] 下拉刷新 ...

  4. winfrom如何在listview中添加控件

    private Button btn = new Button(); private void Form1_Load(object sender, EventArgs e) { ListViewIte ...

  5. AX 用代码创建FORM动态加控件,重载动态添加的控件的方法。

    eg. 范例:class\RFIDReadWriteForm/Build方法. formRun.controlMethodOverload(true); formRun.controlMethodOv ...

  6. JTable指定单元格加控件

    原文链接:http://blog.csdn.net/transit136/article/details/2133638 JTable可以给表格的某一列加入控件,下面方法可以实现   try{   T ...

  7. listview点击控件显示EditText,键盘弹出消失的解决方法:

    1.软键盘弹出后消失解决方法 AndoridManifet 在activity中添加: android:windowSoftInputMode="adjustPan" 2.使用方式 ...

  8. android 关于listview scrollview 底部 控件无法显示的两个解决方案

    方案一 用LinearLayout实现,代码如下: <!-- 中奖纪录 by mhd --> <LinearLayout xmlns:android="http://sch ...

  9. wpf ListBox或ListView等数据控件 绑定数据,最简单的方式

    在网上很难找最简单的案例,都是一大片,看着都头疼: 试试举一反三,如果把结果赋给DataContext这个属性,那就前台需要绑定ItemsSource="{Binding}",请注 ...

随机推荐

  1. c#窗体虚线图形验证码设计

    /************************窗体验证码背景图形设计及核心代码**********/ using System;using System.Collections.Generic;u ...

  2. java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.

    在ViewPager中,用Fragment显示页面时,报错: java.lang.IllegalStateException: The specified child already has a pa ...

  3. VScode常用几个前端插件live HTML previewer和debugger for chrome的配置

    之前一直都是用sublime Text和chrome配合来写前端的页面,自从知道了有liveReload这个神奇的插件之后感觉爽翻了啊.好吧跑远了........ 话说最近微软搞了个VScode,听说 ...

  4. iOS 9/10强制使用https访问网络,使用了第三方SDK的应用需要配置的信息

    2017年01月01日起苹果将全面禁止使用http来访问网络. 网上扒了一些资源,解决方法还是有的,但是都不确定是否可以通过审核,毕竟实践才是检验真理的唯一标准. 后续如果上线成功,再来分享. 如果应 ...

  5. 异步I/O操作

    今天在看boost库的时候注意到异步I/O操作时,缓冲区有效性问题. 如何实现异步操作:以异步读操作为例async_read(buffer, handler): void handler() {} v ...

  6. <停车位>version1.0

    <停车卫> 产品需求说明书 文档版本号: Version 1.0 文档编号: xxxx 文档密级: 归属部门/项目: 产品名: 停车卫 子系统名: 编写人: kina 编写日期: 2015 ...

  7. 对OnOutOfMemoryError的运维处理

    以部署在linux系统/opt/Server目录下的Server.jar为例 1.在run.sh启动脚本中添加jvm参数: -XX:OnOutOfMemoryError=/opt/Server/res ...

  8. c# htmtToPDF

    http://www.cnblogs.com/shanyou/archive/2012/09/07/2676026.html

  9. 解决PKIX(PKIX path building failed) 问题 unable to find valid certification path to requested target

    最近在写java的一个服务,需要给远程服务器发送post请求,认证方式为Basic Authentication,在请求过程中出现了 PKIX path building failed: sun.se ...

  10. C# 小工具开发--DeBugHttp

    随着RESTful的流行,前后端分离,我们后端开发人员在开发过程中多http相关方法进行测试.这就是这个小工具的初衷. 代码地址:https://github.com/gdoujkzz/DebugHt ...