Questions tagged as 'android-layout'

2
answers

AlertDialog Custom Layout - NullPointerException error

Talk about beauty? So, I tried to create a custom Aler Dialog, but every time I try to save it, it gives a NullPointerException error, but I do not know what the cause is. The code for the method that Alert has is this: Button btnAlertDataCons...
asked by 29.12.2017 / 20:34
1
answer

Problems trying to change a text view of nav_header_main.xml

I am working for the first time with the Navigation Drawer Activity, and would like to change (by java) the text that appears in the menu nav_header_main.xml Inredit'sthetextthatIwanttochange.Belowisthexmlautomaticallygeneratedbyandroidstudi...
asked by 17.11.2017 / 01:08
1
answer

How to change the width and height of a RelativeLayout by Java code

I want to know how I adjust the width and height values of each relative layout independently of my XML through the respective Java class. I already know how to adjust the width, height and other parameters of the buttons present in my layout th...
asked by 31.10.2017 / 16:40
1
answer

Can the user change colors of the compiled application?

I'm thinking of creating an app where the user can change their Layout colors as they want with pre-defined colors, but I can not think of a way to do that, if at all possible. Does anyone know something similar?     
asked by 27.09.2017 / 00:42
1
answer

Positioning Android GridLayout images

UPDATE I'm developing a mobile application, using the gridLayout and would like to leave one image next to the other, in case the imageView1 on the imageView2 side, below imageViem3 next to the imageView4 but now image imageView2, imageView3,...
asked by 21.08.2017 / 21:00
1
answer

java.lang.UnsupportedOperationException: Can not convert to dimension: type = 0x12

<?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.androi...
asked by 04.08.2017 / 17:10
1
answer

How to create a CardView equal to Google Play

Good morning, I'm trying to create a layout just like Google Play, but I'm not sure how to do the design. Could you help me? link XML code link link     
asked by 03.08.2017 / 17:02
1
answer

Add content to a listview (Android)

Live community .. I was trying to develop an android application that receives JSON data, and wanted to re-take advantage of some of that specific JSON data to add to an Android listView. I started by creating a layout called activity_list_se...
asked by 18.08.2017 / 23:50
1
answer

Space between image and content Android studio

I'm developing a mobile application using android studio 2.2.2 and wanted to leave my application with that look. ButIcannot,byputtingtheimageitgetsaspacebetweentheimageandtheTextViewfromaboveandbelow. <?xmlversion="1.0" encoding="utf-8"?...
asked by 20.08.2017 / 01:42
1
answer

Change the DrawableLeft property of a TextView

I have a SimpleAdapter that I use in a listview to show data that comes from the database. Follow the code below Map<String, String> map; for(int i = 0;i < buscaCombustivel.getCount();i++) { map = new HashMap<String, String>...
asked by 03.07.2017 / 17:09