Questions tagged as 'android-layout'

2
answers

How to set placeholder in EditText?

I created a small Android app containing only one activity. In it I put two EditText components. I want to set placeholders in them, as in HTML5 inputs, but I can not find a solution.     
asked by 06.09.2017 / 09:28
1
answer

What is the difference of a toolbar for an action bar?

I've researched a lot and found nothing that could explain this. Is there a difference or is it the same thing?     
asked by 20.01.2017 / 15:42
1
answer

Recyclerview enviezada (diagonal) - android

I need to create a recyclerview, in android, whose items are rendered, according to the image Itriedtouseashapeinthebackgroundimagehoweverthereistheclickproblem.whenIusetheshape,theclickonthecornerstakethewrongpositionandthat'saproblem.ForIO...
asked by 30.06.2016 / 16:36
2
answers

Layout does not fit on screen after rotation

I developed an application that works normally but when I turn the screen to the landscape orientation the app gets cut off and I can not go down and see the rest of the content and also the AdMob I implemented only works on the screen vertica...
asked by 17.08.2016 / 22:51
1
answer

Show / Hide Button and TextView

I'm making my first App in Android Studio, but I'm having a hard time doing something relatively easy. I need a Click on a Button to show the TextView and another Button (which will hide the TextView when it is clicked again). But all the altern...
asked by 16.01.2016 / 04:02
1
answer

Problems with the layout of the application on various phones

I have an application that I made and emulated using my lg g2 mini phone, when I emulate it looks everything, the form the way I designed it in its proper corner. When I install the same apk on other phones, the application loses the layout by g...
asked by 30.05.2016 / 19:06
3
answers

Preview Android stopped working after update

I work on an android project and after upgrading to Android Studio 3.0, my project started to give trouble. The preview of my activities has stopped working, although the app is build and I can install it in the mobile / emulator, I can not s...
asked by 08.11.2017 / 13:30
3
answers

How to show icon in action Bar when item is in overflow?

I wanted the called item to appear on your side as well: Theresultyou'dexpectwouldbethis: Activity code with the help of @Alexandre Strevenski: import android.app.Activity; import android.content.Intent; import android.os.Bundle; imp...
asked by 23.10.2014 / 12:09
2
answers

How to properly organize the DP and DPI for each type of screen in Android?

Is there any formula or way of knowing the following questions without having to "build up" every time to check? How to know if that Image / Text / Button or whatever is visibly good for the user on the particular screen that has an dpi type...
asked by 22.05.2017 / 16:27
2
answers

Running on Multiple Screens

How to define a layout to run on multiple screens without having to create multiple Layouts? Is it possible or would you have to create specific Layouts?     
asked by 06.02.2014 / 12:35