2
I would like to know how to shorten or increase the text of ListView
.
In the TextView
there is the property android:textsize="15";
, which property would be equivalent to textsize
in the ListView
?
I have a lot of information to put in it and so put one textsize
smaller would solve my problem .
<ListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/ltsunidades"
android:layout_below="@+id/txtselunidade"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_above="@+id/btnsairmenu"
android:layout_alignRight="@+id/txtselunidade"
android:layout_alignEnd="@+id/txtselunidade"
android:textsize=???
/>
The property above android:textsize
does not work in the ListView
.
Recommend revise your question, especially the first sentence that is confused. In addition, I recommend explaining the problem a little better and putting more tags so that people know what the question is about without having to enter it. I believe it’s about development
Android
, right? Put at least the tag#android
in the question.– Daniel Dutra
I reiterate what @Danieldutra said, your question is very confusing and in need of editing. If I can figure something out, you want to shorten the text of every item on the listview, right? If so, you have to add this "android:textsize" attribute to the <Textview> used in the layout of the items. Please confirm that this is your question that I try to explain better in a more detailed answer.
– Tássio Auad
not I have a listview that will receive a lot of information... I just wish I could decrease the source of listview .. probably it has a default android size... I just wanted to decrease this font.. sorry if I couldn’t get through what I really want.. and that in editext or textview I can change the font size by increasing or decreasing it .. but in listview there is no such option.
– Tiago
From what I understand I think
ListView
is basically a list ofTextView
, this way you need to change the text size of theTextView
used byListView
.– Daniel Dutra