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 — 抽取转盘显示类 · tmexcept/AndroidCustomView@c400725

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .idea
    • gradle.xml
    • misc.xml
    • modules.xml
  • app/src/main
    • AndroidManifest.xml
    • java/com/allen/androidcustomview
      • activity
        • LuckyWheelActivity.java
        • TranslateRotateCanvasActivity.java
      • widget
        • LuckyWheelAnimView.java
    • res/layout
      • activity_lucky_wheel.xml
      • activity_tranlate_rotate.xml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.idea/gradle.xml‎

Copy file name to clipboardExpand all lines: .idea/gradle.xml
-1Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎.idea/misc.xml‎

Copy file name to clipboardExpand all lines: .idea/misc.xml
+9Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎.idea/modules.xml‎

Copy file name to clipboardExpand all lines: .idea/modules.xml
+3Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎app/src/main/AndroidManifest.xml‎

Copy file name to clipboardExpand all lines: app/src/main/AndroidManifest.xml
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,14 @@
1313
android:supportsRtl="true"
1414
android:theme="@style/AppThemeNoTitle">
1515
<activity android:name=".activity.MainActivity">
16+
<!-- <intent-filter>-->
17+
<!-- <action android:name="android.intent.action.MAIN" />-->
18+
<!-- <category android:name="android.intent.category.LAUNCHER" />-->
19+
<!-- </intent-filter>-->
20+
</activity>
21+
<activity android:name=".activity.LuckyWheelActivity">
1622
<intent-filter>
1723
<action android:name="android.intent.action.MAIN" />
18-
1924
<category android:name="android.intent.category.LAUNCHER" />
2025
</intent-filter>
2126
</activity>
Collapse file

‎app/src/main/java/com/allen/androidcustomview/activity/LuckyWheelActivity.java‎

Copy file name to clipboard
+25Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.allen.androidcustomview.activity;
2+
3+
import android.os.Bundle;
4+
import android.support.annotation.Nullable;
5+
import android.support.v7.app.AppCompatActivity;
6+
import android.view.View;
7+
8+
import com.allen.androidcustomview.R;
9+
import com.allen.androidcustomview.widget.LuckyWheelAnimView;
10+
11+
public class LuckyWheelActivity extends AppCompatActivity {
12+
13+
LuckyWheelAnimView luckyWheelAnimView;
14+
@Override
15+
protected void onCreate(@Nullable Bundle savedInstanceState) {
16+
super.onCreate(savedInstanceState);
17+
setContentView(R.layout.activity_tranlate_rotate);
18+
19+
luckyWheelAnimView = findViewById(R.id.luckyWheelAnimView);
20+
}
21+
22+
public void luckyWheelAnim(View view){
23+
luckyWheelAnimView.setSmall();
24+
}
25+
}
Collapse file

‎app/src/main/java/com/allen/androidcustomview/activity/TranslateRotateCanvasActivity.java‎

Copy file name to clipboardExpand all lines: app/src/main/java/com/allen/androidcustomview/activity/TranslateRotateCanvasActivity.java
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.allen.androidcustomview.activity;
22

3+
import android.content.Intent;
34
import android.os.Bundle;
45
import android.support.annotation.Nullable;
56
import android.support.v7.app.AppCompatActivity;
@@ -12,18 +13,16 @@
1213
public class TranslateRotateCanvasActivity extends AppCompatActivity {
1314

1415
UserStarChangeView userStarChangeView;
15-
LuckyWheelAnimView luckyWheelAnimView;
1616
@Override
1717
protected void onCreate(@Nullable Bundle savedInstanceState) {
1818
super.onCreate(savedInstanceState);
1919
setContentView(R.layout.activity_tranlate_rotate);
2020

2121
userStarChangeView = findViewById(R.id.userStarChangeView);
22-
luckyWheelAnimView = findViewById(R.id.luckyWheelAnimView);
2322
}
2423

2524
public void luckyWheelAnim(View view){
26-
luckyWheelAnimView.setSmall();
25+
startActivity(new Intent(this, LuckyWheelActivity.class));
2726
}
2827

2928
int leveStar = 0;

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.