Questions tagged as 'android-layout'

1
answer

What is the content_main.xml file for?

I'm starting to study Android using the Android Studio tool and I have a problem: even though I search for books or video lessons I never find one that is up to date. I have version 1.5.1, and when creating a project two XML files are created...
asked by 28.03.2016 / 00:57
0
answers

Eclipse project error: "no resource round that Marches The given name"

I have created a project in eclipse but I have cleared it in MainActivity.java, in class R, in the res > values > styles folder.    Error: no resource round that Marches The given name 'Theme.AppCompat.Light.DarkActionBar'.     
asked by 19.07.2015 / 01:34
1
answer

CardView in API 10

With normal background: SwitchingtoanothercolordisplaysalinebelowtheTextView: xml:<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match...
asked by 23.08.2015 / 07:01
1
answer

How to put the percentage of the weight of 2 Edittext fields via code without using xml?

I have two EdiText fields, name and age I need the name field to get 70% of the line and age at 30%, in xml it's easy to solve this, but in Java code I'm not getting it, does anyone know how to do it? Thank you in advance! I'm using this code...
asked by 14.09.2015 / 21:24
0
answers

Set position of RelativeLayout in Activity

Good afternoon. I want to set the position of two RelativeLayout on the screen, but when the user changes the text of TextSwitcher and RelativeLayout to which it belongs increases in size, so the Jump button is moving up...
asked by 15.08.2015 / 19:59
0
answers

Null Pointer Android

When you run the application, this Adapter error appears: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup)' on a null object reference. So t...
asked by 29.05.2015 / 09:31
0
answers

Activity with bug that is breaking the layout

There is an Activity that gives a bug from time to time, it looks like the image I posted, then when I click on it, it returns to normal, but this is random, there is no time. Followthecode:<?xmlversion="1.0" encoding="utf-8"?> <Line...
asked by 19.03.2015 / 01:27
1
answer

Android Problems with R [duplicate]

All Layouts in my project are not accepting calls in Android Studio. What can I do?     
asked by 30.04.2015 / 13:56
1
answer

List View and Normal Layout in an Activity

Hello, I want a screen to have a button, and below that button, a list with several items. But it turns out the buttons are multiplied. See: activity.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http:/...
asked by 07.02.2015 / 05:02
0
answers

ImageView Android Responsive for all devices

I have an ImageView and the problem is as follows: On smaller screens the image becomes too large; On larger screens, it gets very small. I have already made the folders hdpi , xhdpi and similar, but it did not help, I was won...
asked by 04.03.2015 / 17:14