android-layout

BottomNavigationView bug

You need to make a" floating " BottomNavigationView. Nothing complicated, I did it in a couple of minutes, but ... In the And ... _host_fragment" app:menu="@menu/bottom_nav_menu" /> </androidx.constraintlayout.widget.ConstraintLayout>

Selecting Layout for the layout of widgets on the screen

I'm trying to make an application that will show at the top of the photo header (for beauty), then at the bottom of the Float ... drawable/ic_action_add" android:elevation="8dp" app:borderWidth="0dp" /> </RelativeLayout>

Drop-down menus

I need to implement this menu (only I will have it in the upper right corner): I think it's not spinner, it's more like po ... me="color">@android:color/white</item> </style> Ps. some inconvenient editor here, there is good old bbcode?

How to fix LinearLayout

There is a markup element for the ListView. On the left edge of the item there is a progress bar, and on the right there is ... android:layout_alignParentRight="true" android:layout_below="@+id/btnBuy" /> </RelativeLayout>

How do I tell TextView and EditText to always be at the bottom of the horizontal LinearLayout?

Inside LineaLayout there are two elements TextView and EditText. It is no longer known which of them will have the height. Li ... than TextView and then it is cut. UDP Not all the code was displayed because of the markup, I corrected it. UDP Added images

Weight is not observed in the TableLayout due to the large image on the button

There is a markup: <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/ap ... it without changing the background image of the button, so that all 3 rows have the same height, taking up the entire screen?

Question on 9-patch png

I need to make a shadow for a block of dynamic height and width, for this, as I understand it, the 9-path image is used, with ... images at different dpi? UPD Result: Background white only in the center, and the lower and upper borders are grayish...

Collapsing Toolbar Layout

How to make sure that the toolbar never scrolls, and the title field goes behind it and stops. To make it so: Layout ... et.CoordinatorLayout> <include layout="@layout/drawer_layout"/> </android.support.v4.widget.DrawerLayout>

CircleImageView

Good afternoon, please help me make a round ImageView.

FrameLayout with gravity=center?

Hello everyone Let's say I have a FrameLayout in which all View should be in the center. Which attribute FrameLayout will set all View to the center? So far, I set all child elements to android:layout_gravity="center" Is this the only way?

Inflate() method in Android

Can someone clearly explain the essence of the parameters of the inflater.inflate(int resource, ViewGroup root, boolean attac ... uite clear what the parent element is), and the second is responsible for attaching this element to the parent or what it is.

NestedScrollView won't scroll to the end

When scrolling through content where there is a lot of text NestedScrollView behaves strangely - it does not scroll to the en ... ; </android.support.v4.widget.NestedScrollView> </android.support.design.widget.CoordinatorLayout>

Error in rendering-class could not be found: android.support.v7.internal.app.WindowDecorActionBar

In My Project Android Studio is giving a rendering problem in xml, giving the following error: Rendering Problems the fo ... t;12dp</item> <item name="android:paddingRight">12dp</item> </style> How to fix this problem?

Split widget on screen

To wanting to split two widget inside the LayoutLinear , the two being TextView . If I use "orientation=" horizontal " ... ing ready measures as for example, the screen has 300px, dai determine that one will have 100px and the other 200px

How to change StatusBar color

I am trying to change the colors of my StatusBar, but when trying to change the colorPrimaryDark (first bar, where is battery ... orPrimaryDark, independent of the value entered does not change the color, always remains Black, could anyone help me please?

How to hide background images in Android studio apps?

I'm new to programming I'm programming an app in android studio that is practically ready. When I copy it on my Moto G2 with ... re in GIF format. I have no idea what the problem may be since it works in G2 and X1 no. If you can help me, I appreciate it.

How to change app title font?

I want to change the font of the title of the app with a custom font, the font is already in the folder assets/fonts.

ScrollView with RelativeLayout

How do I make RelativeLayout occupy the entire height of the screen inside ScrollView? (I tried wrap_contet but as I have ad ... :layout_marginBottom="30dp" /> </RelativeLayout> </LinearLayout> </ScrollView> Image:

How to correctly arrange DP and DPI for each type of screen on Android?

Is there some kind of formula or way to know the following questions without having to be "building" all the time to check? ... -high) ~ 640 dpi Density independent Pixel (dp): converting Pixel units to screen pixels is simple: px = dp * (dpi / 160)

Android RelativeLayout align items

I am not being able to align vertically by the center the items of the third line marked in the image. This is a layout of it ... ayout_below="@id/labDes" android:layout_toLeftOf="@+id/img1" android:text="57"/> </RelativeLayout>