Most voted "android-layout" questions
A layout defines the visual structure of the user interface. Normally declared in XML files, they are used by Activities and Fragments to interact with the user.
Learn more…699 questions
Sort by count of
-
0
votes1
answer116
viewsUpdate Facebook within Pageview with Tab
Galley, See if you can help me, I’ve had this problem for two days and I can’t fix it. My app got Pagaview, Tablayou, and 3 Fragment Ok? As picture below: In my third tab I have the following…
-
0
votes2
answers205
viewsUse Ratingbar with numbering next to Android
Does anyone know how to use the Rating bar with the numbering on the side? The way the ifood uses. I tried to insert ratingBar with only one star but it doesn’t work, and as an image inside an…
-
0
votes1
answer158
viewsAndroid Studio Update: preview adding shadow in XML
Since the last update to Android Studio 3.3, a shadow appeared on each of my elements in the XML preview layout. Although it doesn’t appear in compiled rendering, it gets in the way of editing. How…
android android-studio android-layout android-activityasked 5 years, 10 months ago Leonardo Figueiredo 517 -
0
votes2
answers1682
viewsIs it possible to have a round button without changing the android:background attribute?
I have in the directory res>drawable>fundo.xml the following code: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"…
-
0
votes1
answer418
viewsChange text color in a Listview (Android)
Hey, guys, I’m having a little bit of a problem. I’m trying to change the color of a text inside a standard Listview android, however, it does not change. I tried changing the color in Layout,…
-
0
votes1
answer24
viewsButton in the Spinner reset Mainactivity in a Dialogfragment
I have two buttons in Mainactivity, the first opens a custom Dialogfragment with some spinners and the other button resets the spinner of this Dialogfragment. When I click the reset button it calls…
-
0
votes0
answers151
viewsRecyclerview Line Limit
I got a problem, I got a RecyclerView, and you’re bringing the information perfectly. It is basic only lists below each other, only it is not bringing all the records, do the query by another…
-
0
votes0
answers231
viewsSave an image of Imagemview to Postgres
Hello, I am making a screen where the user takes photo of the error and sends in our program. The routine loads the image of both the Camera and the Gallery and I put in Imageview, in this part…
-
0
votes1
answer94
viewsStart with Splash Screen
I have a project and use the Navigation Drawer Activity, and there was the need to put a Splash screen at the beginning of the project, I tried to put and now is giving an error when opening the…
android android-studio android-layout android-activity android-fragmentasked 5 years, 4 months ago Ari Melo 131 -
0
votes1
answer139
viewsConfigure Cardview in Recyclerview
I have a RecyclerView and use with CardView, the problem is that in one version of android the visualization is different from the other. I would like the visualization of android 9.0 to be the same…
android android-studio android-layout android-fragment android-adapterasked 5 years, 4 months ago Ari Melo 131 -
0
votes1
answer139
viewsANDROID STUDIO - background layout image turns white
Good, currently I am developing a project in android studio and I am here with a problem. In one of the layouts, you set an image as the background, but when you execute it, it turns white. The…
-
0
votes1
answer1019
viewsHow to put Scroll in a layout already made in Android Studio?
I have this layout already done, but in smaller cell phones the buttons are inaccessible, I would like to implement Scrolls both vertically and horizontally when necessary This is the xml of my…
-
0
votes1
answer209
viewsWhere can I find the Styles.xml file?
I have a very simple application that runs an html file. I’m really wanting to change the color of the status bar, because the top and bottom pattern in black is horrible for the color palette of…
-
0
votes1
answer47
viewsHow to make all content fit on the screen?
Hello! I am developing an App. However, I have difficulty in making all content fit on the screen. The code in question: <?xml version="1.0" encoding="utf-8"?> <LinearLayout…
-
0
votes0
answers21
viewsAdd Google Maps to the Android APP to pick up the user’s current location
I have an Android App, which I use as "Webview", interconnected to my map on the web, with restricted access to registered. In this case, in this APP, I need to take the CURRENT LOCATION OF THE USER…
-
0
votes1
answer116
viewserror: The argument type 'Jsobject' can’t be Assigned to the Parameter type 'Buildcontext'
I’m trying to navigate from the login screen to the homescreen, but when creating the void _onSuccess is returning the error: error: The argument type 'Jsobject' can’t be Assigned to the Parameter…
-
-1
votes1
answer39
viewsI cannot create layout inside the json request
Hello! In my project, I receive some fields via JSON, I have an empty layout, and I must create the elements (textview, imageview, edittext...) according to the data received from JSON. JSON is…
-
-1
votes3
answers886
viewsFragment error "Unable to start Activity"
My error application when opening on a tablet and I can’t identify the error it informs that I have to enable: Unable to start Activity…
java android android-layout android-fragment android-activityasked 8 years, 1 month ago Everton de Freitas 41 -
-1
votes1
answer268
viewsHow to Set a Home Screen Fragment for Android App
I created an APP with a drawer menu, that menu drawable that appears as a template when creating a project in Android Studio. I managed to create the fragments and relate to the menu, is working…
android android-layout android-fragment android-activityasked 7 years, 2 months ago Thyago Dias 465 -
-1
votes2
answers675
viewsPosition the text in the center
I have this Textview: would like the text to be centered vertically and horizontally in relation to the black area, which is the background of Textview itself, which defined the height of 100dp,…
-
-1
votes2
answers56
viewsAndroid change the color of a button for 1second
I have an array that contains integer numbers from 0 to 4. {1,4,0,3,2} need a button to blink a certain color according to the sequence. How this is done ?
-
-1
votes1
answer27
viewsIcons larger than the text box
How do I decrease the size of these icons in my layout?…
-
-1
votes1
answer109
viewsError while changing screen orientation using Fragments
While turning the screen orientation I get this error: Error android.view.Inflateexception: Binary XML file line #23: Binary XML file line #11: Error inflating class Fragment Question: What could be…
-
-1
votes1
answer21
viewsWhy does the Button Widget text always get uppercase when inserted?
I am creating a UI programmatically and every time I insert the text in the setText() buttons, the text is uppercase. In the xml UI the same thing happens. I would like the UI to keep the text as it…
-
-1
votes1
answer1024
viewsjava.lang.Runtimeexception: Unable to start Activity Componentinfo {...}: java.lang.Nullpointerexception
I’m trying to rewind facebook data and I’m getting this error. Logcat 10-24 00:46:41.230 7526-7526/sptour.hotmail.com E/AndroidRuntime: FATAL EXCEPTION: main Process: sptour.hotmail.com, PID: 7526…
-
-1
votes1
answer1993
viewsHow to leave a fixed footer in the Android layout?
I have the following layout on xml on my Android designer: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"…
-
-1
votes1
answer50
viewsWhite at the bottom of the screen with Scrollview
I put a ScrollView in one of my layouts, to allow users with smaller screens to view all information. The problem is that when I start the application on my mobile phone (5.5') I see a white band…
-
-1
votes2
answers436
viewsRecyclerview is behind/hidden from Toolbar/Actionbar
Solution: link Good evening, guys, how are you? I have a problem and to be clear I took a print to show you: As you can see the list (Recyclerview) is getting behind while it should be below the…
-
-1
votes1
answer49
viewsHow to make layout not be pushed up when my app keyboard appears?
Layout of my application: The bug happens when I click on any of the editTexts to add some value to them: As you can see, the ad and two of the balloons go up. In this case, until The ad rise is not…
-
-1
votes1
answer41
viewsCrash app when entering Landscape mode
My app has two layouts, a pro mode Portrait and another pro Landscape. When I assign an event to open another Activity to the screen button, when I turn the phone, (I put it in Landscape mode) the…
-
-1
votes1
answer152
viewsHow to Solve the Android Studio 3.1.3 Cordinatorlayout Problem?
I’m starting to study android mobile development and caught several problems with Android Studio 3.1.3. And one of them that I’m failing to fix is the rendering problem. I have tried several…
-
-1
votes1
answer109
viewsAndroid Development with Android Studio - Recyclerview is not working
I’m trying to get into this world of Android development, using Android Studio. And right at the beginning I already face a simple problem for an experienced programmer who uses Android Studio but…
-
-1
votes1
answer62
viewsHow do I format string in an android app?
When changing option it does not format the string values as shown in the image below. Please, how could I fix this? This is my code. import android.app.AlertDialog; import android.app.Dialog;…
-
-1
votes1
answer208
viewsTextinputedittext cannot be converted
This here is my Activity class. import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.widget.EditText; import…
-
-1
votes1
answer138
viewsMy application is done in webview and by clicking back with the android phone button it shows the msg Auncher stopped
This is my code Mainactivity.java when running on a device I click the back button simply appears the message Launcher stopped I really need to understand what is missing in the code my main concept…
-
-1
votes1
answer54
viewsAndroid Bottomappbar with Framelayout and Coordinatorlayout
I have a problem in Framelayout the working is correct, but Framelayout is with the starting position of Top above Appbarlayout, according to image: Below the code of Main, where the base is.…
-
-1
votes1
answer27
viewsandroid - Constraintlayout shows different from android studio
I made a login screen with Contraintlayout, in the editor of android studio appears with the margin as I specified, but in emulator and device appears without the margin: <?xml version="1.0"…
-
-1
votes1
answer37
viewsChanging the title color of an open Activity
I’m trying to change the color of the text of my Action Bar, but I’m not getting... I have researched here and elsewhere and the answer is always very similar to that answer: Changing the title…
-
-2
votes1
answer75
viewsIs it necessary to memorize everything about XML files while I have the IDE to do it for me?
I’m starting to learn Android and wanted to know if it is necessary to memorize the attributes that a component has as layout_height, layout_width, layout_gravity, etc.. It has certain attributes…
-
-2
votes2
answers116
viewsGuys, does anyone know what call or perform this technique in the studio Android?
I want to make an APP for gym and need to use a smaller screen in front of the main screen as shown in the print of an existing APP that is attached. I want to blur the background and show a smaller…
android android-layout android-studio android-activityasked 6 years, 7 months ago Heverton Kleidson 23 -
-2
votes1
answer41
viewsuse programmatically linear Radius corner, modifying circuference only on one side
use Radius corner programmatically in a linear, modifying only the circuference of two sides…
-
-2
votes1
answer124
viewsProblems using the Cardview element (Material Design - Android)
I’m trying to use the Cardview element of Material Design in my Android app, but I’m not getting. Could someone help me identify the error of my code? Below is the code used. Log of Android Studio…
-
-2
votes2
answers57
viewsRecyclerview does not display data
I have a problem where Recyclerview does not render on Activity. Textviews load normally. In the Emulator I use level 24 or 30 Apis and physical applications. This appearing this way, the Recycler…
java android android-layout android-recyclerviewasked 3 years, 8 months ago Filipe IKOGNYT Andrade 1 -
-2
votes1
answer24
viewsIs there a way to access a Vector programmable?
I have a vector of a star and wanted to access a path of it from within my Java class to change the color. <vector android:height="24dp" android:viewportHeight="197.24483"…
-
-2
votes1
answer84
viewsFloatingactionbutton using Relativelayout
Whenever I drag the Floatingactionbutton, it always goes back to the top left corner. Even using Relativelayout. I’m using Androidstudio 3.6 <?xml version="1.0" encoding="utf-8"?>…
-
-2
votes2
answers64
viewsConstraint Layout cannot align to the corner of the screen - bottom of
Hello, I have a Layout. xml that has a text as parameter and that in the lower right corner of this screen should be displayed a Floating Action Button, as shown in the preview layout below What in…
-
-4
votes1
answer70
viewsScreen Size of Smartphones
I am producing an app. I would like to know for which size of android smartphones screens I should program the layout. The layouts I made do not fit on smartphones with screen 2.7,3.2, 3.3,3.4,…
-
-4
votes1
answer54
viewsWhy give this value "(1):(2)(3)"?
I’m making a chronometer using Android Studio, in the xml document that the java class "calls" I’m using Chronometer to make the chronometer so when I finish doing this problem always occurs…
-
-4
votes1
answer152
viewsScreen gets disorganized when running
I’m having a problem, I’m starting on android programming! I had already started a while ago and stopped for the same reason I’m having now: my computer is not very good and kind that does not…