Questions tagged as 'android-layout'

2
answers

How do I resolve the distortion that occurs when I switch the portrait to landscape app?

Normal view (portrait) Fortheviewitlooksnormal,asyoucansee,nowwhenIputitinlandscapemode... I wish the background would not be distorted, as in the image above. For this I would like them to list a way to display another image as backgro...
asked by 26.12.2016 / 22:12
2
answers

EditText with ellipses

In EditText, When text can not be displayed completely and you lose focus, Are there any tags that can be set so that it displays the text with ellipses?     
asked by 11.11.2016 / 18:06
0
answers

XML layout with problems

I'm having a problem, I have a layout with some Text edit fields, what happens is that the Scrollview I use works for all of the Activity fields except for the button that ends up going down the screen. Does anyone have a good idea of what I can...
asked by 19.09.2016 / 07:51
1
answer

Android composite control TextView + Switch - click method

I made a layout of a TextView + Switch button. How do I set the onClick method in prefs_activity.xml and receive the notification in the class implementation? layout / preference_switch.xml <TextView android:id="@+id/switchLabel"...
asked by 03.10.2016 / 16:50
0
answers

Doubts TabLayout

I have 3 views that infl contents of recycler view. I put all of them extending from a BaseActivity.java to have some common functions like NavigationView (Sidebar) and also the Toolbar. Now, I wanted to make use of a TabLayout...
asked by 15.09.2016 / 06:52
2
answers

ListView with a button at the end of the list android studio

Good afternoon, I have a ListView that is bringing some data, it is working without problems. But at the bottom of the list, I need to put a button. This button should not be repeated, as it is happening. I placed the same inside the layout xml...
asked by 06.09.2016 / 18:16
1
answer

ListView with dynamic height (without scroll)

Considering the following structure:    ListView (1) > Adapter (1) > ListView (2) > Adapter (2) I need to put a listview inside an adapter, and in that list view there may be several other adapters. The Adapter (1) inside the...
asked by 26.08.2016 / 14:43
1
answer

android: layout_height="fill_parent" of ViewPager does not work

I have a ViewPage that does not work android:layout_height="fill_parent" , it does not show anything on the screen, but if I determine a value ex: android:layout_height="500dp" the height determines. .xml <RelativeLay...
asked by 20.08.2016 / 23:17
0
answers

Develop a Screen equal to the SMS Receiving Screen (android). User to receive messages

Good afternoon, I'm starting on Android. I'm making an app where a user will receive multiple messages from other users, each message containing 2 fields. The user will access a screen and see these messages. I would like to make t...
asked by 28.07.2016 / 21:48
2
answers

Android TableLayout does not beat

This is the layout I currently have: Andhere'sthecode: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" an...
asked by 22.07.2016 / 01:24