Bottom navigation bar oversized
Bottom navigation bar is displayed incorrectly
Here is the code:
Why does my android vector icon appear slightly outside of the imageView box?
I have this svg:
How to manage visibility and enabled state of overlapping buttons in a ConstraintLayout?
I have two buttons in a ConstraintLayout
in my Android application: startButton
and stopButton
. Both buttons have the same constraints, so they are positioned on top of each other. When the activity starts, I want only the startButton to be visible and clickable, while the stopButton should be invisible.
How to correctly inflate and convert this layout to bitmap, with correct dimensions
I’m having issues converting layout to Bitmap keeping the correct dimensions.
View wrap_content in not working in TableLayout
I add table rows with cells to a table dynamically.
The rows and cells are added, but the text in the cells do not wrap.
Part of code follows here:
View wrap_content in not working in TableLayout
I add table rows with cells to a table dynamically.
The rows and cells are added, but the text in the cells do not wrap.
Part of code follows here:
MaterialTextInputLayout, when i have end_icon mode clear_text clears drawables
I have a MaterialTextInputLayout which has an end_icon_mode=”clear_text”, when i use startIconDrawable for MaterialTextInputLayout, it has a big padding between edittext and icon, so i decided to use drawableStart for TextInputEditText, but when I start typing, it shows clearButton, but removes drawableStart of TextInputEditText. I have to prevent removing drawableStart of I need to set custom padding to MaterialTextInputLayout startIconDrawable
Использование одного макета cardview, но с разными изображениями
Я хотел сделать список из элементов в android studio, используя один макет cardview, но чтобы у каждого из этих элементов было свое изображение.
How can I adjust an image view to make sure an image fills the bounds but does not crop
Lets say I have an image view and I want to display a 600 x 900 image. I want to make sure the image fills the image view, but it not cropping “center crop” or using “scaleXY”. After that, how can I make sure it works for different phone sizes.
how to make layout to be in front? androidstudio
<LinearLayout android:id=”@+id/toplayout” android:layout_width=”0dp” android:layout_height=”wrap_content” android:orientation=”horizontal” app:layout_constraintBottom_toTopOf=”@id/filterlayout” app:layout_constraintEnd_toEndOf=”parent” app:layout_constraintStart_toStartOf=”parent” app:layout_constraintTop_toTopOf=”parent”> <LinearLayout android:id=”@+id/menulayout” android:layout_width=”65dp” android:layout_height=”50dp” android:layout_marginLeft=”16dp” android:layout_marginTop=”15dp” android:background=”@drawable/formenulayout” android:elevation=”10dp” android:orientation=”vertical” app:layout_constraintHorizontal_bias=”0.5″ app:layout_constraintStart_toStartOf=”parent” app:layout_constraintTop_toTopOf=”parent” app:layout_constraintVertical_bias=”0.0″ > <ImageButton android:id=”@+id/menu” android:layout_width=”wrap_content” android:layout_height=”50dp” android:layout_gravity=”center” android:backgroundTint=”@color/white” app:srcCompat=”@drawable/menu_button” /> <ImageButton android:id=”@+id/settings” android:layout_width=”35dp” android:layout_height=”35dp” android:layout_gravity=”center” android:layout_marginTop=”2dp” android:background=”@drawable/gear” android:visibility=”gone” app:useMaterialThemeColors=”false” /> </LinearLayout> <com.google.android.material.card.MaterialCardView android:id=”@+id/materialCardView” android:layout_width=”0dp” android:layout_height=”wrap_content” android:layout_weight=”1″ app:cardCornerRadius=”12dp” app:cardElevation=”8dp” app:cardUseCompatPadding=”true” app:layout_constraintEnd_toEndOf=”parent” app:layout_constraintStart_toEndOf=”@id/menulayout” app:layout_constraintTop_toTopOf=”parent”> <androidx.appcompat.widget.SearchView android:id=”@+id/searchView” […]