-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1db20b8
commit 2de1313
Showing
31 changed files
with
500 additions
and
107 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../com/toly1994/ds4android/AVLActivity.java → ...1994/ds4android/activity/AVLActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ly1994/ds4android/ArrayChartActivity.java → ...4android/activity/ArrayChartActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...om/toly1994/ds4android/QueueActivity.java → ...94/ds4android/activity/QueueActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...om/toly1994/ds4android/StackActivity.java → ...94/ds4android/activity/StackActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
app/src/main/java/com/toly1994/ds4android/activity/home/HomeActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package com.toly1994.ds4android.activity.home; | ||
|
||
import android.os.Bundle; | ||
import android.support.annotation.Nullable; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.support.v7.widget.RecyclerView; | ||
import android.support.v7.widget.StaggeredGridLayoutManager; | ||
|
||
import com.toly1994.ds4android.R; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* 作者:张风捷特烈<br/> | ||
* 时间:2018/11/25 0025:10:50<br/> | ||
* 邮箱:[email protected]<br/> | ||
* 说明: | ||
*/ | ||
public class HomeActivity extends AppCompatActivity { | ||
|
||
private List<Integer> mData = new ArrayList<>(); | ||
private RecyclerView mRecyclerView; | ||
|
||
|
||
@Override | ||
protected void onCreate(@Nullable Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
|
||
mData.add(R.mipmap.array_list); | ||
mData.add(R.mipmap.singel_linked); | ||
mData.add(R.mipmap.linked_list); | ||
mData.add(R.mipmap.stack); | ||
mData.add(R.mipmap.queue); | ||
mData.add(R.mipmap.bst); | ||
|
||
setContentView(R.layout.activity_home); | ||
|
||
mRecyclerView = findViewById(R.id.id_rv); | ||
mRecyclerView.setLayoutManager(new StaggeredGridLayoutManager(3, StaggeredGridLayoutManager.VERTICAL)); | ||
mRecyclerView.setAdapter(new HomeRVAdapter(this, mData)); | ||
} | ||
} |
Oops, something went wrong.