更新了Android项目的配置文件和代码,包括图标、权限和布局等。
This commit is contained in:
parent
17193d559c
commit
6fa059636a
15
.idea/deploymentTargetDropDown.xml
generated
15
.idea/deploymentTargetDropDown.xml
generated
@ -3,7 +3,20 @@
|
||||
<component name="deploymentTargetDropDown">
|
||||
<value>
|
||||
<entry key="app">
|
||||
<State />
|
||||
<State>
|
||||
<targetSelectedWithDropDown>
|
||||
<Target>
|
||||
<type value="QUICK_BOOT_TARGET" />
|
||||
<deviceKey>
|
||||
<Key>
|
||||
<type value="VIRTUAL_DEVICE_PATH" />
|
||||
<value value="D:\Android\.android\avd\Pixel_8_API_34.avd" />
|
||||
</Key>
|
||||
</deviceKey>
|
||||
</Target>
|
||||
</targetSelectedWithDropDown>
|
||||
<timeTargetWasSelectedWithDropDown value="2024-04-11T09:43:07.929196100Z" />
|
||||
</State>
|
||||
</entry>
|
||||
</value>
|
||||
</component>
|
||||
|
||||
@ -7,17 +7,17 @@ android {
|
||||
namespace 'com.timber.soft.myemoticon'
|
||||
compileSdk 34
|
||||
|
||||
signingConfigs {
|
||||
debug {
|
||||
storeFile file('D:\\Android_Files\\MyEmoticon\\info\\key_emoticon_test.jks')
|
||||
storePassword 'key123'
|
||||
keyPassword 'key123'
|
||||
keyAlias 'key_emoticon'
|
||||
}
|
||||
}
|
||||
// signingConfigs {
|
||||
// debug {
|
||||
// storeFile file('D:\\Android_Files\\MyEmoticon\\info\\key_emoticon_test.jks')
|
||||
// storePassword 'key123'
|
||||
// keyPassword 'key123'
|
||||
// keyAlias 'key_emoticon'
|
||||
// }
|
||||
// }
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.stickify.stickers.app.test"
|
||||
applicationId "com.stickify.stickers.app"
|
||||
minSdk 22
|
||||
targetSdk 34
|
||||
versionCode 1
|
||||
@ -64,5 +64,4 @@ dependencies {
|
||||
implementation 'com.github.bumptech.glide:glide:4.12.0'
|
||||
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
|
||||
|
||||
|
||||
}
|
||||
@ -8,9 +8,9 @@
|
||||
android:allowBackup="true"
|
||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||
android:fullBackupContent="@xml/backup_rules"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:icon="@mipmap/icon_logo"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:roundIcon="@mipmap/icon_logo"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.MyEmoticon"
|
||||
tools:targetApi="31">
|
||||
@ -30,7 +30,7 @@
|
||||
|
||||
<provider
|
||||
android:name=".StickerProvider"
|
||||
android:authorities="com.stickify.stickers.app.test.StickerProvider"
|
||||
android:authorities="com.stickify.stickers.app.StickerProvider"
|
||||
android:enabled="true"
|
||||
android:exported="true"
|
||||
android:readPermission="com.whatsapp.sticker.READ" />
|
||||
|
||||
@ -11,6 +11,7 @@ import android.os.Bundle
|
||||
import android.util.TypedValue
|
||||
import android.view.Gravity
|
||||
import android.view.View
|
||||
import android.view.Window
|
||||
import android.widget.TextView
|
||||
import androidx.annotation.RequiresApi
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
@ -63,7 +64,7 @@ class MainActivity : AppCompatActivity() {
|
||||
binding.btMenu.setOnClickListener() {
|
||||
binding.drawerRoot.openDrawer(GravityCompat.START)
|
||||
}
|
||||
|
||||
|
||||
binding.drawerRoot.addDrawerListener(object : DrawerLayout.DrawerListener {
|
||||
override fun onDrawerSlide(drawerView: View, slideOffset: Float) {
|
||||
}
|
||||
|
||||
@ -38,10 +38,13 @@ object AppTools {
|
||||
fun dpCovertPx(context: Context): Int {
|
||||
// 获取当前设备的屏幕密度,并赋值给变量 scale
|
||||
var result = 0
|
||||
// 获取状态栏高度的资源ID,赋值给变量 resourceId
|
||||
val resourceId = context.resources.getIdentifier("status_bar_height", "dimen", "android")
|
||||
// 如果资源ID大于0,则获取状态栏的高度并赋值给变量 result
|
||||
if (resourceId > 0) {
|
||||
result = context.resources.getDimensionPixelSize(resourceId)
|
||||
}
|
||||
// 返回结果
|
||||
return result
|
||||
}
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package com.timber.soft.myemoticon.tools
|
||||
|
||||
object AppVal {
|
||||
const val AUTHOR = "com.stickify.stickers.app.test.StickerProvider"
|
||||
const val AUTHOR = "com.stickify.stickers.app.StickerProvider"
|
||||
const val STICKER_ACTION = "com.whatsapp.intent.action.ENABLE_STICKER_PACK"
|
||||
const val KEY_PACK_ID = "sticker_pack_id"
|
||||
const val KEY_PACK_AUTHORITY = "sticker_pack_authority"
|
||||
|
||||
@ -50,6 +50,7 @@
|
||||
android:layout_height="0dp"
|
||||
android:background="@color/main_bg_color"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingTop="6dp"
|
||||
android:paddingEnd="12dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/app_bar"
|
||||
|
||||
@ -94,7 +94,7 @@
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@mipmap/ic_launcher_round" />
|
||||
android:src="@mipmap/icon_logo" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<!--AppName-->
|
||||
|
||||
BIN
app/src/main/res/mipmap-xxxhdpi/icon_logo.png
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/icon_logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 724 KiB |
Loading…
Reference in New Issue
Block a user