android - ImageView layout -



android - ImageView layout -

essentially i'm looking scaletype="centercrop" without center.

i having problem making imageview display correctly when it's larger screen dimensions. i'm trying display imageview starts top=0, left=0 , not scaled. it's okay image not fit on screen. right have in relative layout:

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/postagram_blank_large"/> </relativelayout>

i've tried using wrap_content on relativelayout height , width. i've played scaletype using scrollview. problem scrollview image both taller , wider display port (again meant happen).

how can create work?

could android:background scales image screensize? seek utilize android:src instead.

android android-layout android-imageview

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

How do you set up a perforce server to work over the internet? -

ios - Lagging ScrollView with UIWebview inside -