<?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. Java基础知识系列——日期

    日期类型也是在编程中经常用到的一种数据类型. Java中的日期类型为Date. 另外需要记住三个类: java.text.SimpleDateFormat; java.util.Calendar; j ...

  2. vue路由的简单实例

    vue2.0 和 vue1.0 路由的语法还是有点稍微的差别,下面介绍一下vue-router 2的简单实例: <!DOCTYPE html> <html lang="en ...

  3. Win10下Android studio配置

    Win10下Android studio配置 一.安装Android Studio的准备工作 1.下载好JDK,去官网上找一个下载下来 2.安装JDK.并配置环境变量.安装过程:本人将使用的是jdk- ...

  4. SegmentControl的多选项实现(标题栏)

    NSArray *titleArr = @[STR(@"全部"), STR(@"未使用"), STR(@"已赠送"), STR(@" ...

  5. QT5.2.1大BUG

    本来以为5.2.1是release版本 谁知道编译某个程序,执行老是crash 换5.3.2就ok了. 坑啊

  6. Chrome 插件集推荐

    在前端这个行业里面,浏览器担任着及其重要的角色.今天我们可以选择的浏览器有很多,Chrome,Firefox,IE,Safari… 为了能获得更佳的开发体验,大家更多地选择 Chrome.今天介绍下我 ...

  7. Linux(Ubuntu 14.0)

    开始了Mono的学习.学习了Mono for Android之后,编译一些小的APK,总发现这些APK文件很大,额,真心不知道为什么,那么,就让我们从头开始学期了,Android是基于Linux的,那 ...

  8. 从0到1搭建移动App功能自动化测试平台(2):操作iOS应用的控件

    转自:http://debugtalk.com/post/build-app-automated-test-platform-from-0-to-1-Appium-interrogate-iOS-UI ...

  9. XAMARIN +VS2015 ANDROID 开发判断gps 是否打开。

    在获取位置的时候首先要判断gps是否打开,如果没有打开就要提示打开,当然最友好的就是直接调转到打开界面. LocationManager alm = (LocationManager)this.Get ...

  10. 原因是出现以下错误: 80040154 没有注册类 (异常来自 HRESULT:0x80040154 (REGDB_E_CLASSNOTREG))

    场景: 客户端初始化正常,到IIS服务就报80040154. System.Web.Services.Protocols.SoapException: System.Web.Services.Prot ...