If I have an imageview on my app, here's the code
<ImageView
android:id="@+id/imageView5"
android:layout_width="300px"
android:layout_height="90px"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true" />
And I want to put the company logo in that image view (the logo is 300px by 90px)
I know I have to import that in as a drawable (right click on drawable -> new image asset), but it is only giving me options for icons that are square, which won't work for this logo.
How do I go about putting a rectangular image into my app.
You don't have to import it with the IDE, you can just paste your logo "your_logo.png" on the drawable folder, then you can acces it by adding :
android:src="@drawable/your_logo"
to your ImageView