Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
62 views

Yet another SO question about ConstraintLayout and positioning. I have been having trouble with a particular layout, so I decided to go back to the basics and see what I'm not understanding. Copied ...
Dan Davis's user avatar
  • 603
2 votes
0 answers
110 views

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:...
Samir Alakbarov's user avatar
0 votes
1 answer
33 views

I booted up Android Studio today to start a new project. I chose an empty template etc. I checked out the layout editor and noticed it was missing some basic attributes like "background." my ...
baldest_programmer's user avatar
0 votes
1 answer
136 views

I'm working on an Android application, and admittedly I'm a bit of a newbie. I'm working on a very simple input of some information, and found something very odd. Whenever I run the application in a ...
Scott Crooks's user avatar
  • 1,693
0 votes
4 answers
2k views

Can anyone help how to resolve the preview issue for XML layout file?
Faldu Jaldeep's user avatar
5 votes
1 answer
2k views

I have updated my Android studio to new Dolphin, 2021.3.1 version. But after updating the Android studio layout preview is not working. it showing blank screen. If anyone solve this issue please help ...
Abhishek Solanki's user avatar
104 votes
33 answers
30k views

I'm using Android Studio Dolphin | 2021.3.1 & Electric Eel | 2022.1.1 After updating Android studio chipmunk | 2021.2.1 to Android studio Dolphin | 2021.3.1 my all project design preview and ...
Kaushal Panchal's user avatar
2 votes
4 answers
171 views

I have a ConstraintLayout which shows all items on my smartphone without the need to scroll. Nevertheless I want to surround the ConstraintLayout with a ScrollView that a user with smaller phones can ...
user650708's user avatar
0 votes
2 answers
560 views

I have got this weird problem while upgraded to the latest Android Studio. It has no Layout Editor, no Design Tab or Preview Tab. Has anyone faced similar problem? Please help me out. Image 1 Image 2 ...
Fc0001's user avatar
  • 118
1 vote
3 answers
314 views

When I manually design layouts using the Android Studio layout designer, the margin numbers are created in Persian format and the designer does not work properly. This has been happening since I ...
Hussein Yaqoobi's user avatar
2 votes
1 answer
587 views

My Layout editor doesn't render this layout with collapsing toolbar, other layouts render just fine. I have tried refreshing, invalidate cache/restart, gradle implementations to stable versions, set ...
Nitish Anand's user avatar
0 votes
2 answers
124 views

button"start" is in Textview How can I do that?
John Han's user avatar
3 votes
0 answers
789 views

I have an empty FrameLayout in an Activity's xml file. I add a Fragment to it programmatically in the Activity onCreate(), and everything is working fine. However, I want to be able to see a fragment ...
Jeff Padgett's user avatar
  • 2,569
0 votes
1 answer
60 views

screenshot of attributes keeping cursor on an attibute name for a while, make the contestual help to be displayed; Problem: it desappears to early, sometimes before Ican fully read the tip. How is ...
Cbuz's user avatar
  • 10
0 votes
0 answers
578 views

Lest say I have a gradient background like this right Example: <shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:angle="90" ...
WelcomeToTheDarkSide's user avatar
1 vote
1 answer
273 views

I have been working on a little project in Android Studio and I ran into a problem. In my layouts I've been using fabs and constraint layout yet when I try to open the editor I see a black screen, the ...
programming is fun123's user avatar
2 votes
1 answer
2k views

After updating android studio to 3.6.1 Toolbar not showing in the layout editor. It's showing like this.. But it should be like this. Number 3 Option not showing in my case.
user3137451's user avatar
-1 votes
3 answers
509 views

Android studio layout preview is stuck in waiting for build to finish even though there is no build happening. I have invalidate and restarted android studio. I have uninstalled and reinstalled. It is ...
Kodak's user avatar
  • 102
4 votes
3 answers
857 views

My app is going to be just landscape. But each time I need to set the xml layout editor to landscape mode when I start editing a layout. How can I have my xml layout editor always stay in landscape ...
sajjad's user avatar
  • 857
1 vote
1 answer
270 views

I have this html string in the strings.xml file in my Android project Registrandoti confermi di accettare i <a href="https://www.google.com/"> <font color="#FF7860">...
Nicola Gallazzi's user avatar
3 votes
0 answers
140 views

I want to simulate font size changing from the device settings to be sure everything displays OK on each font size. How can I change the text font size in the layout editor preview from normal to ...
DanMan's user avatar
  • 1,071
0 votes
1 answer
94 views

I want my imagebutton to be aligned right but as you can see its left aligned even when the gravity="right". This is my file: <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:...
Savan Luffy's user avatar
0 votes
3 answers
64 views

So I need two navigationbars (one at the bottom and one on the top). But as you can already see on the picture above there is no room for the navigation bar on the bottom because of the map (the ...
Lebron11's user avatar
  • 676
1 vote
1 answer
102 views

I already created RecyclerView with view holder and with one list. But I need one textView on start and the second on the end. How can I do it? I created layout with two TextViews, there are already ...
Sergey's user avatar
  • 43
7 votes
1 answer
571 views

My Android Studio Layout Editor is not working as expected. The preview always disappers and turns into a completely white screen or freezes (i cannot select any element and changes i make to the xml ...
Yannick's user avatar
  • 6,199
3 votes
2 answers
708 views

I have been trying to create a collapsing toolbar using AppBarLayout and collapsing toolbar. Once the AppBarLayout component is being added to the project the layout editor doesn't render, I have ...
Gal's user avatar
  • 422
1 vote
2 answers
2k views

Here an image to better show the problem I'm having... Around a week ago I implemented a music Viusalizer from here. I noticed that it didn't display correctly as it showed up as a grey window (see ...
Fraŋkini's user avatar
  • 126
5 votes
2 answers
2k views

I am using android studio 3.3, my project is using kotlin 1.3.20 with build gradle 3.3.0 however when i try to open xml file, it open different file with the right file name and the right file path: ...
wood wood's user avatar
  • 101
0 votes
1 answer
281 views

On smaller screens; the editText should let shrink the listView verticaly so it never interferes content-wise. Otherwise, when there is a long list of items, the listView should never go over the ...
Kustekjé Meklootn's user avatar
12 votes
9 answers
18k views

It used to work from time to time, but now the ability to zoom in/out on the layout design page is completely gone for me. The layout view always stays at 10% zoomed in and doesn't change no matter ...
Jack's user avatar
  • 5,642
0 votes
1 answer
34 views

The design is a Linearlayout with a cardivew inside and a background color, that simple. By clicking on any view (View 1, View 2 ...) other layouts are added dynamically. These new layouts "push" the ...
Jose's user avatar
  • 71
4 votes
2 answers
3k views

In Android Studio, Tools -> Layout Inspector, what does a greyed out(subdued, dim) view in the View Tree mean? The layer still has VISIBLE properties I don't see any explanation in the docs, https://...
MLM's user avatar
  • 3,688
0 votes
1 answer
285 views

I am using the latest version of android studio (stable) as of date, 3.2.1, freshly in stalled. However, when I'm opening a project, the layout editor does not display the attributes like what it ...
Rick's user avatar
  • 2,321
-1 votes
2 answers
1k views

I am new to Android Studio and I was working on v3.1.4. When I was dragging any of the widgets and put it in the design, it does not appear. It gives me an error message that the widget is not ...
Amr Hassan's user avatar
1 vote
1 answer
333 views

I am an iOS developer who is new to Android dev. I'm wondering if there is an equivalent to nibs in Android dev. For example: I subclass Button to programmatically define behaviors like having the ...
Xavier L.'s user avatar
  • 747
0 votes
1 answer
122 views

Assuming you did not modify any properties in style.xml, the Layout Editor in Android Studio displays the Action Bar as: By adjusting the style of the action bar, I can do things like adjust the ...
H.Kim's user avatar
  • 605
0 votes
1 answer
30 views

So I just downloaded Android Studio onto this compute. When the Layout Editor interface loads and I try to drag the XML items onto the screen, they do show up in the constraintView but not in the ...
Jackson Ennis's user avatar
1 vote
3 answers
670 views

The Layout Editor's palette doesn't seem to have a blank view that I can drag in (unless my eyes are crazy). Is there a way to drag a blank view from the palette in the Android Layout Editor onto the ...
Xavier L.'s user avatar
  • 747
2 votes
3 answers
1k views

How can I align vertical center of two views align in LinearLayout or RelativeLayout (iOS equivallent of view1.centerY = view2.centerY)? I am trying to achieve below layout. How can I make the all ...
gmtek's user avatar
  • 851
0 votes
1 answer
203 views

I am beginner in android and was wondering what the difference is between the tools:context and android:name attributes? 1. android:name=".fragments.DataFragment" 2. tools:context=".activities....
user3700155's user avatar
1 vote
2 answers
2k views

I have a problem with the layout on the Android Studio. The Editor (XML file) and Emulator (Nexus 10) shows the layout right. But if I run the app on my Huawei Mediaped M5, the layout changes and ...
Uğur Güneş's user avatar
0 votes
0 answers
114 views

I'm new to Android Studio and started using it just 2 days ago. I downloaded the latest version and everything should be updated. Upon following the 'Build your first app' tutorial in the android ...
felisimo's user avatar
  • 364
14 votes
6 answers
9k views

The Android Studio 3.1 layout preview fails to find style 'coordinatorLayoutStyle' in the current theme. Failed to instantiated one or more classes. Exception shown are :- java.lang....
Chanchal Shakti's user avatar
3 votes
1 answer
327 views

Does the Android Studio layout designer support data binding? Specifically, does the UI support code completion for data binding attributes like it does for resources. I have been manually adding data ...
cren90's user avatar
  • 1,437
5 votes
2 answers
13k views

Sometimes I'm editing the layout resource for a list item or similar small UI component. This is nice, but the available screen resolutions in the layout editor in Android Studio are all way too big ...
Josh Hansen's user avatar
  • 1,488
0 votes
1 answer
337 views

I have created this layout it works fine on Android 6.0 but in android 4.1 I am getting this weird shadow (black shadows around fab button in the picture).Following is my layout. Following is the ...
Chinthaka Devinda's user avatar
0 votes
0 answers
95 views

I'm building a layout with ConstraintLayout in Android Studio 3.0 using the Layout Editor. Any changes I make are not being reflected when I run the app on the emulator. I don't think the problem is ...
flutter's user avatar
  • 6,836
0 votes
1 answer
507 views

I have built an alert cardview that pops up to prompt a response from the user. I am using constraint layout, and the view looks correct in the layout editor. I have even tested in on multiple ...
aheit123456's user avatar
2 votes
1 answer
870 views

I have a app with minSdk=15. I am trying to migration to ConstraintLayout. almost ok. but when I change the value of margin_left from layout editor, layout_marginLeft/Right attrubute is removed. ...
kyanro's user avatar
  • 773
1 vote
2 answers
1k views

I am everyday facing with very frustrating issue of ConstraintLayout in my project. Project gradle file: buildscript { ext.support_library_version = '27.0.2' ext.play_services_version = '11....
Vlad's user avatar
  • 535