forked from D-clock/AndroidSystemUiTraining
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
13 changed files
with
176 additions
and
8 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# 谈谈我眼中的 NavigationDrawer | ||
# 最详细的 NavigationDrawer 开发实践总结 | ||
|
||
|
||
|
||
|
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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/clock/systemui/ui/activity/navigation/CloudMusicActivity.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,21 @@ | ||
package com.clock.systemui.ui.activity.navigation; | ||
|
||
import android.os.Bundle; | ||
|
||
import com.clock.systemui.R; | ||
import com.clock.systemui.ui.activity.base.BaseActivity; | ||
|
||
/** | ||
* 仿网易云音乐 | ||
* | ||
* @author Clock | ||
* @since 2016-02-27 | ||
*/ | ||
public class CloudMusicActivity extends BaseActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_cloud_music); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/drawer" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@color/color_cd3e3a"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:fitsSystemWindows="true" | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="65dp" | ||
android:background="@color/color_cd3e3a" | ||
android:gravity="center" | ||
android:text="网易云音乐" | ||
android:textColor="@android:color/white" | ||
android:textSize="18sp" /> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@android:color/white" | ||
android:orientation="vertical"> | ||
|
||
</LinearLayout> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:id="@+id/navigation_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_gravity="start" | ||
android:background="@android:color/white" | ||
android:fitsSystemWindows="true" | ||
android:orientation="vertical" | ||
app:insetForeground="@android:color/transparent"> | ||
|
||
<ImageView | ||
android:layout_width="match_parent" | ||
android:layout_height="180dp" | ||
android:scaleType="centerCrop" | ||
android:src="@mipmap/topinfo_ban_bg" /> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:gravity="center_vertical" | ||
android:orientation="horizontal"> | ||
|
||
<ImageView | ||
android:layout_width="40dp" | ||
android:layout_height="40dp" | ||
android:layout_marginLeft="10dp" | ||
android:layout_marginRight="10dp" | ||
android:src="@mipmap/topmenu_icn_msg" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="我的消息" | ||
android:textColor="@android:color/black" | ||
android:textSize="15sp" /> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:gravity="center_vertical" | ||
android:orientation="horizontal"> | ||
|
||
<ImageView | ||
android:layout_width="40dp" | ||
android:layout_height="40dp" | ||
android:layout_marginLeft="10dp" | ||
android:layout_marginRight="10dp" | ||
android:src="@mipmap/topmenu_icn_store" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="积分商城" | ||
android:textColor="@android:color/black" | ||
android:textSize="15sp" /> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:gravity="center_vertical" | ||
android:orientation="horizontal"> | ||
|
||
<ImageView | ||
android:layout_width="40dp" | ||
android:layout_height="40dp" | ||
android:layout_marginLeft="10dp" | ||
android:layout_marginRight="10dp" | ||
android:src="@mipmap/topmenu_icn_member" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="付费音乐包" | ||
android:textColor="@android:color/black" | ||
android:textSize="15sp" /> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:gravity="center_vertical" | ||
android:orientation="horizontal"> | ||
|
||
<ImageView | ||
android:layout_width="40dp" | ||
android:layout_height="40dp" | ||
android:layout_marginLeft="10dp" | ||
android:layout_marginRight="10dp" | ||
android:src="@mipmap/topmenu_icn_free" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="在线听歌免流量" | ||
android:textColor="@android:color/black" | ||
android:textSize="15sp" /> | ||
</LinearLayout> | ||
</LinearLayout> | ||
</android.support.v4.widget.DrawerLayout> |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.