Questions tagged as 'android-layout'

1
answer

How to play a layout component up? [duplicate]

Good afternoon I'm doing an app for studies, and I'm encountering a little problem is not a bug, but come on, this is my home screen: As it is in the print below, I have a relative layout that has 1 note with its edittext and weight with it...
asked by 04.01.2017 / 16:57
2
answers

Color Spinner ProgressDialog - Android

How do I change the default color of ProgressDialog (Spinner) in android? Here is the code I'm using: ProgressDialog progress = new ProgressDialog(this); progress.setTitle("Título); progress.setMessage("Mensagem"); prog...
asked by 29.03.2016 / 20:01
1
answer

ActionBar Color

I would like to know how I can change the color of ActionBar dynamically? I've tried to get it for getSupportActionBar but I could not.     
asked by 09.01.2016 / 21:07
1
answer

How to know the value that "MATCH_PARENT" will have when the view is drawn?

I'm using this code: LayoutParams par = new LayoutParams(40, LayoutParams.MATCH_PARENT); The second paramentitro, LayoutParams.MATCH_PARENT representing the height is the size of a horizontal layout I created. In the first parameter...
asked by 18.11.2015 / 14:23
1
answer

Working with RadioButton and RadioGroup

I'm trying to make a screen where the user would have to choose between the options in <RadioButton and if he chooses the right accounts to the right and otherwise to the wrong, having finished, after clicking "Reply" is equal in the p...
asked by 19.04.2016 / 05:19
1
answer

Change TextView from one tab to another in TabbedLayout

I'm using Tabbed Layout ("activity_carrinho"), and I have three separate fragments for each screen, product_product, client_clip, and fragment_payment. Since you needed the screens to remain intact as they passed between them, the total of the l...
asked by 27.11.2018 / 18:53
1
answer

How to use tabs with items within a same xml without using fragments?

I have an Activity where I will only need 2 tabs , one that will open right away telling a story using simple textview, and another about team members using gridview. I did not want to use fragments in this case, so I thought about putting...
asked by 30.03.2018 / 05:18
1
answer

Adjust ConstraintLayout

I'm trying to fit a layout using the new ConstraintLayout , but I'm not getting it, could you give me a help? below is my layout: <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"...
asked by 28.03.2018 / 19:55
2
answers

Component with same height

Is there a way to make a LinearLayout have the same height as a TextView? <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/blue"/>...
asked by 07.04.2018 / 17:49
1
answer

Why inflate a Layout in Fragments instead of setting one already ready? Ex: setContentView (R.layout.activity_example)

I'm learning about Android and would like to better understand how this part of the system works. Instead of inflating a layout, would not it be simpler to do as when creating an Activity, such as overwriting the onCreate method and setting u...
asked by 25.01.2018 / 01:04