Questions tagged as 'android-layout'

1
answer

Design material properties do not appear on API 19 apparatus

I've added the support library for APIs below 21 and am testing the elevation property on my components. In layout view, when I click on the design tab, I can see the elevation but when I run to my smartphone does not change anything,...
asked by 18.08.2016 / 22:55
1
answer

Change radio button color

I have an application that has black background. In one of the screens of the application I have a RadioButton . I need to change the color of this RadioButtom so that it appears on the screen. <android.support.v7.widget.AppCompatRadi...
asked by 02.09.2016 / 15:31
1
answer

How to change the background color of PopupMenu?

How to change the background color of PopupMenu and set the height of the shadow. The only result I had was setting the popupBackgound in styles.xml the problem is that it loses the shadow. minSdkVersion 16 Compatibility API style.xml &l...
asked by 24.10.2016 / 00:46
1
answer

Creating custom toolbar, action bar

I'm creating a separate toolbar to facilitate development I'm trying to make a simple toolbar but I can not do it. How I want to do: link My code: <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar xmlns...
asked by 15.10.2016 / 22:06
2
answers

Change the layout of buttons dynamically

I have two buttons on the screen, these are visible or not depending on the situation. There is a third situation, which should make the two visible, but it does not fit the screen. So I would like them to stay side by side, how to do this, in c...
asked by 23.01.2017 / 20:40
3
answers

List of questions, each question with a list of answers

I'm implementing a question and answer application. For my listing I'm using a RecyclerView where I load several CardViews (from loading a list). Each CardView shows one question. Below the question text I want to show my list of alternatives...
asked by 27.11.2015 / 20:56
1
answer

How to format text in a TextView?

I want to add formatted text (can be in html) on my TextView screen but I'm not getting it. I have the string in the values: <string name="lbl_explicacao"> <![CDATA[ <b> TESTE </b> TESTE...
asked by 17.11.2016 / 20:10
1
answer

How to add ellipsis if content leaks from Android layout?

How do I add ellipses if content leaks from the Android layout? For example: I have a very large text in my ActionBar , and instead of having to decrease it in size, I want it to add ellipsis if there is a layout leak, for example from "Firs...
asked by 04.06.2015 / 16:04
1
answer

Is it possible to create a Horizontal Android ListView?

Problem I need to implement a horizontal ListView to create a horizontal navigation bar on my Product Gallery in my Sales Catalog. With the intention of making the navigation more intuitive and easy on the part of the users. But t...
asked by 25.07.2014 / 14:33
1
answer

What better method to create forms in adroid? [closed]

I am creating a registration form, to add and edit records in SQL. I found a place that I meant to do through ScrollView , so the form has a scroll, and in my case it would be accurate, since the fields exceed the size of the screen....
asked by 06.09.2017 / 04:55