GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 界面优化 · java02014/Coder@e10a2bb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • app/src/main
    • AndroidManifest.xml
    • java/com/coder/guoy/recyclerview
      • HomeActivity.java
      • base
        • MvvmBaseActivity.java
      • ui
        • FreeVideoActivity.java
    • res
      • drawable-xxhdpi
        • ic_nav_about.png
        • ic_nav_deedback.png
        • ic_nav_homepage.png
        • ic_nav_login.png
        • ic_nav_scan.png
      • drawable
        • vector_music_greed_24dp.xml
        • vector_video_red_24dp.xml
      • layout
        • activity_free_video.xml
        • navigation_header.xml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎app/src/main/AndroidManifest.xml‎

Copy file name to clipboardExpand all lines: app/src/main/AndroidManifest.xml
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@
138138
<activity
139139
android:name=".ui.PlayAnimateVectorDrawables"
140140
android:screenOrientation="portrait"/>
141+
<activity
142+
android:name=".ui.FreeVideoActivity"
143+
android:screenOrientation="portrait"/>
141144
</application>
142145

143146
</manifest>
Collapse file

‎app/src/main/java/com/coder/guoy/recyclerview/HomeActivity.java‎

Copy file name to clipboardExpand all lines: app/src/main/java/com/coder/guoy/recyclerview/HomeActivity.java
+9-7Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.coder.guoy.recyclerview;
22

3+
import android.content.Intent;
34
import android.databinding.DataBindingUtil;
45
import android.os.Bundle;
56
import android.support.v4.view.GravityCompat;
@@ -10,6 +11,7 @@
1011
import com.coder.guoy.recyclerview.databinding.ActivityHomeBinding;
1112
import com.coder.guoy.recyclerview.databinding.NavigationHeaderBinding;
1213
import com.coder.guoy.recyclerview.linstener.PerfectClickListener;
14+
import com.coder.guoy.recyclerview.ui.FreeVideoActivity;
1315
import com.coder.guoy.recyclerview.utils.CommonUtils;
1416
import com.coder.guoy.recyclerview.utils.ToastUtil;
1517
import com.coder.guoy.recyclerview.view.statusbar.StatusBarUtil;
@@ -57,7 +59,7 @@ private void initRecyclerView() {
5759
private void initDrawerlayout() {
5860
View headerView = bindingView.navigationview.getHeaderView(0);
5961
NavigationHeaderBinding bind = DataBindingUtil.bind(headerView);
60-
bind.llNav1.setOnClickListener(listener);
62+
bind.llNavVideo.setOnClickListener(listener);
6163
bind.llNav2.setOnClickListener(listener);
6264
bind.llNav3.setOnClickListener(listener);
6365
bind.llNav4.setOnClickListener(listener);
@@ -81,20 +83,20 @@ protected void onNoDoubleClick(final View v) {
8183
@Override
8284
public void run() {
8385
switch (v.getId()) {
84-
case R.id.ll_nav_1:
85-
ToastUtil.show("1");
86+
case R.id.ll_nav_video:
87+
startActivity(new Intent(HomeActivity.this, FreeVideoActivity.class));
8688
break;
8789
case R.id.ll_nav_2:
88-
ToastUtil.show("2");
90+
ToastUtil.show("敬请期待");
8991
break;
9092
case R.id.ll_nav_3:
91-
ToastUtil.show("3");
93+
ToastUtil.show("敬请期待");
9294
break;
9395
case R.id.ll_nav_4:
94-
ToastUtil.show("4");
96+
ToastUtil.show("敬请期待");
9597
break;
9698
case R.id.ll_nav_5:
97-
ToastUtil.show("5");
99+
ToastUtil.show("敬请期待");
98100
break;
99101
}
100102
}
Collapse file

‎app/src/main/java/com/coder/guoy/recyclerview/base/MvvmBaseActivity.java‎

Copy file name to clipboardExpand all lines: app/src/main/java/com/coder/guoy/recyclerview/base/MvvmBaseActivity.java
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
import com.coder.guoy.recyclerview.R;
1818
import com.coder.guoy.recyclerview.databinding.ActivityBaseMvvmBinding;
1919
import com.coder.guoy.recyclerview.linstener.PerfectClickListener;
20-
import com.coder.guoy.recyclerview.utils.CommonUtils;
21-
import com.coder.guoy.recyclerview.utils.StatusBarUtils;
2220

2321
/**
2422
* @Version:1.0
@@ -53,8 +51,6 @@ public void setContentView(@LayoutRes int layoutResID) {
5351
mContainer.addView(bindingView.getRoot());
5452
getWindow().setContentView(mBaseBinding.getRoot());
5553

56-
// 设置状态栏颜色
57-
StatusBarUtils.setColor(this, CommonUtils.getColor(R.color.colorTheme), 0);
5854
llProgressBar = getView(R.id.ll_progress_bar);
5955
refresh = getView(R.id.ll_error_refresh);
6056
ImageView img = getView(R.id.img_progress);
Collapse file

‎app/src/main/java/com/coder/guoy/recyclerview/ui/FreeVideoActivity.java‎

Copy file name to clipboard
+34Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package com.coder.guoy.recyclerview.ui;
2+
3+
import android.os.Bundle;
4+
import android.view.View;
5+
6+
import com.coder.guoy.recyclerview.R;
7+
import com.coder.guoy.recyclerview.base.MvvmBaseActivity;
8+
import com.coder.guoy.recyclerview.databinding.ActivityFreeVideoBinding;
9+
10+
public class FreeVideoActivity extends MvvmBaseActivity<ActivityFreeVideoBinding> {
11+
12+
private String url = "http://2449.vod.myqcloud.com/2449_22ca37a6ea9011e5acaaf51d105342e3.f20.mp4";
13+
14+
@Override
15+
protected void onCreate(Bundle savedInstanceState) {
16+
super.onCreate(savedInstanceState);
17+
// //设置无标题
18+
// requestWindowFeature(Window.FEATURE_NO_TITLE);
19+
// //设置全屏
20+
// getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
21+
// WindowManager.LayoutParams.FLAG_FULLSCREEN);
22+
setContentView(R.layout.activity_free_video);
23+
showContentView();
24+
setToolbarVisible(View.GONE);
25+
bindingView.videoview.setVideoPath(url);
26+
// bindingView.videoview.setMediaController(new MediaController(this));
27+
}
28+
29+
@Override
30+
public void onWindowFocusChanged(boolean hasFocus) {
31+
super.onWindowFocusChanged(hasFocus);
32+
bindingView.videoview.start();
33+
}
34+
}
Collapse file

‎app/src/main/res/drawable-xxhdpi/ic_nav_about.png‎

Copy file name to clipboard
-3.45 KB
Binary file not shown.
Collapse file

‎app/src/main/res/drawable-xxhdpi/ic_nav_deedback.png‎

Copy file name to clipboard
-2.1 KB
Binary file not shown.
Collapse file

‎app/src/main/res/drawable-xxhdpi/ic_nav_homepage.png‎

Copy file name to clipboard
-2.05 KB
Binary file not shown.
Collapse file

‎app/src/main/res/drawable-xxhdpi/ic_nav_login.png‎

Copy file name to clipboard
-3 KB
Binary file not shown.
Collapse file

‎app/src/main/res/drawable-xxhdpi/ic_nav_scan.png‎

Copy file name to clipboard
-1.76 KB
Binary file not shown.
Collapse file

‎app/src/main/res/drawable/vector_music_greed_24dp.xml‎

Copy file name to clipboard
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="24dp"
3+
android:height="24dp"
4+
android:viewportWidth="24.0"
5+
android:viewportHeight="24.0">
6+
<path
7+
android:fillColor="@color/green"
8+
android:pathData="M12,3v9.28c-0.47,-0.17 -0.97,-0.28 -1.5,-0.28C8.01,12 6,14.01 6,16.5S8.01,21 10.5,21c2.31,0 4.2,-1.75 4.45,-4H15V6h4V3h-7z"/>
9+
</vector>

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.