Questions tagged as 'android-layout'

2
answers

How to finish Android App layout?

How to customize the layout of an Android application. I have seen Apps so well finished and wanted to learn how to give such refinement to my Apps. The App Toshi Finance is a good example of what I I'm talking.     
asked by 01.02.2014 / 13:44
3
answers

How to set the size of layout buttons in version 2.2

For example if I have a LinearLayout that occupies all the space horizontally, if I have two buttons, for each one occupy half the screen, how do I? GridLayout does not work in 2.2 right?     
asked by 23.02.2014 / 20:37
3
answers

How to convert pixel to dp?

I made an application that is a form, and I did everything via code without using xml, so my textViews and Edittexts stayed in pixels. On the tablet it works fine, but on the mobile with a lower resolution, everything is "encavalado".     
asked by 04.11.2015 / 15:44
1
answer

Error customizing a menu using actionLayout

I was using to customize my menu items the actionLayout attribute but, the following error occurred: Layoutmenu_item.xml:<?xmlversion="1.0" encoding="utf-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android"...
asked by 20.10.2014 / 13:34
2
answers

Split a layout into 2 with different percentages

I wanted to know how I'd do to split a layout into 2 with 70/30 percent. I've got a way to split, but that way is not optimized for all devices.     
asked by 27.02.2018 / 17:51
2
answers

Help in spacing between EditText

I can not give a space between EditTexts in my project. the amount of EditTExts is generated according to the amount entered by the user, that is, it has been programmed in the Java Code. : //i.stack.imgur.com/lfOAW.png ">     
asked by 29.10.2017 / 22:13
2
answers

LinearLayout About Other LinearLayout

I have a layout in Android Studio that I would like to have on another layout, but I can not do it in any way. I would like it to stay on top as it is a menu that appears when someone presses the swap image button. Layout: <android.supp...
asked by 15.09.2016 / 19:24
1
answer

Force keyboard opening

I have this dialog in my application public void alertaLocalizar(View v) { LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); View view = inflater.inflate(R.layout.alerta_comum, null); D...
asked by 13.06.2016 / 21:07
1
answer

How to properly position a piece of View created in Java?

After loading my View , if the user clicks the button then a menu appears on the front as shown in the image: ThetopmostlayerofthismenuisFrameLayout,IwouldliketoleaveitwithGravityRIGHTandBOTTOM,butIdonotknowhowtopassthesefeaturesto...
asked by 17.03.2017 / 15:41
2
answers

layout problems in Android Studio

I have a small problem with my layout looks like this in Android Studio and how it stays on avd: XMlcode:<TextViewandroid:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/text...
asked by 27.11.2015 / 00:25