Questions tagged as 'android-layout'

1
answer

Android: Align Parent Bottom + Bottom margin programmatically

Does anyone know how I can programmatically add a RelativeLayout lined up at the bottom of the parent and include a border or padding at the bottom of that RelativeLayout itself? Eg:     
asked by 25.08.2014 / 16:06
1
answer

How to add an ImageView in a RelativeLayout in runtimer?

How do I add a ImageView at run time to LinearLayout or even TableLayout ?     
asked by 11.10.2014 / 16:10
1
answer

ALIGN_BOTTOM in relation to the parent class

I need the menu to stay ALIGN_BOTTOM in relation to my AppBar, but the code below does not work. public class AppBar extends RelativeLayout { public AppBar(Context context) { RelativeLayout menu = new RelativeLayout(context); Relat...
asked by 08.08.2014 / 19:31
1
answer

Creating a custom and animated toggle

I'm creating an Android app where I'm using ToggleButton as one of the interface elements. I am trying to make it have images instead of the button itself and that there is a transition between them (when the button is turned on / off)....
asked by 01.08.2014 / 05:12
1
answer

color / opacity in selected view

I've implemented a Navigation Drawer (without many modifications to the Android Developers example) I changed only the background colors of the ListView and the Text of the items: layout / activity_main.xml: <android.support.v4.widget....
asked by 22.07.2014 / 17:09
1
answer

ADmob - Problems with APP Ads

I did everything as the tutorial of the ADMOB website, I placed the layout in the XML, imported the path of Google Play Sevices and added the lines of code of the tutorial, my application compiles but does not open on the smartphone, a message a...
asked by 26.05.2014 / 15:50
1
answer

Scale table layout according to screen orientation

I'm kind of lost in the assembly of my screens on Android, I'm not able to make the elements fit the dimensions of the screen. I put fill_parent in tablerows and elements inside it, but editTexts do not scale and they look l...
asked by 28.05.2014 / 03:38
1
answer

Android: How to update title and ActionBar and DrawerLayout items at runtime?

I need to update the ActionBar title and each of the Drawer menu items with the language change at runtime. I use the following code to change the language of my application but I can not change the title and items of the actionbar (their names)...
asked by 27.05.2014 / 23:05
1
answer

Changing the title color of my application

I've tried several different codes to change the title color that is in the application's actionbar, but nothing, I think it's simple, but I'm not able to know how. use the "Theme.AppCompat.Light" theme created by the Action Bar Style Generator....
asked by 19.10.2014 / 01:07
1
answer

How to compose a Linear Layout in Activity using JAVA only

In my application it has a vertical linear layout with id: @+id/items In this layout for each item contained in a list, I would like to create another Horizontal Linear Layout called, Row containing 2 ImageButton and an EditText, an ImageBu...
asked by 16.10.2014 / 06:08