3 Replies - 623 Views - Last Post: 30 November 2017 - 11:43 PM

#1 archana1995   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 30-November 17

android devices are showing images of same size.please help

Posted 30 November 2017 - 04:33 AM

I have different sized images in drawable folder its picking up images of different resolutions but the image size is same in all the android devices.Why is it so?
Is This A Good Question/Topic? 0
  • +

Replies To: android devices are showing images of same size.please help

#2 Radius Nightly   User is offline

  • D.I.C Regular

Reputation: 33
  • View blog
  • Posts: 291
  • Joined: 07-May 15

Re: android devices are showing images of same size.please help

Posted 30 November 2017 - 01:03 PM

Code, Android version, anything?
Was This Post Helpful? 0
  • +
  • -

#3 archana1995   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 30-November 17

Re: android devices are showing images of same size.please help

Posted 30 November 2017 - 11:36 PM

View PostRadius Nightly, on 30 November 2017 - 01:03 PM, said:

Code, Android version, anything?

android studio 3.0

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">

<item android:drawable="@color/colorPrimary" />

<item>
<bitmap
android:gravity="center"
android:src="@mipmap/new_pic" />
</item>

</layer-list>


This is the code.'new_pic ' is my image.I have placed it in different drawable folders.(like drawable-hdpi,drawable-mdpi etc).Its picking that images of different sizes but in the android devices its appearing as small size.Please help.
Was This Post Helpful? 0
  • +
  • -

#4 archana1995   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 30-November 17

Re: android devices are showing images of same size.please help

Posted 30 November 2017 - 11:43 PM

View Postarchana1995, on 30 November 2017 - 11:36 PM, said:

View PostRadius Nightly, on 30 November 2017 - 01:03 PM, said:

Code, Android version, anything?

android studio 3.0

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">

<item android:drawable="@color/colorPrimary" />

<item>
<bitmap
android:gravity="center"
android:src="@drawable/new_pic" />
</item>

</layer-list>

This is the code.'new_pic ' is my image.I have placed it in different drawable folders.(like drawable-hdpi,drawable-mdpi etc).Its picking that images of different sizes but in the android devices its appearing as small size.Please help.

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1