parent
31d554b6e2
commit
eae89cb84b
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,93 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:background="@drawable/list_background">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title_bar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/title_bar_bg"
|
||||
android:visibility="gone"
|
||||
android:gravity="center_vertical"
|
||||
android:singleLine="true"
|
||||
android:textColor="#FFEAD1AE"
|
||||
android:textSize="@dimen/text_font_size_medium" />
|
||||
|
||||
<!-- 搜索框 - 新增功能 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_search_box"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="8dp"
|
||||
android:background="#20000000"
|
||||
android:visibility="gone">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_search"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:hint="搜索便签..."
|
||||
android:textColorHint="#88000000"
|
||||
android:textColor="#FF000000"
|
||||
android:background="@android:color/white"
|
||||
android:padding="10dp"
|
||||
android:maxLines="1"
|
||||
android:imeOptions="actionSearch"
|
||||
android:inputType="text" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_cancel_search"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:text="取消"
|
||||
android:textColor="#FF000000"
|
||||
android:background="@android:color/white"
|
||||
android:padding="10dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/notes_list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1"
|
||||
android:cacheColorHint="@null"
|
||||
android:listSelector="@android:color/transparent"
|
||||
android:divider="@null"
|
||||
android:fadingEdge="@null" />
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_new_note"
|
||||
android:background="@drawable/new_note"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:focusable="false"
|
||||
android:layout_gravity="bottom" />
|
||||
</FrameLayout>
|
||||
@ -1,85 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
便签列表布局 - 增强搜索功能版本
|
||||
添加了搜索框,支持实时搜索和过滤便签
|
||||
-->
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:background="@drawable/list_background">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- 标题栏 -->
|
||||
<TextView
|
||||
android:id="@+id/tv_title_bar"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/title_bar_bg"
|
||||
android:visibility="gone"
|
||||
android:gravity="center_vertical"
|
||||
android:singleLine="true"
|
||||
android:textColor="#FFEAD1AE"
|
||||
android:textSize="@dimen/text_font_size_medium" />
|
||||
|
||||
<!-- 搜索框 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_search_box"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="8dp"
|
||||
android:background="#20000000"
|
||||
android:visibility="gone">
|
||||
|
||||
<!-- 搜索输入框 -->
|
||||
<EditText
|
||||
android:id="@+id/et_search"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:hint="@string/hint_search"
|
||||
android:textColorHint="#88000000"
|
||||
android:textColor="#FF000000"
|
||||
android:background="@android:color/white"
|
||||
android:padding="10dp"
|
||||
android:maxLines="1"
|
||||
android:imeOptions="actionSearch"
|
||||
android:inputType="text" />
|
||||
|
||||
<!-- 取消搜索按钮 -->
|
||||
<Button
|
||||
android:id="@+id/btn_cancel_search"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:text="@string/menu_cancel_search"
|
||||
android:textColor="#FF000000"
|
||||
android:background="@android:color/white"
|
||||
android:padding="10dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 便签列表 -->
|
||||
<ListView
|
||||
android:id="@+id/notes_list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1"
|
||||
android:cacheColorHint="@null"
|
||||
android:listSelector="@android:color/transparent"
|
||||
android:divider="@null"
|
||||
android:fadingEdge="@null" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 新建便签按钮 -->
|
||||
<Button
|
||||
android:id="@+id/btn_new_note"
|
||||
android:background="@drawable/new_note"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:focusable="false"
|
||||
android:layout_gravity="bottom" />
|
||||
</FrameLayout>
|
||||
Loading…
Reference in new issue