我目前正在使用Eclipse(Indigo Service Release 1)进行Android开发.当我尝试"提交"我对特定项目所做的更改时,系统会提示我提交"bin"目录下的所有文件.
我不想提交它,一个更简单的解决方案是每次我提交时都取消它们.然而,这变得很烦人,我想知道是否有一个永久性的解决方案.
我试过了 :
首选项 - >团队 - >忽略资源 - >使用"bin"添加模式作为添加的模式.
但它并没有真正提供永久的解决方案.
有什么建议?
这是一个我只面临> Android 4.0设备的问题.
目前我有一个listView和一个自定义标题,我添加了ListActivity的onCreate().
我在应用程序中将editText用作自定义searchBar.
以下是一个代码片段,希望能够解释我的实现.
private ListView lst_Reports = null;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.showreportlist);
lst_Reports = (ListView) findViewById(R.id.VuoShowReportsActivity_Lst_Reports);
/*
* Initialize UI
*/
LinearLayout headerView = (LinearLayout) View.inflate(this, R.layout.report_list_header, null);
EditText reportSearchBar = (EditText) headerView.findViewById(R.id.reportSearchBar);
lst_Reports.addHeaderView(headerView);
reportSearchBar.addTextChangedListener(new TextWatcher() {
public void afterTextChanged(Editable s) {
}
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
public void onTextChanged(CharSequence s, int start, int before, int count) {
// do a search as and when …