android - What type of operation I'm missing..? -


i read android studio documentation: https://developer.android.com/guide/practices/screens_support.html#declaringtabletlayouts

well documentation pretty obvious, support different screens. use match_parent, wrap_content, create layout-sw folders.. hmm, eazy task.. yep, made 5 layout-sw300dp-700dp folders, every layout owns match-parent , wrap content characteristic.. somehow image isn't getting scaled , want scale image in 1 of linearlayouts..

i know theres lot of answer out there on forum, can see not confusing me, i'm sure i'm missing important end screen support..

should create different size images , place them in drawable folder?

because whenever i'm reviewing layout file example sw600dp image isnt scaled there.. layouts aren't getting scaled..

should configure every layout-sw folders? mean place bigger image, resize layouts.

i need fill linearlayout image. there's white spaces on left , right side of linearlayout

the code belongs relativelayout, has match-parents aswell.

 <textview     android:id="@+id/textview2"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:layout_alignparenttop="true"     android:layout_centerhorizontal="true"     android:gravity="center"     android:padding="15dp"     android:text="this random text"     android:textcolor="#000000"     android:textsize="30sp"     app:layout_constraintbottom_tobottomof="parent"     app:layout_constrainthorizontal_bias="0.39"     app:layout_constraintleft_toleftof="parent"     app:layout_constraintright_torightof="parent"> </textview>  <linearlayout     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:orientation="vertical"     android:padding="50dp"     android:id="@+id/linearlayout"     android:layout_above="@+id/linearlayout2"     android:layout_alignparentend="true"> </linearlayout>  <linearlayout     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:orientation="vertical"     android:padding="50dp"     android:id="@+id/linearlayout2"     android:layout_above="@+id/linearlayout4"     android:layout_alignparentstart="true"     android:layout_margintop="15dp"> </linearlayout>  <linearlayout     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:orientation="vertical"     android:padding="50dp"     android:layout_margintop="15dp"     android:id="@+id/linearlayout4"     android:layout_above="@+id/linearlayout5"     android:layout_alignparentstart="true">  </linearlayout>  <linearlayout     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:orientation="horizontal"     android:layout_alignparentbottom="true"     android:layout_alignparentend="true"     android:layout_margintop="15dp"     android:id="@+id/linearlayout5"     android:gravity="fill">      <imageview         android:id="@+id/imageview2"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:src="@drawable/info1"         android:layout_gravity="fill_horizontal"         android:contentdescription="" /> </linearlayout> 


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -