Questions tagged as 'android-layout'

1
answer

How to make text scroll on android screen

I want to put a large text on a screen. But I have a small problem when reading more, the text is simply cut and can not scroll to continue reading. Does anyone tell me a method to do this? Example 1: Example2:     
asked by 07.03.2017 / 18:50
1
answer

How to reference a button in an xml from another Activty?

This is the error: java.lang.RuntimeException: Unable to start activity ComponentInfo {com.example.octupus.ramonteste / com.example.octupus.ramp.subject.projectAlumni.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual meth...
asked by 04.01.2017 / 02:48
1
answer

ImageButton placement in XML

I have an imagebutton in a relative layout. When I put the command: "android: layout_marginLeft=" It does what you want it to do (move away from the left border by x measure), but when I put it: "android: layout_marginRight=" nothing ha...
asked by 06.12.2016 / 22:21
1
answer

Error when implementing Facebook login button

I'm trying to implement a custom Facebook button for login. But the following error occurs:    C: \ bad_App \ bad_App \ bad_App \ app \ src \ main \ res \ layout \ activity_new_login.xml   Error: (117) No resource identifier found for attribu...
asked by 26.09.2016 / 16:06
1
answer

Landscape mode does not work

I have already done the layout for portrait mode and created the layout-land folder and pasted all the xml files I already have to be able to adjust. From what I read, just do this but it is not working, I removed several components from one of...
asked by 28.09.2016 / 00:19
2
answers

How to change the color of the floating button and insert text in it [closed]

I would like to change the color of the floating button and put a small text but I do not know how to do it could help me     
asked by 26.09.2016 / 22:38
1
answer

How to make an EditText Style Material Design?

Can anyone give me an idea of how I can do this plain text:     
asked by 17.10.2016 / 18:33
1
answer

Android RelativeLayout align items

I can not align the items in the third line marked in the image vertically by the center. This is a layout of items in a listView. I've tried gravity="center", layout_gravity="center", layout_centerVertical="true". Would not you like to us...
asked by 11.09.2016 / 23:28
1
answer

ScrollView with RelativeLayout

How do I RelativeLayout occupy the full height of the screen within ScrollView ? (I tried wrap_contet but as I have AdMob ad it gives an error with the button) Code: <?xml version="1.0" encoding="utf-8"?> <Scrol...
asked by 20.08.2016 / 18:15
1
answer

Change the font through xml

I have the sources of my application in:    main > assets > fonts Is there any way to pass directly in xml? (% with%) Or just via Java?     
asked by 04.06.2016 / 23:37