zoukankan      html  css  js  c++  java
  • SearchView 分解设置属性

    int searchPlateId = getActivity().getResources().getIdentifier("android:id/search_plate", null, null);
    View searchPlate = v.findViewById(searchPlateId);
    searchPlate.setBackgroundColor(Color.WHITE);
    // SearchView 里的 TextView
    int searchSrcTextId = getResources().getIdentifier("android:id/search_src_text", null, null);
    TextView searchEditText = (TextView) searchPlate.findViewById(searchSrcTextId);
    searchEditText.setTextSize(13);
    searchEditText.setGravity(Gravity.BOTTOM|Gravity.LEFT);

    mSearchButton = findViewById(R.id.search_button); mSearchEditFrame = findViewById(R.id.search_edit_frame); mSearchPlate = findViewById(R.id.search_plate); mSubmitArea = findViewById(R.id.submit_area); mSubmitButton = findViewById(R.id.search_go_btn); mCloseButton = (ImageView) findViewById(R.id.search_close_btn); mVoiceButton = findViewById(R.id.search_voice_btn); mSearchHintIcon = (ImageView) findViewById(R.id.search_mag_icon);

    http://nlopez.io/how-to-style-the-actionbar-searchview-programmatically/

    http://www.techrepublic.com/blog/software-engineer/pro-tip-customize-the-android-search-view-widget/

  • 相关阅读:
    C++格式化输入输出
    算法的时间复杂度和空间复杂度
    C++编程中const和#define的区别
    C#中结构体和类的区别
    SQL之删除触发器
    Windows添加和取消右键管理员权限
    SQL之trigger(触发器)
    SQL VIEW(视图)
    二分查找的实现
    C++中this指针
  • 原文地址:https://www.cnblogs.com/Ringer/p/4139027.html
Copyright © 2011-2022 走看看