Leave listview item by filling the entire screen

Asked

Viewed 55 times

0

It has to leave an item of a Listview taking the whole screen of the cell phone?

  • For "full screen" you want the Action bar and Botton bar to disappear?

  • No, I want a fill_parent

  • A question: for which one ListView for that reason?

  • I want to have a basis for something I’m thinking about, but if there’s no way it’s okay

1 answer

0

Let the layout_width and layout_height setados with math_parent.

In Activity xml delete the following lines of code:

android:paddingBottom="16dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="16dp"

OR replace the 16dp of each line with 0dp, thus:

android:paddingBottom="0dp"
android:paddingLeft="0dp"
android:paddingRight="0dp"
android:paddingTop="0dp"

In Styles.xml (app>res>values>Styles.xml) you modify the line <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> for <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.