forked from hardcoresushi/DroidFS
Logo optimization
This commit is contained in:
parent
bfe7e88578
commit
2e4c432976
@ -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">
|
||||
|
@ -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) {
|
||||
|
@ -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
Normal file
BIN
app/src/main/res/mipmap/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
Loading…
Reference in New Issue
Block a user