Questions tagged as 'android-layout'

1
answer

How to customize a listView (scrolling)?

Given an Activity that has an adapter to populate a list of contacts: IfpossibleIwantedtogetthefollowingresultasintheimagebelow:    When scrolling up and down, display the initial letter of the element   listed in the adapter. Note: my a...
asked by 24.10.2014 / 18:14
2
answers

Android custom listview working but with problems

Hello, I am doing a binding and I have only one of the properties of my Model that are appearing in my listView. Here is the code: Adapter: public class ProjectAdapter extends ArrayAdapter<Project>{ private List<Project> _p...
asked by 14.08.2014 / 18:25
1
answer

Distorted RelativeLayout on Tablet

Does anyone know if it's normal for an Android-made app to run when it's running on an Android-based tablet? Some of the ImageView of my application have been distorted, some got larger and some smaller, when in fact they are all from the s...
asked by 11.10.2014 / 05:08
1
answer

How to disable all TextView in an Activity?

Is there any method that will disable all the controls of a particular activity in android?     
asked by 01.09.2014 / 19:43
1
answer

How to use actionBar to show icon + text of items?

I declared in the Manifest android: uiOptions="splitActionBarWhenNarrow" for the actionBar and set the items as showAsAction="ifRoom | withText" appears at the bottom of the screen, follow the figure below: EventhoughtheactionBardoesnotshowic...
asked by 27.09.2014 / 21:50
2
answers

How to avoid the layout destroyer in the Tabbed Layout when changing the tab?

I'm making a system with tabbed layout and with recycler view, on the first tab are the products, I click on a place the quantity and it marks the product. When I go to the third tab, the marking on the product disappears, how do I stop it? T...
asked by 21.11.2018 / 17:38
1
answer

How to reuse a layout?

I want to create a screen with menu of essays, how do I "reuse" a layout to have several essays and less layout (xml) files.     
asked by 24.09.2018 / 18:56
1
answer

softkeyboard pushing layout up

Oops, I have a problem and I can not solve it at all. already tried adjustpan, resize..enfim .. I have a layout with recycleview and edittext and a few more views..when I click on edittext the keyboard is displayed but it pushes up the rest o...
asked by 15.02.2018 / 22:41
1
answer

Position button at bottom of layout

I would like to position the Exit button at the end of my layout. I'm using LinearLayout. Any tips on how to position? This is the Linear Layout code: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:too...
asked by 21.12.2017 / 02:09
1
answer

How to center the title bar of the action bar and how to change its size?

JAVA package togglebutton.cursoandroid.com.togglebutton; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle save...
asked by 30.10.2017 / 23:14