Questions tagged as 'android-layout'

1
answer

How to make or put a button in my app as the one on the home screen that slides [closed]

I need to place a button similar to the one on the home screen that slides with your finger to unlock the mobiles. I refer specifically to this:     
asked by 30.05.2016 / 22:27
3
answers

Disordered buttons

My problem arises when I make my first application with buttons and a stopwatch (example I've seen on the network) at design time everything is in place but when you move to the emulator everything is piled up on the upper left side of the phone...
asked by 23.03.2017 / 08:59
2
answers

Show results of a RealmResults in a Recyclerview (Android)

I'm trying to create an adapter to display data in a RecyclerView , but that your data provider is using the database system realm.io , that is, populate the RecyclerView from the result RealmResults of a query, list of...
asked by 27.09.2016 / 22:57
2
answers

Up and down volume of an audio channel with the physical buttons on Android

I would like to synchronize the physical buttons of volume up and down synchronized with a specific audio channel. When clicking, the dialogue of the image will be shown, with the seekbar icon and increase or decrease the volume.     
asked by 15.05.2017 / 15:40
2
answers

Get ViewPager index displayed on Android screen

I have a ViewPager located at the bottom of my app, and I'm trying to get its index, id or any reference to the ViewPager that is displayed on the screen so that depending on which is displayed, the button they share makes an action u another in...
asked by 25.05.2017 / 10:20
5
answers

List view shows only one result

I'm creating a listview with Realm and it only shows the first result. With debugger I have seen that the variable position does not increase in value and the one covered by the List is always with the same value. In the s...
asked by 14.05.2017 / 11:08
1
answer

Assign different actions to a Floating Button on Android

I have a FloatingActionButton general and 3 Fragments that are loaded with a ViewPager Following the Google Design Guide , show that FloatingActionButton is in parent and not in each fragment video: lin...
asked by 21.07.2018 / 11:21
1
answer

How to solve blank space (Android)?

I have an Android XML that implements an AutoCompleteTextView. The thing is that I would like to put it underneath and if I move it, a blank space is generated between the top bar and the AutoCompleteTextView. Any solution? <?xml version="1...
asked by 25.04.2018 / 16:30
1
answer

How to close an external application from my application

I will simplify the question: I want to launch an external application at a time that I developed. Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.mariana"); startActivity(launchIntent); and with this code I ope...
asked by 26.12.2017 / 19:08
1
answer

Android app always vertical?

I want my APP to only run vertically but I can not, I have implemented the following without success. Manifest: < application ... android:configChanges="orientation" android:screenOrientation="portrait"> Act...
asked by 27.04.2018 / 17:56