Skip to content

Commit

Permalink
version 1.02 test
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanWenHai committed Nov 2, 2016
1 parent 5e35759 commit 04d59e9
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ class FSViewHolder extends RecyclerView.ViewHolder{
CheckBox checkBox;
FSViewHolder(View view){
super(view);
text = (TextView) view.findViewById(R.id.item_text);
checkBox = (CheckBox) view.findViewById(R.id.item_check_box);
text = (TextView) view.findViewById(R.id.file_searcher_item_text);
checkBox = (CheckBox) view.findViewById(R.id.file_searcher_item_check_box);
text.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public class FileSearcherActivity extends AppCompatActivity {
protected void onCreate( Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.file_searcher_main);
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.main_recycler_view);
TextView text = (TextView) findViewById(R.id.main_text);
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.file_searcher_main_recycler_view);
TextView text = (TextView) findViewById(R.id.file_searcher_main_text);
mAdapter = new FSAdapter(this,text);
recyclerView.setAdapter(mAdapter);
recyclerView.setLayoutManager(new LinearLayoutManager(this));
Expand Down
4 changes: 2 additions & 2 deletions filesearcher/src/main/res/layout/file_searcher_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/item_text"
android:id="@+id/file_searcher_item_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
Expand All @@ -18,7 +18,7 @@
android:textColor="@color/black"
tools:text="abcde.text"/>
<CheckBox
android:id="@+id/item_check_box"
android:id="@+id/file_searcher_item_check_box"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"/>
Expand Down
9 changes: 4 additions & 5 deletions filesearcher/src/main/res/layout/file_searcher_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,22 @@
<android.support.v7.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:id="@+id/main_toolbar"
android:id="@+id/file_searcher_main_toolbar"
app:contentInsetStart="0dp"
android:background="?attr/colorPrimary">
<TextView
android:id="@+id/main_text"
android:id="@+id/file_searcher_main_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"

android:maxLines="1"
android:textColor="#ffffff"
android:textColor="?attr/actionMenuTextColor"
android:textSize="18sp"
tools:text="正在搜索目录: abcde"/>
</android.support.v7.widget.Toolbar>

<android.support.v7.widget.RecyclerView
android:id="@+id/main_recycler_view"
android:id="@+id/file_searcher_main_recycler_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="vertical"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
<color name="black">#333333</color>
<color name="white">#ffffff</color>
</resources>
1 change: 1 addition & 0 deletions filesearcher/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="actionMenuTextColor">@color/white</item>
</style>

</resources>

0 comments on commit 04d59e9

Please sign in to comment.