Browse Source

Logo optimization

master
Hardcore Sushi 1 year ago
parent
commit
2e4c432976
  1. 4
      app/src/main/AndroidManifest.xml
  2. 2
      app/src/main/java/sushi/hardcore/droidfs/MainActivity.kt
  3. 3
      app/src/main/res/layout/activity_main.xml
  4. BIN
      app/src/main/res/mipmap/ic_launcher.png

4
app/src/main/AndroidManifest.xml

@ -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">

2
app/src/main/java/sushi/hardcore/droidfs/MainActivity.kt

@ -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) {

3
app/src/main/res/layout/activity_main.xml

@ -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"

BIN
app/src/main/res/mipmap/ic_launcher.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Loading…
Cancel
Save