Questions tagged as 'android-layout'

1
answer

Change color text main menu android?

I want to change the text color of a item that groups a menu . The xml is: <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"> <group android:checkableBeh...
asked by 26.06.2017 / 13:54
1
answer

Merge circle with an icon on Android

To create a circular icon based on the vector icons of Android Studio, I do the following: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <...
asked by 16.03.2018 / 11:17
1
answer

How to implement the elevation property in api 19 and lower?

I'm doing a project in android studio and I want to use the property elevation for LinearLayout but as the app will also be directed to lower versions of the api 20     
asked by 24.12.2016 / 18:31
2
answers

Difference from? attr: with? android: attr / on Android

What is the difference between specifying values in the attributes using ?attr: or using ?android:attr/ For example to apply the color of the text as if it were a deactivated control (soft gray) Directly: android:textColor=...
asked by 02.11.2016 / 17:40
3
answers

Generate button board by code in Android Studio

I'm working on an android application and I need to create a board (made of buttons). I already generated the board from the code of my java class, but the problem is that the buttons go out of sight (they leave the screen). I have already tr...
asked by 08.09.2016 / 21:08
1
answer

EditText onEditorAction

I'm making an application where I enter the user code by means of a manual scanner, I need to trigger an event just when the EditText receives the barcode data. Deactivate the option to receive data through the keyboard so it is not di...
asked by 11.04.2016 / 19:04
1
answer

Switch from Adapter (List to Grid) during execution in a RecyclerView

Currently I have a screen where he shows me a list of objects, for this I created a ListAdapter that I will add to my RecyclerView . I would like that when I press a button, the view changes to grid mode, using GridAdapter . S...
asked by 19.09.2016 / 10:59
1
answer

Configure the android emulator with proxy

Good mates I'm trying to emulate some services in the studio emulator but the network I'm connected to contains proxy and I would like to know how to configure ... I have android studio 2.1.2 I already tried placing it in the emulator: Set...
asked by 16.11.2016 / 17:26
1
answer

Is it possible to add a LinearLayout in a ConstraintLayout or any other Layout?

I added a LinearLayout in a ConstraintLayout and I get the following errors: I would like to know if I added it wrong or if it is not possible.     
asked by 19.03.2017 / 04:04
2
answers

Help Navigation Drawer Android Studio

I have my pull-down menu with its respective items. But I would like to add to each item the TextView that is seen in the image that says PREMIERE. How can I add it? This is the image of how I am now:     
asked by 18.05.2016 / 18:45