1
I wanted the items from ListView
appear with a responsive size at different screen resolution, how do I?
Because I set a size of images and text, which gets big on small devices
Listview items:
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:padding="5sp">
<ImageView
android:id="@+id/imagemview"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_marginLeft="5sp"
/>
<TextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="20dp"
android:layout_marginLeft="25sp"
android:textStyle="bold"
android:gravity="center_vertical"
android:textColor="#FF000000"
/>
</LinearLayout>
How do I open normal on different sizes of screens?
To leave responsive can use the weightSum
– Jorge B.
Code is missing?
– rsicarelli
The basic rule is to involve each Linearlayout in a Framelayout.
– Lollipop
match_parenrt does this, aligns according to your screen, put your complete layout.
– Wellington Avelino