This repository has been archived by the owner on Apr 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
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
33 changed files
with
228 additions
and
134 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
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
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
54 changes: 54 additions & 0 deletions
54
app/src/main/java/com/leon/biuvideo/ui/dialogs/FeedbackDialog.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,54 @@ | ||
package com.leon.biuvideo.ui.dialogs; | ||
|
||
import android.content.Context; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.view.Window; | ||
import android.view.WindowManager; | ||
import android.widget.Button; | ||
import android.widget.EditText; | ||
import android.widget.Toast; | ||
|
||
import androidx.annotation.NonNull; | ||
import androidx.appcompat.app.AlertDialog; | ||
|
||
import com.leon.biuvideo.R; | ||
import com.leon.biuvideo.utils.Fuck; | ||
|
||
public class FeedbackDialog extends AlertDialog { | ||
|
||
public FeedbackDialog(@NonNull Context context) { | ||
super(context); | ||
} | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.feed_back_dialog); | ||
|
||
initView(); | ||
} | ||
|
||
private void initView() { | ||
EditText feed_back_editText = findViewById(R.id.feed_back_editText); | ||
Button feed_back_button_submit = findViewById(R.id.feed_back_button_submit); | ||
feed_back_button_submit.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
String feedBack = feed_back_editText.getText().toString(); | ||
if (!feedBack.equals("")) { | ||
//处理反馈的提交 | ||
Fuck.blue(feedBack); | ||
dismiss(); | ||
Toast.makeText(getContext(), "感谢您的反馈", Toast.LENGTH_SHORT).show(); | ||
} else { | ||
Toast.makeText(getContext(), "不反馈点儿啥吗?", Toast.LENGTH_SHORT).show(); | ||
} | ||
} | ||
}); | ||
|
||
Window window = this.getWindow(); | ||
window.setBackgroundDrawableResource(android.R.color.transparent); | ||
window.clearFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM); | ||
} | ||
} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<vector android:height="24dp" android:viewportHeight="1024" | ||
android:viewportWidth="1024" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="#515151" android:pathData="M512,847.88c-28.73,0 -56.73,-2.6 -83.97,-7.1L231.23,960.19 231.23,761.41C128.62,689.36 62.77,578.89 62.77,454.83c0,-217.08 201.13,-393.06 449.23,-393.06 248.08,0 449.23,175.98 449.23,393.06C961.23,671.92 760.08,847.88 512,847.88zM512,117.92c-217.09,0 -393.07,150.85 -393.07,336.91 0,114.17 66.42,214.9 167.76,275.82l-1.77,130.23 132.17,-79.46c30.45,6.5 62.12,10.31 94.91,10.31 217.1,0 393.07,-150.83 393.07,-336.91C905.07,268.77 729.1,117.92 512,117.92zM736.61,510.98c-31.01,0 -56.15,-25.13 -56.15,-56.15 0,-31.01 25.14,-56.15 56.15,-56.15s56.15,25.14 56.15,56.15C792.77,485.85 767.62,510.98 736.61,510.98zM512,510.98c-31.01,0 -56.15,-25.13 -56.15,-56.15 0,-31.01 25.14,-56.15 56.15,-56.15 31.01,0 56.15,25.14 56.15,56.15C568.15,485.85 543.01,510.98 512,510.98zM287.39,510.98c-31.01,0 -56.15,-25.13 -56.15,-56.15 0,-31.01 25.14,-56.15 56.15,-56.15s56.15,25.14 56.15,56.15C343.54,485.85 318.4,510.98 287.39,510.98z"/> | ||
<path android:fillColor="#353535" android:pathData="M512,847.88c-28.73,0 -56.73,-2.6 -83.97,-7.1L231.23,960.19 231.23,761.41C128.62,689.36 62.77,578.89 62.77,454.83c0,-217.08 201.13,-393.06 449.23,-393.06 248.08,0 449.23,175.98 449.23,393.06C961.23,671.92 760.08,847.88 512,847.88zM512,117.92c-217.09,0 -393.07,150.85 -393.07,336.91 0,114.17 66.42,214.9 167.76,275.82l-1.77,130.23 132.17,-79.46c30.45,6.5 62.12,10.31 94.91,10.31 217.1,0 393.07,-150.83 393.07,-336.91C905.07,268.77 729.1,117.92 512,117.92zM736.61,510.98c-31.01,0 -56.15,-25.13 -56.15,-56.15 0,-31.01 25.14,-56.15 56.15,-56.15s56.15,25.14 56.15,56.15C792.77,485.85 767.62,510.98 736.61,510.98zM512,510.98c-31.01,0 -56.15,-25.13 -56.15,-56.15 0,-31.01 25.14,-56.15 56.15,-56.15 31.01,0 56.15,25.14 56.15,56.15C568.15,485.85 543.01,510.98 512,510.98zM287.39,510.98c-31.01,0 -56.15,-25.13 -56.15,-56.15 0,-31.01 25.14,-56.15 56.15,-56.15s56.15,25.14 56.15,56.15C343.54,485.85 318.4,510.98 287.39,510.98z"/> | ||
</vector> |
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,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<solid android:color="#EDEDED"/> | ||
<corners android:radius="10dp"/> | ||
</shape> |
File renamed without changes.
Oops, something went wrong.