Questions tagged as 'android-layout'

1
answer

FloatingActionButton does not work

My FloatingActionButton does not work. In my application I have a fragment and two tabs. In one of the tabs, the floatingActionButton works, the other does not. This is the main fragment layout, where the button is located:      <!-- The...
asked by 12.05.2017 / 15:21
1
answer

How to change the text color of the navigation drawer?

As I do to change the color of the text, I already tried to add textcolor in the menu's XML and it does not work     
asked by 25.05.2017 / 19:50
2
answers

How do I maintain the ImageView aspect ratio in Android Studio?

I had a problem creating a SplashScreen. The image, 512x512, imported into the drawable directory does not maintain the same ratio after the code is executed. The height is larger than the width, and adjusting manually works on one device, but o...
asked by 24.10.2016 / 04:56
1
answer

How to erase GridView image?

I'm developing an app that contains a gallery, where the user takes photos and the image is shown in GridView , but I do not know how to delete the selected image I have been able to do something like this: the user presses the image an...
asked by 05.09.2016 / 23:50
3
answers

Custom Dialog

Good morning, I made a custom Dialog using a fragment to customize it, but I need to make it have rounded corners.      <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="...
asked by 01.09.2016 / 13:52
1
answer

Inflate Layout in a Service

In case this code makes a floating window with a button to end the activity, then how do I now inflate a layout, or another way to build a layout inside the service. public class FloatingWindow extends Service { WindowManager wm; Line...
asked by 26.12.2016 / 21:08
1
answer

Change the color of the application footer

I would like to change the color, from the application footer, where the android "back" button is located. Image below: XML:<?xmlversion="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/andr...
asked by 27.06.2016 / 16:38
1
answer

How to create "responsive layouts" on Android? [closed]

I'm wondering how to create a responsive "Layout" to serve on all devices smarts and tablets, so that the size of texts, buttons suit appropriately for each screen, what is the best and practical way to do this? / p> Taking advantage of this,...
asked by 03.12.2016 / 01:40
1
answer

Text inside cardview in half

I would like to know how I put the text inside a cardview up. Inmycodeitlookslikethis:<android.support.v7.widget.CardViewandroid:id="@+id/card_view8" android:layout_width="fill_parent" android:layout_height="50dp"...
asked by 14.06.2016 / 14:34
1
answer

Put Button at the bottom of the screen - Android

I have an ExpandableListView and a button that should only appear when someone gives the Scroll on it until the end. I already tried to put it as footer but if the list ends in the middle of the screen the button is in the middle, I need it to b...
asked by 05.07.2016 / 16:03