Questions tagged as 'android-layout'

1
answer

How to create a divider between views?

I'm creating an app that uses ListView to show items and wanted to know the best and most personalized way to create splitters between them, I also wanted to know how to use another divider between two icons, which are the options that st...
asked by 13.11.2017 / 20:04
1
answer

How to change StatusBar color

I'm trying to change the colors of my StatusBar, but when I try to change the colorPrimaryDark (first bar, where the battery is, time, etc ...) the color does not change. I created an xml with the values of the colors used colors.xml <...
asked by 18.10.2017 / 02:03
1
answer

When should I use ConstraintLayout?

In addition to RelativeLayout , FrameLayout , LinearLayout , TableLayout , among others already existing, that greatly meet the needs related to layout , Google announced Google I / O 2016 or ConstraintLayout "....
asked by 26.03.2017 / 03:00
1
answer

Dotted / Dashed Line

I'm trying to create a split line in my App as shown below. Drawable / dotted.xml : <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <stroke...
asked by 11.05.2017 / 13:22
2
answers

Layout with listview doubts

I'm facing a layout problem, in this layout I have a ListView and then I have 3 more buttons, but when the list is too large, it uses the whole size of the screen and I can not see the buttons, can anyone help me? How the layout is: <?...
asked by 02.12.2016 / 18:23
1
answer

Images on different types of screen

At this moment I have these layout's to support the different screen sizes When I test the app on 4-inch or 4.5-inch devices, both will use the activity_main.xml layout that corresponds to the normal size but repair that on the 4...
asked by 06.02.2017 / 20:29
2
answers

Full Screen Layout

I'm working on a project where I have a screen that contains some elements separated by different layout types. All of these elements needed to be grouped within a single LinearLayout so that I could "envelop" them in a ScrollView ....
asked by 15.11.2016 / 01:13
1
answer

Layout does not occupy full screen

I'm putting together a layout and the layout is not occupying the entire screen. I have tried it in many ways, but it is never possible for it to occupy, so everything I need is not fit. Problem happens when placing the scrollview, is it poss...
asked by 13.01.2017 / 23:09
1
answer

SearchView custom

I need to do a searchView like this: I need to put the white icon and hint as well.     
asked by 16.09.2016 / 16:40
1
answer

Change ListView color by selecting [duplicate]

How can I change the color of a listView when selecting? Here are the steps in my project: listDebitosPendentes.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemC...
asked by 25.11.2016 / 14:46