Logo optimization

This commit is contained in:
Hardcore Sushi 2020-07-19 19:42:59 +02:00
parent bfe7e88578
commit 2e4c432976
4 changed files with 5 additions and 4 deletions

View File

@ -9,8 +9,8 @@
<application
android:name=".ColoredApplication"
android:allowBackup="true"
android:icon="@drawable/logo"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">

View File

@ -12,6 +12,7 @@ import android.view.*
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.preference.PreferenceManager
import com.bumptech.glide.Glide
import kotlinx.android.synthetic.main.activity_main.*
import kotlinx.android.synthetic.main.toolbar.*
import sushi.hardcore.droidfs.widgets.ColoredAlertDialog
@ -61,6 +62,7 @@ class MainActivity : AppCompatActivity() {
val metrics = DisplayMetrics()
windowManager.defaultDisplay.getMetrics(metrics)
image_logo.layoutParams.height = (metrics.heightPixels/2.2).toInt()
Glide.with(this).load(R.drawable.logo).into(image_logo)
}
override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: IntArray) {

View File

@ -21,8 +21,7 @@
android:id="@+id/image_logo"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="20dp"
android:src="@drawable/logo" />
android:layout_margin="20dp"/>
<LinearLayout
android:layout_width="match_parent"

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB