Questions tagged as 'android-layout'

2
answers

Error trying to start another activity through a button

My program runs, but when I click the q button it should open a new activity, the program closes saying that it hears an error.    FATAL EXCEPTION: main                                                                              Process: com...
asked by 06.01.2016 / 20:08
1
answer

Toolbar repeating

Hello, I have a problem, my toolbar is repeating every time I add a new registry. HowdoIsolveit?followthecodes:publicclassListarReportesextendsBaseActivity{Usuariousuario;RepositorioReporterepositorioReporte;RecyclerViewrecyclerView;ReportLi...
asked by 30.11.2015 / 21:33
2
answers

How to get data from a text displayed in the dialog

I'm using this library to display dialogs in my application: link With this library it is possible to display in the dialog a created layout, but I am not able to capture the user input in the setPositiveButton method. mMaterialDialog = n...
asked by 05.10.2015 / 17:48
1
answer

SnackBar with Action Button not aligned to text

Hello, I would like to know why my SnackBar does not get the text aligned along with the ActionButton , this happens only when the text is too long. I am putting a sample image. Do you know how I can get SnackBar to keep your content...
asked by 18.11.2015 / 01:40
1
answer

Parameters via xml for custom ImageView

I have% custom%, which will work as ImageView . On the screen, I will have several of this item, but different colors. I wonder if it is possible to pass a color parameter in the xml declaration. Example: <com.example.utils.S...
asked by 28.10.2015 / 12:41
2
answers

Leave a round photo like whatsapp

I started shortly in the Android development area. I'd like to know what feature I use in XML to make a rounded photo equal to a Whatsapp contact. I already use the rounded border for some images, creating a XML drawable with sha...
asked by 14.05.2015 / 16:35
1
answer

Android themes support on custom components using AppCompat-v7

I started using AppCompat-v7 for use the concept of Material Design in my project . But now I realized that my custom components even inheriting from native components are not applying themes like native components, for example: I have the...
asked by 10.04.2015 / 15:38
3
answers

Layout for all screen sizes [duplicate]

I started briefly with android and I had a big question. How do I make a layout to work on all screen sizes? As I researched, there are specific layout folders for each size. So how do I create these folders, since in Android Studio comes o...
asked by 14.07.2015 / 20:40
1
answer

Tabs on Android

I'm trying to implement a simple code just to show two tabs on Android and later add a content dividing into two activities, one to show examples with IF and another with SWITCH. I created the XML, where I can check without problems and I als...
asked by 27.12.2014 / 02:07
1
answer

Change the tab indicator color on Android

I have tried in many ways to change the color of what they call a "tab indicator", but without success ... Even using the "Android Action Bar Style Generator" the color of this indicator remains light blue. test http://nsae01.casimages.net/im...
asked by 11.09.2014 / 15:45