更新 UI 1.0.3(4)
This commit is contained in:
parent
ee26c0ec0a
commit
0057aa81de
2
.gitignore
vendored
2
.gitignore
vendored
@ -16,3 +16,5 @@ local.properties
|
||||
.idea/
|
||||
app/release/minimalistwallpaper_v1.0.1(2)_07_22_17_54-release.apk
|
||||
app/release/minimalistwallpaper_v1.0.1(2)_07_22_18_03-release.aab
|
||||
.safedk/
|
||||
app/release/minimalistwallpaper_v1.0.3(4)_08_19_14_22-release.apk
|
||||
|
||||
@ -23,8 +23,8 @@ android {
|
||||
applicationId = "com.tool.minimalistwallpaper"
|
||||
minSdk = 23
|
||||
targetSdk = 34
|
||||
versionCode = 3
|
||||
versionName = "1.0.2"
|
||||
versionCode = 4
|
||||
versionName = "1.0.3"
|
||||
setProperty("archivesBaseName", "minimalistwallpaper_v" + versionName + "(${versionCode})_$timestamp")
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
20
app/release/output-metadata.json
Normal file
20
app/release/output-metadata.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"version": 3,
|
||||
"artifactType": {
|
||||
"type": "APK",
|
||||
"kind": "Directory"
|
||||
},
|
||||
"applicationId": "com.tool.minimalistwallpaper",
|
||||
"variantName": "release",
|
||||
"elements": [
|
||||
{
|
||||
"type": "SINGLE",
|
||||
"filters": [],
|
||||
"attributes": [],
|
||||
"versionCode": 4,
|
||||
"versionName": "1.0.3",
|
||||
"outputFile": "minimalistwallpaper_v1.0.3(4)_08_19_14_22-release.apk"
|
||||
}
|
||||
],
|
||||
"elementType": "File"
|
||||
}
|
||||
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools" >
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.SET_WALLPAPER" />
|
||||
@ -18,10 +18,16 @@
|
||||
android:roundIcon="@mipmap/logo"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme"
|
||||
tools:targetApi="31" >
|
||||
tools:targetApi="31">
|
||||
<activity
|
||||
android:name=".activity.WebActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".activity.SettingActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".activity.SplashActivity"
|
||||
android:exported="true" >
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
@ -36,8 +42,7 @@
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".activity.MainActivity"
|
||||
android:exported="true" >
|
||||
</activity>
|
||||
android:exported="true" />
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
122
app/src/main/assets/privacy.html
Normal file
122
app/src/main/assets/privacy.html
Normal file
@ -0,0 +1,122 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Privacy Policy</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding: 20px;
|
||||
}
|
||||
h1, h2 {
|
||||
color: #333;
|
||||
}
|
||||
h2 {
|
||||
margin-top: 20px;
|
||||
}
|
||||
p {
|
||||
margin: 10px 0;
|
||||
}
|
||||
ul {
|
||||
margin: 10px 0;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Privacy Policy</h1>
|
||||
<p><strong>Date:</strong> August 19, 2024</p>
|
||||
|
||||
<p>We provide this Privacy Policy to help you understand how we collect, use, and disclose
|
||||
information, including what you may provide to us or that we obtain from our products and
|
||||
services. We treat your privacy very seriously. Your privacy is important to us.</p>
|
||||
|
||||
<h2>Information Collection and Use</h2>
|
||||
<p>For a better experience, while using our Service, we may require you to provide us with certain
|
||||
personally identifiable information, such as users' name, address, location, pictures, etc. The
|
||||
information that we request will be retained on your device and is not collected or retained by
|
||||
us in any way and used as described in this privacy policy.</p>
|
||||
<p>The app does use third-party services that may collect information used to identify you.</p>
|
||||
<p>Please refer to the privacy policy of the third-party service provider used by the
|
||||
application:</p>
|
||||
<ul>
|
||||
<li>Google Play Services</li>
|
||||
<li>Google Analytics for Firebase</li>
|
||||
<li>Firebase Crashlytics</li>
|
||||
<li>Unity</li>
|
||||
<li>AppLovin</li>
|
||||
<li>Pangle</li>
|
||||
<li>Mintegral</li>
|
||||
<li>Bigo</li>
|
||||
<li>Ironsource</li>
|
||||
<li>Vungle</li>
|
||||
</ul>
|
||||
|
||||
<h2>Log Data</h2>
|
||||
<p>We want to inform you that whenever you use our Service, in case of an error in the app, we
|
||||
collect data and information (through third-party products) on your phone called Log Data. This
|
||||
Log Data may include information such as your device Internet Protocol (“IP”) address, device
|
||||
name, operating system version, the configuration of the app when utilizing our Service, the
|
||||
time and date of your use of the Service, and other statistics.</p>
|
||||
|
||||
<h2>Cookies</h2>
|
||||
<p>Cookies are files with a small amount of data that are commonly used as anonymous unique
|
||||
identifiers. These are sent to your browser from the websites that you visit and are stored on
|
||||
your device's internal memory.</p>
|
||||
<p>This Service does not use these “cookies” explicitly. However, the app may use third-party code
|
||||
and libraries that use “cookies” to collect information and improve their services. You have the
|
||||
option to either accept or refuse these cookies and know when a cookie is being sent to your
|
||||
device. If you choose to refuse our cookies, you may not be able to use some portions of this
|
||||
Service.</p>
|
||||
|
||||
<h2>Service Providers</h2>
|
||||
<p>We may employ third-party companies and individuals due to the following reasons:</p>
|
||||
<ul>
|
||||
<li>To facilitate our Service</li>
|
||||
<li>To provide the Service on our behalf</li>
|
||||
<li>To perform Service-related services</li>
|
||||
<li>To assist us in analyzing how our Service is used</li>
|
||||
</ul>
|
||||
<p>We want to inform users of this Service that these third parties have access to their Personal
|
||||
Information. The reason is to perform the tasks assigned to them on our behalf. However, they
|
||||
are obligated not to disclose or use the information for any other purpose.</p>
|
||||
|
||||
<h2>Security</h2>
|
||||
<p>We value your trust in providing us your Personal Information, thus we are striving to use
|
||||
commercially acceptable means of protecting it. But remember that no method of transmission over
|
||||
the internet, or method of electronic storage is 100% secure and reliable, and we cannot
|
||||
guarantee its absolute security.</p>
|
||||
|
||||
<h2>Links to Other Sites</h2>
|
||||
<p>This Service may contain links to other sites. If you click on a third-party link, you will be
|
||||
directed to that site. Note that these external sites are not operated by us. Therefore, we
|
||||
strongly advise you to review the Privacy Policy of these websites. We have no control over and
|
||||
assume no responsibility for the content, privacy policies, or practices of any third-party
|
||||
sites or services.</p>
|
||||
|
||||
<h2>Children’s Privacy</h2>
|
||||
<p>These Services do not address anyone under the age of 13. We do not knowingly collect personally
|
||||
identifiable information from children under 13 years of age. In the case we discover that a
|
||||
child under 13 has provided us with personal information, we will immediately delete this from
|
||||
our servers. If you are a parent or guardian and you are aware that your child has provided us
|
||||
with personal information, please contact us so that we will be able to take the necessary
|
||||
actions.</p>
|
||||
|
||||
<h2>Changes to This Privacy Policy</h2>
|
||||
<p>We may update our Privacy Policy from time to time. Thus, you are advised to review this page
|
||||
periodically for any changes. We will notify you of any changes by posting the new Privacy
|
||||
Policy on this page.</p>
|
||||
|
||||
<h2>Privacy Questions</h2>
|
||||
<p>We may update the Privacy Policy from time to time. When we change the policy in a material way,
|
||||
a notice will be posted on our website along with the updated Privacy Policy.</p>
|
||||
<p>If you have any questions or concerns about our Privacy Policy or data processing, please contact
|
||||
us: <a href="mailto:amithchamara832@gmail.com">amithchamara832@gmail.com</a>.</p>
|
||||
</body>
|
||||
</html>
|
||||
@ -2135,7 +2135,7 @@
|
||||
"source": "https://resource-sg-public.lux-ad.com/wallpaper/0a42a3b35cfb1a570a6fdb97fd20fb47.jpg"
|
||||
}
|
||||
],
|
||||
"name": "Editoru0027s Choice"
|
||||
"name": "Editor'Choice"
|
||||
},
|
||||
{
|
||||
"data": [
|
||||
|
||||
@ -17,6 +17,7 @@ import com.tool.minimalistwallpaper.databinding.ActivityMainBinding;
|
||||
|
||||
public class MainActivity extends AppCompatActivity {
|
||||
ActivityMainBinding binding;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
@ -32,7 +33,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
|
||||
binding.mainViewpager.setAdapter(new PageAdapter(getSupportFragmentManager()));
|
||||
binding.mainTabLayout.setupWithViewPager(binding.mainViewpager);
|
||||
setmainTabIcons(binding.mainTabLayout);
|
||||
setTabIcons(0);
|
||||
binding.mainViewpager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
|
||||
@Override
|
||||
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
|
||||
@ -52,13 +53,14 @@ public class MainActivity extends AppCompatActivity {
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void setTabIcons(final int position) {
|
||||
for (int i = 0; i < binding.mainTabLayout.getTabCount(); i++) {
|
||||
final TabLayout.Tab tab = binding.mainTabLayout.getTabAt(i);
|
||||
for (int i = 0; i < binding.mainTabLayout.getTabCount(); i++) {
|
||||
final TabLayout.Tab tab = binding.mainTabLayout.getTabAt(i);
|
||||
if (tab != null) {
|
||||
switch (i) {
|
||||
case 0:
|
||||
tab.setIcon(position == 0 ? R.drawable.home_check : R.drawable.home_uncheck);
|
||||
tab.setIcon(position == 0 ? R.drawable.main_check : R.drawable.main_uncheck);
|
||||
break;
|
||||
case 1:
|
||||
tab.setIcon(position == 1 ? R.drawable.class_check : R.drawable.class_uncheck);
|
||||
@ -72,26 +74,6 @@ public class MainActivity extends AppCompatActivity {
|
||||
}
|
||||
}
|
||||
}
|
||||
private void setmainTabIcons(TabLayout tabLayout) {
|
||||
for (int i = 0; i < tabLayout.getTabCount(); i++) {
|
||||
TabLayout.Tab tab = tabLayout.getTabAt(i);
|
||||
if (tab != null) {
|
||||
switch (i) {
|
||||
case 0:
|
||||
tab.setIcon(R.drawable.home_check);
|
||||
break;
|
||||
case 1:
|
||||
tab.setIcon(R.drawable.class_uncheck);
|
||||
break;
|
||||
case 2:
|
||||
tab.setIcon(R.drawable.like_uncheck);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
|
||||
@ -4,12 +4,16 @@ import androidx.activity.EdgeToEdge;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.core.app.ActivityCompat;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.core.graphics.Insets;
|
||||
import androidx.core.view.GestureDetectorCompat;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.WindowInsetsCompat;
|
||||
|
||||
import android.Manifest;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.Dialog;
|
||||
import android.app.WallpaperManager;
|
||||
import android.content.ActivityNotFoundException;
|
||||
import android.content.BroadcastReceiver;
|
||||
@ -20,6 +24,7 @@ import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
@ -29,8 +34,11 @@ import android.os.Handler;
|
||||
import android.provider.MediaStore;
|
||||
import android.util.Log;
|
||||
import android.view.GestureDetector;
|
||||
import android.view.Gravity;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.ProgressBar;
|
||||
import android.widget.Toast;
|
||||
|
||||
@ -74,6 +82,7 @@ public class PreViewActivity extends AppCompatActivity {
|
||||
public static boolean KEY_Change = false;
|
||||
private Otherdata checkdata = new Otherdata();
|
||||
private static List<MaxInterstitialAd> adsList;
|
||||
private Dialog dialog;
|
||||
|
||||
@SuppressLint("MissingInflatedId")
|
||||
@Override
|
||||
@ -98,9 +107,10 @@ public class PreViewActivity extends AppCompatActivity {
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
if (Intent.ACTION_WALLPAPER_CHANGED.equals(intent.getAction())) {
|
||||
unregisterReceiver(wallpaperChangedReceiver);
|
||||
finish();
|
||||
Toast.makeText(PreViewActivity.this, getString(R.string.set_successful), Toast.LENGTH_SHORT).show();
|
||||
unregisterReceiver(wallpaperChangedReceiver);
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -128,29 +138,7 @@ public class PreViewActivity extends AppCompatActivity {
|
||||
binding.preSetwp.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
binding.imgSetwallpaper.setVisibility(View.GONE);
|
||||
binding.pgSetwallpaper.setVisibility(View.VISIBLE);
|
||||
List<String> permissions = new ArrayList<>();
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
||||
permissions.add(android.Manifest.permission.READ_MEDIA_IMAGES);
|
||||
}
|
||||
permissions.add(android.Manifest.permission.READ_EXTERNAL_STORAGE);
|
||||
permissions.add(android.Manifest.permission.WRITE_EXTERNAL_STORAGE);
|
||||
}
|
||||
permissions.add(android.Manifest.permission.WRITE_EXTERNAL_STORAGE);
|
||||
PermissionX.init(PreViewActivity.this)
|
||||
.permissions(permissions)
|
||||
.request((allGranted, grantedList, deniedList) -> {
|
||||
if (!allGranted) {
|
||||
binding.imgSetwallpaper.setVisibility(View.VISIBLE);
|
||||
binding.pgSetwallpaper.setVisibility(View.GONE);
|
||||
Toast.makeText(PreViewActivity.this, getString(R.string.permission_tips), Toast.LENGTH_SHORT).show();
|
||||
} else {
|
||||
|
||||
showAd();
|
||||
}
|
||||
});
|
||||
showDg();
|
||||
}
|
||||
|
||||
});
|
||||
@ -212,14 +200,12 @@ public class PreViewActivity extends AppCompatActivity {
|
||||
|
||||
private void downWp() {
|
||||
List<String> permissions = new ArrayList<>();
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
||||
permissions.add(android.Manifest.permission.READ_MEDIA_IMAGES);
|
||||
}
|
||||
permissions.add(android.Manifest.permission.READ_EXTERNAL_STORAGE);
|
||||
permissions.add(android.Manifest.permission.WRITE_EXTERNAL_STORAGE);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
||||
permissions.add(Manifest.permission.READ_MEDIA_IMAGES);
|
||||
} else {
|
||||
permissions.add(Manifest.permission.READ_EXTERNAL_STORAGE);
|
||||
permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);
|
||||
}
|
||||
permissions.add(android.Manifest.permission.WRITE_EXTERNAL_STORAGE);
|
||||
PermissionX.init(PreViewActivity.this)
|
||||
.permissions(permissions)
|
||||
.request((allGranted, grantedList, deniedList) -> {
|
||||
@ -233,6 +219,69 @@ public class PreViewActivity extends AppCompatActivity {
|
||||
});
|
||||
}
|
||||
|
||||
private void showDg() {
|
||||
dialog = new Dialog(this);
|
||||
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||
dialog.setContentView(R.layout.dialog);
|
||||
dialog.setCancelable(true);
|
||||
|
||||
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
|
||||
|
||||
WindowManager.LayoutParams lp = new WindowManager.LayoutParams();
|
||||
lp.copyFrom(dialog.getWindow().getAttributes());
|
||||
lp.width = WindowManager.LayoutParams.WRAP_CONTENT;
|
||||
lp.height = WindowManager.LayoutParams.WRAP_CONTENT;
|
||||
|
||||
dialog.findViewById(R.id.both_pg).setVisibility(View.GONE);
|
||||
dialog.findViewById(R.id.lock_pg).setVisibility(View.GONE);
|
||||
dialog.findViewById(R.id.home_pg).setVisibility(View.GONE);
|
||||
dialog.findViewById(R.id.dialog_lock).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
dialog.findViewById(R.id.lock_pg).setVisibility(View.VISIBLE);
|
||||
dialog.findViewById(R.id.lock_text).setVisibility(View.GONE);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
showAd(WallpaperManager.FLAG_LOCK);
|
||||
// Log.e("zzj", "---FLAG_LOCK---");
|
||||
} else {
|
||||
showAd(123);
|
||||
}
|
||||
}
|
||||
});
|
||||
dialog.findViewById(R.id.dialog_both).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
dialog.findViewById(R.id.both_pg).setVisibility(View.VISIBLE);
|
||||
dialog.findViewById(R.id.both_text).setVisibility(View.GONE);
|
||||
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
//// showAd(WallpaperManager.FLAG_LOCK | WallpaperManager.FLAG_SYSTEM);
|
||||
//// setWp(setmap, WallpaperManager.FLAG_LOCK | WallpaperManager.FLAG_SYSTEM);
|
||||
// Log.e("zzj", "---both---");
|
||||
// } else {
|
||||
// setALLWp(setmap);
|
||||
// }
|
||||
showAd(123);
|
||||
}
|
||||
});
|
||||
dialog.findViewById(R.id.dialog_home).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
dialog.findViewById(R.id.home_pg).setVisibility(View.VISIBLE);
|
||||
dialog.findViewById(R.id.home_text).setVisibility(View.GONE);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
showAd(WallpaperManager.FLAG_SYSTEM);
|
||||
} else {
|
||||
showAd(123);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
dialog.show();
|
||||
dialog.getWindow().setAttributes(lp);
|
||||
|
||||
}
|
||||
|
||||
@SuppressLint("CheckResult")
|
||||
private void downloadwp() {
|
||||
if (downloadmap != null) {
|
||||
@ -304,31 +353,34 @@ public class PreViewActivity extends AppCompatActivity {
|
||||
}
|
||||
}
|
||||
|
||||
private void setWp(Bitmap bitmap) {
|
||||
private void setWp(Bitmap bitmap, int Flag) {
|
||||
new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
wallpaperManager.setBitmap(bitmap, null, false, Flag);
|
||||
} else {
|
||||
wallpaperManager.setBitmap(bitmap);
|
||||
}
|
||||
|
||||
} catch (IOException a) {
|
||||
a.printStackTrace();
|
||||
}
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
|
||||
private void setALLWp(Bitmap bitmap) {
|
||||
new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
wallpaperManager.setBitmap(bitmap);
|
||||
} catch (IOException a) {
|
||||
// Toast.makeText(PreViewActivity.this, getString(R.string.set_failed), Toast.LENGTH_SHORT).show();
|
||||
a.printStackTrace();
|
||||
}
|
||||
// Intent intent = new Intent(Intent.ACTION_SET_WALLPAPER);
|
||||
//// intent.setData(getImageUri(PreViewActivity.this, bitmap));
|
||||
//// intent.setDataAndType(getImageUri(PreViewActivity.this, bitmap), "image/*");
|
||||
// try {
|
||||
// startActivity(intent);
|
||||
// } catch (ActivityNotFoundException e) {
|
||||
// try {
|
||||
// wallpaperManager.setBitmap(bitmap);
|
||||
// } catch (IOException a) {
|
||||
//// Toast.makeText(PreViewActivity.this, getString(R.string.set_failed), Toast.LENGTH_SHORT).show();
|
||||
// a.printStackTrace();
|
||||
// }
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
@ -445,21 +497,21 @@ public class PreViewActivity extends AppCompatActivity {
|
||||
// unregisterReceiver(wallpaperChangedReceiver);
|
||||
}
|
||||
|
||||
private void showAd() {
|
||||
private void showAd(int Flag) {
|
||||
MaxInterstitialAd cachedAd = Mytools.onCache(adsList);
|
||||
|
||||
if (cachedAd == null) {
|
||||
setWp(setmap);
|
||||
setWp(setmap, Flag);
|
||||
} else {
|
||||
Mytools.setCallBcak(cachedAd, new Adcallback() {
|
||||
@Override
|
||||
public void onShowFail(MaxAd ad) {
|
||||
setWp(setmap);
|
||||
setWp(setmap, Flag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAdHidden() {
|
||||
setWp(setmap);
|
||||
setWp(setmap, Flag);
|
||||
}
|
||||
});
|
||||
cachedAd.showAd(this);
|
||||
@ -471,7 +523,6 @@ public class PreViewActivity extends AppCompatActivity {
|
||||
protected void onStop() {
|
||||
super.onStop();
|
||||
if (binding.preImage != null) {
|
||||
Log.e("zzj", " ");
|
||||
Glide.with(this)
|
||||
.clear(binding.preImage);
|
||||
}
|
||||
|
||||
@ -0,0 +1,70 @@
|
||||
package com.tool.minimalistwallpaper.activity;
|
||||
|
||||
import androidx.activity.EdgeToEdge;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.core.graphics.Insets;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.WindowInsetsCompat;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
|
||||
import com.tool.minimalistwallpaper.R;
|
||||
import com.tool.minimalistwallpaper.databinding.ActivitySettingBinding;
|
||||
|
||||
public class SettingActivity extends AppCompatActivity {
|
||||
ActivitySettingBinding binding;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
binding = ActivitySettingBinding.inflate(getLayoutInflater());
|
||||
setContentView(binding.getRoot());
|
||||
|
||||
EdgeToEdge.enable(this);
|
||||
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.activity_setting), (v, insets) -> {
|
||||
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
|
||||
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
|
||||
return insets;
|
||||
});
|
||||
|
||||
initEvent();
|
||||
|
||||
}
|
||||
|
||||
private void initEvent() {
|
||||
binding.privacy.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent = new Intent(SettingActivity.this, WebActivity.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
binding.settingBack.setOnClickListener(v -> finish());
|
||||
binding.versionText.setText("1.0.2");
|
||||
binding.rate.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
String url = "https://play.google.com/store/apps/details?id=com.tool.minimalistwallpaper";
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||
intent.setData(Uri.parse(url));
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
|
||||
binding.share.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent share = new Intent(Intent.ACTION_SEND);
|
||||
share.setType("text/plain");
|
||||
share.putExtra(Intent.EXTRA_SUBJECT, R.string.app_name);
|
||||
String text = getString(R.string.share_title);
|
||||
text = text + "\n https://play.google.com/store/apps/details?id=" + "com.tool.minimalistwallpaper";
|
||||
share.putExtra(Intent.EXTRA_TEXT, text);
|
||||
startActivity(Intent.createChooser(share, "choose one"));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -23,6 +23,7 @@ import com.applovin.sdk.AppLovinSdk;
|
||||
import com.tool.minimalistwallpaper.MinimalistWPSkin;
|
||||
import com.tool.minimalistwallpaper.R;
|
||||
import com.tool.minimalistwallpaper.tools.Adcallback;
|
||||
import com.tool.minimalistwallpaper.tools.CustomProgressBar;
|
||||
import com.tool.minimalistwallpaper.tools.Mytools;
|
||||
|
||||
import java.util.List;
|
||||
@ -31,6 +32,8 @@ public class SplashActivity extends AppCompatActivity {
|
||||
private CountDownTimer countDownTimer;
|
||||
private static List<MaxInterstitialAd> adsList;
|
||||
public static boolean isAlreadyShow = false;
|
||||
private float i = 0;
|
||||
|
||||
@SuppressLint("MissingInflatedId")
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
@ -43,10 +46,12 @@ public class SplashActivity extends AppCompatActivity {
|
||||
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
|
||||
return insets;
|
||||
});
|
||||
|
||||
countDownTimer = new CountDownTimer(11000, 100) {
|
||||
CustomProgressBar customProgressBar = findViewById(R.id.splash_pg);
|
||||
countDownTimer = new CountDownTimer(10100, 100) {
|
||||
@Override
|
||||
public void onTick(long millisUntilFinished) {
|
||||
i++;
|
||||
customProgressBar.setProgress(i);
|
||||
if (!isAlreadyShow) {
|
||||
showAdOrStartView(false);
|
||||
}
|
||||
@ -61,6 +66,7 @@ public class SplashActivity extends AppCompatActivity {
|
||||
};
|
||||
registerBroadcastReceiver();
|
||||
}
|
||||
|
||||
private void showAdOrStartView(boolean go) {
|
||||
MaxInterstitialAd cachedAd = Mytools.onCache(adsList);
|
||||
if (cachedAd == null) {
|
||||
@ -74,7 +80,7 @@ public class SplashActivity extends AppCompatActivity {
|
||||
@Override
|
||||
public void onShowFail(MaxAd ad) {
|
||||
Log.e("zzj", "------------onShowFail--------fail");
|
||||
if(countDownTimer!=null){
|
||||
if (countDownTimer != null) {
|
||||
countDownTimer.cancel();
|
||||
}
|
||||
satrView();
|
||||
@ -112,6 +118,7 @@ public class SplashActivity extends AppCompatActivity {
|
||||
adsList = Mytools.getAllAd();
|
||||
countDownTimer.start();
|
||||
}
|
||||
|
||||
private void satrView() {
|
||||
Intent intent = new Intent(SplashActivity.this, MainActivity.class);
|
||||
startActivity(intent);
|
||||
|
||||
@ -0,0 +1,34 @@
|
||||
package com.tool.minimalistwallpaper.activity;
|
||||
|
||||
import androidx.activity.EdgeToEdge;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.core.graphics.Insets;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.WindowInsetsCompat;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.webkit.WebView;
|
||||
import android.webkit.WebViewClient;
|
||||
|
||||
import com.tool.minimalistwallpaper.R;
|
||||
|
||||
public class WebActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_web);
|
||||
EdgeToEdge.enable(this);
|
||||
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.activity_web), (v, insets) -> {
|
||||
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
|
||||
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
|
||||
return insets;
|
||||
});
|
||||
|
||||
|
||||
WebView webView = findViewById(R.id.web);
|
||||
webView.getSettings().setJavaScriptEnabled(true);
|
||||
webView.setWebViewClient(new WebViewClient());
|
||||
webView.loadUrl("file:///android_asset/privacy.html");
|
||||
}
|
||||
}
|
||||
@ -72,22 +72,6 @@ public class CategoryRvAdapter extends RecyclerView.Adapter<CategoryRvAdapter.Th
|
||||
Glide.with(myContext)
|
||||
.load(myData.getBanner())
|
||||
.placeholder(R.mipmap.logo)
|
||||
// .encodeQuality(90)
|
||||
// .encodeFormat(Bitmap.CompressFormat.JPEG)
|
||||
// .downsample(DownsampleStrategy.CENTER_INSIDE)
|
||||
.addListener(new RequestListener<Drawable>() {
|
||||
@Override
|
||||
public boolean onLoadFailed(@Nullable GlideException e, @Nullable Object model, @NonNull Target<Drawable> target, boolean isFirstResource) {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onResourceReady(@NonNull Drawable resource, @NonNull Object model, Target<Drawable> target, @NonNull DataSource dataSource, boolean isFirstResource) {
|
||||
Log.e("zzj", "load --------" + resource.toString());
|
||||
return false;
|
||||
}
|
||||
})
|
||||
.transform(new RoundedCorners(Mytools.dp2Px(16)))
|
||||
.into(holder.getImageViewThumb());
|
||||
holder.getConstraintLayout().setOnClickListener(v -> {
|
||||
|
||||
@ -51,7 +51,7 @@ public class LikeAdapter extends RecyclerView.Adapter<LikeAdapter.MainRvVH> {
|
||||
public void onViewRecycled(@NonNull MainRvVH holder) {
|
||||
super.onViewRecycled(holder);
|
||||
if (holder.getImage() != null) {
|
||||
Log.e("zzj", "===================");
|
||||
// Log.e("zzj", "===================");
|
||||
Glide.with(mcontext)
|
||||
.clear(holder.getImage());
|
||||
}
|
||||
|
||||
@ -16,6 +16,7 @@ import com.bumptech.glide.Glide;
|
||||
import com.tool.minimalistwallpaper.MinimalistWPSkin;
|
||||
import com.tool.minimalistwallpaper.R;
|
||||
import com.tool.minimalistwallpaper.activity.PreViewActivity;
|
||||
import com.tool.minimalistwallpaper.activity.SettingActivity;
|
||||
import com.tool.minimalistwallpaper.adapter.MainRvAdapter;
|
||||
import com.tool.minimalistwallpaper.data.Otherdata;
|
||||
import com.tool.minimalistwallpaper.databinding.FragmentMainBinding;
|
||||
@ -59,6 +60,15 @@ public class MainFragment extends Fragment {
|
||||
|
||||
binding.mainRv.addItemDecoration(spaceItem);
|
||||
|
||||
|
||||
binding.setting.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent = new Intent(requireContext(), SettingActivity.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
|
||||
return binding.getRoot();
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,62 @@
|
||||
package com.tool.minimalistwallpaper.tools
|
||||
|
||||
import android.content.Context
|
||||
import android.graphics.Canvas
|
||||
import android.graphics.Color
|
||||
import android.graphics.LinearGradient
|
||||
import android.graphics.Paint
|
||||
import android.graphics.RectF
|
||||
import android.graphics.Shader
|
||||
import android.util.AttributeSet
|
||||
import android.view.View
|
||||
|
||||
class CustomProgressBar(context: Context, attrs: AttributeSet?) : View(context, attrs) {
|
||||
private var progress = 0f // 当前进度
|
||||
private val maxProgress = 100f // 最大进度
|
||||
private val progressBarHeight = 20f // 进度条高度
|
||||
private val cornerRadius = 10f // 圆角半径
|
||||
private val backgroundColor = Color.parseColor("#26FFFFFF")
|
||||
private val startColor = Color.parseColor("#FF9ce8ff") // 起始颜色
|
||||
private val middleColor = Color.parseColor("#FFa4c4fb") // 中间颜色
|
||||
private val endColor = Color.parseColor("#FFbfa4ee") // 结束颜色
|
||||
private val paint = Paint()
|
||||
private val paintTow = Paint()
|
||||
|
||||
init {
|
||||
paint.style = Paint.Style.FILL
|
||||
paint.isAntiAlias = true
|
||||
paintTow.style = Paint.Style.FILL
|
||||
paintTow.isAntiAlias = true
|
||||
}
|
||||
|
||||
override fun onDraw(canvas: Canvas) {
|
||||
super.onDraw(canvas)
|
||||
// 绘制底色矩形
|
||||
paint.shader = null // 重置着色器
|
||||
paint.color = backgroundColor
|
||||
val backgroundRect = RectF(0f, (height / 2 - progressBarHeight / 2), width.toFloat(), (height / 2 + progressBarHeight / 2))
|
||||
canvas.drawRoundRect(backgroundRect, cornerRadius, cornerRadius, paint)
|
||||
|
||||
|
||||
// 计算进度条的宽度
|
||||
val progressBarWidth = (width * progress / maxProgress)
|
||||
|
||||
// 创建颜色渐变对象
|
||||
val gradient = LinearGradient(0f, 0f, width.toFloat(), 0f, intArrayOf(startColor, middleColor, endColor), null, Shader.TileMode.CLAMP)
|
||||
paintTow.shader = gradient
|
||||
|
||||
// 绘制带圆角的进度条矩形
|
||||
val rect = RectF(0f, (height / 2 - progressBarHeight / 2), progressBarWidth.toFloat(), (height / 2 + progressBarHeight / 2))
|
||||
canvas.drawRoundRect(rect, cornerRadius, cornerRadius, paintTow)
|
||||
}
|
||||
|
||||
fun getProgress():Float{
|
||||
return progress
|
||||
}
|
||||
|
||||
// 设置进度
|
||||
fun setProgress(progress: Float) {
|
||||
this.progress = progress
|
||||
invalidate() // 请求重绘
|
||||
}
|
||||
}
|
||||
7
app/src/main/res/drawable/dialog_bg.xml
Normal file
7
app/src/main/res/drawable/dialog_bg.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/white"/>
|
||||
<corners
|
||||
android:radius="15dp"/>
|
||||
|
||||
</shape>
|
||||
10
app/src/main/res/drawable/icon_go.xml
Normal file
10
app/src/main/res/drawable/icon_go.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:viewportWidth="18"
|
||||
android:viewportHeight="18">
|
||||
<path
|
||||
android:pathData="M6.595,3.97C6.302,4.263 6.302,4.738 6.595,5.03L10.564,9L6.595,12.97C6.302,13.263 6.302,13.738 6.595,14.03C6.888,14.323 7.362,14.323 7.655,14.03L12.155,9.53C12.448,9.238 12.448,8.763 12.155,8.47L7.655,3.97C7.362,3.677 6.888,3.677 6.595,3.97Z"
|
||||
android:fillColor="#ABABAB"
|
||||
android:fillType="evenOdd"/>
|
||||
</vector>
|
||||
15
app/src/main/res/drawable/icon_menu.xml
Normal file
15
app/src/main/res/drawable/icon_menu.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M6,13.5C6.828,13.5 7.5,12.828 7.5,12C7.5,11.172 6.828,10.5 6,10.5C5.172,10.5 4.5,11.172 4.5,12C4.5,12.828 5.172,13.5 6,13.5Z"
|
||||
android:fillColor="#333333"/>
|
||||
<path
|
||||
android:pathData="M12,13.5C12.828,13.5 13.5,12.828 13.5,12C13.5,11.172 12.828,10.5 12,10.5C11.172,10.5 10.5,11.172 10.5,12C10.5,12.828 11.172,13.5 12,13.5Z"
|
||||
android:fillColor="#333333"/>
|
||||
<path
|
||||
android:pathData="M18,13.5C18.828,13.5 19.5,12.828 19.5,12C19.5,11.172 18.828,10.5 18,10.5C17.172,10.5 16.5,11.172 16.5,12C16.5,12.828 17.172,13.5 18,13.5Z"
|
||||
android:fillColor="#333333"/>
|
||||
</vector>
|
||||
9
app/src/main/res/drawable/icon_privacy.xml
Normal file
9
app/src/main/res/drawable/icon_privacy.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M21.4,14.35L15.05,20.7C14.95,20.8 14.838,20.875 14.713,20.925C14.588,20.975 14.459,21 14.325,21H13.5C13.367,21 13.25,20.95 13.15,20.85C13.05,20.75 13,20.633 13,20.5V19.675C13,19.542 13.025,19.413 13.075,19.288C13.125,19.163 13.2,19.051 13.3,18.95L19.65,12.6L21.4,14.35ZM2,17V7C2,6.45 2.196,5.979 2.588,5.588C2.98,5.197 3.451,5.001 4,5H20C20.55,5 21.021,5.196 21.413,5.588C21.805,5.98 22.001,6.451 22,7C22,7.183 21.9,7.396 21.7,7.638C21.5,7.88 21.267,8.001 21,8H20.825C20.558,8 20.304,8.05 20.062,8.15C19.82,8.25 19.608,8.392 19.425,8.575L15.575,12.425C15.392,12.608 15.179,12.75 14.938,12.85C14.697,12.95 14.442,13 14.175,13H7C6.717,13 6.479,13.096 6.288,13.288C6.097,13.48 6.001,13.717 6,14C5.999,14.283 6.095,14.52 6.288,14.713C6.481,14.906 6.718,15.001 7,15H11.8C12.033,15 12.192,15.1 12.275,15.3C12.358,15.5 12.317,15.683 12.15,15.85L9.575,18.425C9.392,18.608 9.179,18.75 8.938,18.85C8.697,18.95 8.442,19 8.175,19H4C3.45,19 2.979,18.804 2.588,18.413C2.197,18.022 2.001,17.551 2,17ZM7,11H11C11.283,11 11.521,10.904 11.713,10.712C11.905,10.52 12.001,10.283 12,10C11.999,9.717 11.903,9.48 11.712,9.288C11.521,9.096 11.283,9 11,9H7C6.717,9 6.479,9.096 6.288,9.288C6.097,9.48 6.001,9.717 6,10C5.999,10.283 6.095,10.52 6.288,10.713C6.481,10.906 6.718,11.001 7,11ZM22,13.75L20.25,12L21.15,11.1C21.233,11.017 21.325,10.975 21.425,10.975C21.525,10.975 21.617,11.017 21.7,11.1L22.9,12.3C22.983,12.383 23.025,12.475 23.025,12.575C23.025,12.675 22.983,12.767 22.9,12.85L22,13.75Z"
|
||||
android:fillColor="#131414"/>
|
||||
</vector>
|
||||
9
app/src/main/res/drawable/icon_rate.xml
Normal file
9
app/src/main/res/drawable/icon_rate.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M6.65,8.15C6.75,8.25 6.867,8.3 7,8.3C7.133,8.3 7.25,8.25 7.35,8.15L8.65,6.85C8.75,6.75 8.8,6.633 8.8,6.5C8.8,6.367 8.75,6.25 8.65,6.15L7.35,4.85C7.25,4.75 7.133,4.7 7,4.7C6.867,4.7 6.75,4.75 6.65,4.85L5.35,6.15C5.25,6.25 5.2,6.367 5.2,6.5C5.2,6.633 5.25,6.75 5.35,6.85L6.65,8.15ZM16.5,7C16.917,7 17.271,6.854 17.563,6.563C17.855,6.272 18.001,5.917 18,5.5C17.999,5.083 17.854,4.729 17.563,4.438C17.272,4.147 16.918,4.001 16.5,4C16.082,3.999 15.728,4.145 15.438,4.438C15.148,4.731 15.002,5.085 15,5.5C14.998,5.915 15.144,6.269 15.438,6.563C15.732,6.857 16.086,7.003 16.5,7ZM6,23C5.717,23 5.479,22.904 5.288,22.712C5.097,22.52 5.001,22.283 5,22V20.9C5,20.317 5.163,19.775 5.488,19.275C5.813,18.775 6.242,18.4 6.775,18.15C7.592,17.767 8.442,17.479 9.325,17.288C10.208,17.097 11.1,17.001 12,17C12.9,16.999 13.792,17.095 14.675,17.288C15.558,17.481 16.408,17.768 17.225,18.15C17.758,18.4 18.188,18.775 18.513,19.275C18.838,19.775 19.001,20.317 19,20.9V22C19,22.283 18.904,22.521 18.713,22.713C18.522,22.905 18.284,23.001 18,23H6ZM12,16C11.033,16 10.208,15.658 9.525,14.975C8.842,14.292 8.5,13.467 8.5,12.5C8.5,11.533 8.842,10.708 9.525,10.025C10.208,9.342 11.033,9 12,9C12.967,9 13.792,9.342 14.475,10.025C15.158,10.708 15.5,11.533 15.5,12.5C15.5,13.467 15.158,14.292 14.475,14.975C13.792,15.658 12.967,16 12,16ZM2,3C2,2.45 2.196,1.979 2.588,1.588C2.98,1.197 3.451,1.001 4,1H20C20.55,1 21.021,1.196 21.413,1.588C21.805,1.98 22.001,2.451 22,3V12C22,12.55 21.804,13.021 21.413,13.413C21.022,13.805 20.551,14.001 20,14H17.875C17.592,14 17.363,13.892 17.188,13.675C17.013,13.458 16.942,13.208 16.975,12.925C16.992,12.775 17,12.621 17,12.463C17,12.305 16.992,12.151 16.975,12C16.842,10.733 16.304,9.667 15.363,8.8C14.422,7.933 13.301,7.5 12,7.5C10.699,7.5 9.578,7.933 8.637,8.8C7.696,9.667 7.158,10.733 7.025,12C7.008,12.15 7,12.304 7,12.463C7,12.622 7.008,12.776 7.025,12.925C7.058,13.208 6.987,13.458 6.812,13.675C6.637,13.892 6.408,14 6.126,14H4C3.45,14 2.979,13.804 2.588,13.413C2.197,13.022 2.001,12.551 2,12V3Z"
|
||||
android:fillColor="#131414"/>
|
||||
</vector>
|
||||
9
app/src/main/res/drawable/icon_share.xml
Normal file
9
app/src/main/res/drawable/icon_share.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M14.5,15C15.05,15 15.521,14.804 15.913,14.413C16.305,14.022 16.501,13.551 16.5,13C16.499,12.449 16.304,11.979 15.913,11.588C15.522,11.197 15.051,11.001 14.5,11C14.25,11 14.013,11.046 13.788,11.138C13.563,11.23 13.359,11.351 13.175,11.5L10.5,10.15V9.85L13.175,8.5C13.358,8.65 13.563,8.771 13.788,8.863C14.013,8.955 14.251,9.001 14.5,9C15.05,9 15.521,8.804 15.913,8.413C16.305,8.022 16.501,7.551 16.5,7C16.499,6.449 16.304,5.979 15.913,5.588C15.522,5.197 15.051,5.001 14.5,5C13.949,4.999 13.478,5.195 13.088,5.588C12.698,5.981 12.502,6.452 12.5,7V7.15L9.825,8.5C9.642,8.35 9.438,8.229 9.213,8.137C8.988,8.045 8.751,7.999 8.5,8C7.95,8 7.479,8.196 7.088,8.588C6.697,8.98 6.501,9.451 6.5,10C6.499,10.549 6.695,11.02 7.088,11.413C7.481,11.806 7.951,12.001 8.5,12C8.75,12 8.988,11.954 9.213,11.863C9.438,11.772 9.642,11.651 9.825,11.5L12.5,12.85V13C12.5,13.55 12.696,14.021 13.088,14.413C13.48,14.805 13.951,15.001 14.5,15ZM6,18L3.7,20.3C3.383,20.617 3.021,20.688 2.612,20.513C2.203,20.338 1.999,20.026 2,19.575V4C2,3.45 2.196,2.979 2.588,2.588C2.98,2.197 3.451,2.001 4,2H20C20.55,2 21.021,2.196 21.413,2.588C21.805,2.98 22.001,3.451 22,4V16C22,16.55 21.804,17.021 21.413,17.413C21.022,17.805 20.551,18.001 20,18H6Z"
|
||||
android:fillColor="#131414"/>
|
||||
</vector>
|
||||
9
app/src/main/res/drawable/icon_version.xml
Normal file
9
app/src/main/res/drawable/icon_version.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M12,17C12.283,17 12.521,16.904 12.713,16.712C12.905,16.52 13.001,16.283 13,16C12.999,15.717 12.903,15.48 12.712,15.288C12.521,15.096 12.283,15 12,15C11.717,15 11.479,15.096 11.288,15.288C11.097,15.48 11.001,15.717 11,16C10.999,16.283 11.095,16.52 11.288,16.713C11.481,16.906 11.718,17.001 12,17ZM12,13C12.283,13 12.521,12.904 12.713,12.712C12.905,12.52 13.001,12.283 13,12V8C13,7.717 12.904,7.479 12.712,7.288C12.52,7.097 12.283,7.001 12,7C11.717,6.999 11.48,7.095 11.288,7.288C11.096,7.481 11,7.718 11,8V12C11,12.283 11.096,12.521 11.288,12.713C11.48,12.905 11.717,13.001 12,13ZM8.65,20H6C5.45,20 4.979,19.804 4.588,19.413C4.197,19.022 4.001,18.551 4,18V15.35L2.075,13.4C1.892,13.2 1.75,12.979 1.65,12.738C1.55,12.497 1.5,12.251 1.5,12C1.5,11.749 1.55,11.504 1.65,11.263C1.75,11.022 1.892,10.801 2.075,10.6L4,8.65V6C4,5.45 4.196,4.979 4.588,4.588C4.98,4.197 5.451,4.001 6,4H8.65L10.6,2.075C10.8,1.892 11.021,1.75 11.263,1.65C11.505,1.55 11.751,1.5 12,1.5C12.249,1.5 12.495,1.55 12.738,1.65C12.981,1.75 13.201,1.892 13.4,2.075L15.35,4H18C18.55,4 19.021,4.196 19.413,4.588C19.805,4.98 20.001,5.451 20,6V8.65L21.925,10.6C22.108,10.8 22.25,11.021 22.35,11.263C22.45,11.505 22.5,11.751 22.5,12C22.5,12.249 22.45,12.495 22.35,12.738C22.25,12.981 22.108,13.201 21.925,13.4L20,15.35V18C20,18.55 19.804,19.021 19.413,19.413C19.022,19.805 18.551,20.001 18,20H15.35L13.4,21.925C13.2,22.108 12.979,22.25 12.738,22.35C12.497,22.45 12.251,22.5 12,22.5C11.749,22.5 11.504,22.45 11.263,22.35C11.022,22.25 10.801,22.108 10.6,21.925L8.65,20Z"
|
||||
android:fillColor="#131414"/>
|
||||
</vector>
|
||||
@ -1,13 +1,13 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="19dp"
|
||||
android:height="18dp"
|
||||
android:viewportWidth="19"
|
||||
android:viewportHeight="18">
|
||||
android:width="25dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="25"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M16.771,2.826C16.351,2.406 15.852,2.072 15.302,1.845C14.753,1.617 14.165,1.5 13.57,1.5C12.976,1.5 12.387,1.617 11.838,1.845C11.289,2.072 10.79,2.406 10.37,2.826L9.498,3.698L8.626,2.826C7.777,1.977 6.626,1.5 5.425,1.5C4.225,1.5 3.074,1.977 2.225,2.826C1.376,3.675 0.899,4.826 0.899,6.027C0.899,7.227 1.376,8.378 2.225,9.227L3.097,10.099L9.498,16.5L15.899,10.099L16.771,9.227C17.191,8.807 17.525,8.308 17.752,7.759C17.98,7.21 18.097,6.621 18.097,6.027C18.097,5.432 17.98,4.844 17.752,4.294C17.525,3.745 17.191,3.246 16.771,2.826Z"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="1.64547"
|
||||
android:fillColor="#353535"
|
||||
android:strokeColor="#353535"
|
||||
android:strokeLineCap="round"/>
|
||||
android:pathData="M13.109,21.233C15.054,20.237 22.206,16.166 22.206,10.1C22.206,4.715 17.735,1.124 12.625,1.124C7.686,1.124 3.044,4.715 3.044,10.1C3.044,16.166 10.196,20.237 12.141,21.233C12.291,21.31 12.457,21.351 12.625,21.351C12.793,21.351 12.959,21.31 13.109,21.233Z"
|
||||
android:fillColor="#000000"
|
||||
android:fillType="evenOdd"/>
|
||||
<path
|
||||
android:pathData="M12.625,14.403C12.514,14.403 12.402,14.383 12.288,14.343C12.174,14.303 12.073,14.239 11.987,14.151L11.172,13.393C10.337,12.615 9.583,11.843 8.909,11.077C8.236,10.311 7.899,9.467 7.899,8.545C7.899,7.791 8.147,7.161 8.644,6.656C9.14,6.151 9.758,5.898 10.498,5.898C10.916,5.898 11.309,5.988 11.679,6.169C12.05,6.349 12.365,6.596 12.625,6.909C12.884,6.596 13.199,6.349 13.569,6.169C13.94,5.989 14.333,5.899 14.751,5.898C15.491,5.898 16.109,6.151 16.605,6.656C17.101,7.161 17.35,7.791 17.35,8.545C17.35,9.467 17.015,10.313 16.345,11.083C15.676,11.853 14.916,12.627 14.066,13.405L13.262,14.151C13.176,14.239 13.075,14.303 12.961,14.343C12.847,14.383 12.735,14.403 12.625,14.403Z"
|
||||
android:fillColor="#ffffff"/>
|
||||
</vector>
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="19dp"
|
||||
android:height="18dp"
|
||||
android:viewportWidth="19"
|
||||
android:viewportHeight="18">
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M16.771,2.826C16.351,2.406 15.852,2.072 15.303,1.845C14.753,1.617 14.165,1.5 13.57,1.5C12.976,1.5 12.387,1.617 11.838,1.845C11.289,2.072 10.79,2.406 10.37,2.826L9.498,3.698L8.626,2.826C7.777,1.977 6.626,1.5 5.425,1.5C4.225,1.5 3.074,1.977 2.225,2.826C1.376,3.675 0.899,4.826 0.899,6.027C0.899,7.227 1.376,8.378 2.225,9.227L3.097,10.099L9.498,16.5L15.899,10.099L16.771,9.227C17.191,8.807 17.525,8.308 17.752,7.759C17.98,7.21 18.097,6.621 18.097,6.027C18.097,5.432 17.98,4.844 17.752,4.294C17.525,3.745 17.191,3.246 16.771,2.826Z"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="1.64547"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="#353535"
|
||||
android:strokeLineCap="round"/>
|
||||
android:pathData="M12.484,21.233C14.429,20.237 21.581,16.166 21.581,10.1C21.581,4.715 17.11,1.124 12,1.124C7.061,1.124 2.419,4.715 2.419,10.1C2.419,16.166 9.571,20.237 11.516,21.233C11.666,21.31 11.832,21.351 12,21.351C12.168,21.351 12.334,21.31 12.484,21.233Z"
|
||||
android:fillColor="#CFCFCF"
|
||||
android:fillType="evenOdd"/>
|
||||
<path
|
||||
android:pathData="M12,14.403C11.889,14.403 11.777,14.383 11.663,14.343C11.549,14.303 11.448,14.239 11.362,14.151L10.547,13.393C9.712,12.615 8.958,11.843 8.284,11.077C7.611,10.311 7.274,9.467 7.274,8.545C7.274,7.791 7.522,7.161 8.019,6.656C8.515,6.151 9.133,5.898 9.873,5.898C10.291,5.898 10.684,5.988 11.054,6.169C11.425,6.349 11.74,6.596 12,6.909C12.259,6.596 12.574,6.349 12.944,6.169C13.315,5.989 13.708,5.899 14.126,5.898C14.866,5.898 15.484,6.151 15.98,6.656C16.476,7.161 16.725,7.791 16.725,8.545C16.725,9.467 16.39,10.313 15.72,11.083C15.051,11.853 14.291,12.627 13.441,13.405L12.637,14.151C12.551,14.239 12.45,14.303 12.336,14.343C12.222,14.383 12.11,14.403 12,14.403Z"
|
||||
android:fillColor="#ffffff"/>
|
||||
</vector>
|
||||
|
||||
10
app/src/main/res/drawable/main_check.xml
Normal file
10
app/src/main/res/drawable/main_check.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M3.468,8.241C3,9.093 3,10.123 3,12.183V13.552C3,17.063 3,18.818 4.055,19.909C5.109,21 6.806,21 10.2,21H13.8C17.194,21 18.891,21 19.945,19.909C21,18.818 21,17.063 21,13.552V12.184C21,10.123 21,9.094 20.532,8.241C20.066,7.387 19.212,6.857 17.504,5.797L15.704,4.68C13.9,3.56 12.997,3 12,3C11.003,3 10.101,3.56 8.296,4.68L6.496,5.797C4.788,6.857 3.935,7.387 3.468,8.241ZM11.325,17.4C11.325,17.579 11.396,17.751 11.523,17.877C11.649,18.004 11.821,18.075 12,18.075C12.179,18.075 12.351,18.004 12.477,17.877C12.604,17.751 12.675,17.579 12.675,17.4V14.7C12.675,14.521 12.604,14.349 12.477,14.223C12.351,14.096 12.179,14.025 12,14.025C11.821,14.025 11.649,14.096 11.523,14.223C11.396,14.349 11.325,14.521 11.325,14.7V17.4Z"
|
||||
android:fillColor="#000000"
|
||||
android:fillType="evenOdd"/>
|
||||
</vector>
|
||||
10
app/src/main/res/drawable/main_uncheck.xml
Normal file
10
app/src/main/res/drawable/main_uncheck.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M3.468,8.241C3,9.093 3,10.123 3,12.183V13.552C3,17.063 3,18.818 4.055,19.909C5.109,21 6.806,21 10.2,21H13.8C17.194,21 18.891,21 19.945,19.909C21,18.818 21,17.063 21,13.552V12.184C21,10.123 21,9.094 20.532,8.241C20.066,7.387 19.212,6.857 17.504,5.797L15.704,4.68C13.9,3.56 12.997,3 12,3C11.003,3 10.101,3.56 8.296,4.68L6.496,5.797C4.788,6.857 3.935,7.387 3.468,8.241ZM11.325,17.4C11.325,17.579 11.396,17.751 11.523,17.877C11.649,18.004 11.821,18.075 12,18.075C12.179,18.075 12.351,18.004 12.477,17.877C12.604,17.751 12.675,17.579 12.675,17.4V14.7C12.675,14.521 12.604,14.349 12.477,14.223C12.351,14.096 12.179,14.025 12,14.025C11.821,14.025 11.649,14.096 11.523,14.223C11.396,14.349 11.325,14.521 11.325,14.7V17.4Z"
|
||||
android:fillColor="#CFCFCF"
|
||||
android:fillType="evenOdd"/>
|
||||
</vector>
|
||||
8
app/src/main/res/drawable/setting_cons_bg.xml
Normal file
8
app/src/main/res/drawable/setting_cons_bg.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@color/solid_color" />
|
||||
<corners android:radius="6dp" />
|
||||
</shape>
|
||||
211
app/src/main/res/layout/activity_setting.xml
Normal file
211
app/src/main/res/layout/activity_setting.xml
Normal file
@ -0,0 +1,211 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/activity_setting"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".activity.SettingActivity">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/setting_back"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginStart="24dp"
|
||||
android:background="@drawable/icon_back"
|
||||
app:layout_constraintBottom_toBottomOf="@id/setting_title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/setting_title" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/setting_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/setting_title"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="26sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/privacy"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="20dp"
|
||||
android:background="@drawable/setting_cons_bg"
|
||||
android:padding="12dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/setting_title">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:text="@string/privacy_text"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/privacy_image"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/privacy_image"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:src="@drawable/icon_privacy"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:src="@drawable/icon_go"
|
||||
app:layout_constraintBottom_toBottomOf="@id/privacy_image"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/privacy_image" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/share"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="20dp"
|
||||
android:background="@drawable/setting_cons_bg"
|
||||
android:padding="12dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/privacy">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:text="@string/share_text"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/share_image"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/share_image"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:src="@drawable/icon_share"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:src="@drawable/icon_go"
|
||||
app:layout_constraintBottom_toBottomOf="@id/share_image"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/share_image" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/rate"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="20dp"
|
||||
android:background="@drawable/setting_cons_bg"
|
||||
android:padding="12dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/share">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:text="@string/rate_text"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/rate_image"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/rate_image"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:src="@drawable/icon_rate"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:src="@drawable/icon_go"
|
||||
app:layout_constraintBottom_toBottomOf="@id/rate_image"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/rate_image" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/version"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="20dp"
|
||||
android:background="@drawable/setting_cons_bg"
|
||||
android:padding="12dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/rate">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:text="@string/version_text"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/version_image"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/version_image"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:src="@drawable/icon_version"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/version_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@ -2,9 +2,9 @@
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/activity_splash"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/activity_splash"
|
||||
tools:context=".activity.SplashActivity">
|
||||
|
||||
|
||||
@ -38,11 +38,11 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/logo" />
|
||||
|
||||
<ProgressBar
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:indeterminateTint="@color/black"
|
||||
<com.tool.minimalistwallpaper.tools.CustomProgressBar
|
||||
android:id="@+id/splash_pg"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginTop="60dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/text" />
|
||||
|
||||
13
app/src/main/res/layout/activity_web.xml
Normal file
13
app/src/main/res/layout/activity_web.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/activity_web"
|
||||
tools:context=".activity.WebActivity">
|
||||
<WebView
|
||||
android:id="@+id/web"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@ -21,7 +21,7 @@
|
||||
android:layout_marginStart="20dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="24sp"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
||||
134
app/src/main/res/layout/dialog.xml
Normal file
134
app/src/main/res/layout/dialog.xml
Normal file
@ -0,0 +1,134 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="280dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/dialog_bg">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dialog_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:text="@string/dialog_title"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="20sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/dialog_home"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="24dp"
|
||||
android:background="@drawable/setting_cons_bg"
|
||||
android:padding="12dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/dialog_title">
|
||||
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/home_pg"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:indeterminateTint="@color/black"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/home_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/home_text"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/dialog_lock"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="24dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:background="@drawable/setting_cons_bg"
|
||||
android:padding="12dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/dialog_home">
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/lock_pg"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:indeterminateTint="@color/black"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lock_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/lock_text"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/dialog_both"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="24dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:background="@drawable/setting_cons_bg"
|
||||
android:padding="12dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/dialog_lock">
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/both_pg"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:indeterminateTint="@color/black"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/both_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/both_text"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@ -13,7 +13,7 @@
|
||||
android:layout_marginTop="6dp"
|
||||
android:text="@string/category"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="24sp"
|
||||
android:textSize="20sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/like_title"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="24sp"
|
||||
android:textSize="20sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
@ -33,7 +33,7 @@
|
||||
android:gravity="center"
|
||||
android:text="@string/nolike_tips"
|
||||
android:textColor="@color/gray"
|
||||
android:textSize="16sp"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@ -13,11 +13,23 @@
|
||||
android:layout_marginTop="6dp"
|
||||
android:text="@string/app_name"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="24sp"
|
||||
android:textSize="20sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:layout_marginTop="4dp"
|
||||
android:id="@+id/setting"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="20dp"
|
||||
android:src="@drawable/icon_menu"
|
||||
app:layout_constraintBottom_toBottomOf="@id/main_title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/main_title" />
|
||||
|
||||
<com.youth.banner.Banner
|
||||
android:id="@+id/banner"
|
||||
android:layout_width="match_parent"
|
||||
@ -36,7 +48,7 @@
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="17dp"
|
||||
android:text="@string/main_recommend"
|
||||
android:textSize="20sp"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/banner" />
|
||||
|
||||
|
||||
@ -4,4 +4,5 @@
|
||||
<color name="white">#FFFFFFFF</color>
|
||||
<color name="gray">#ffaaaaaa</color>
|
||||
<color name="load_bg">#D9D9D9</color>
|
||||
<color name="solid_color">#ABABAB</color>
|
||||
</resources>
|
||||
@ -10,4 +10,14 @@
|
||||
<string name="category">Category</string>
|
||||
<string name="set_successful">Wallpaper settings successful</string>
|
||||
<string name="set_failed">Failed to set wallpaper</string>
|
||||
<string name="setting_title">Settings</string>
|
||||
<string name="privacy_text">Privacy Policy</string>
|
||||
<string name="share_text">Share</string>
|
||||
<string name="rate_text">Rate</string>
|
||||
<string name="version_text">Version</string>
|
||||
<string name="share_title">Here is a Minimalist Wallpaper</string>
|
||||
<string name="dialog_title">Set as wallpaper</string>
|
||||
<string name="home_text">Home Screen</string>
|
||||
<string name="lock_text">Lock Screen</string>
|
||||
<string name="both_text">Both</string>
|
||||
</resources>
|
||||
Loading…
Reference in New Issue
Block a user