Questions tagged as 'android-layout'

1
answer

Insert two fragments into a tab

I have a project in which you add a Navigation Drawer and a ToolBar with ViewPager , with two Tab. I want a list to appear in the first Tab and when you select a list item, its details appear next to it, in the other fragment,...
asked by 05.05.2016 / 15:05
3
answers

Change the color of a TextView to only certain characters

I have this TextView : <TextView android:id="@+id/textView17" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:text="Lorem ipsum dolor sit amet,...
asked by 01.06.2017 / 10:44
4
answers

Center TextView

I wanted to know how to center a textview, since the title of the app is outdated to the right and not in the center of the screen,  Thank you. <TextView android:layout_width="match_parent" android:layout_height="wrap_content" a...
asked by 05.04.2016 / 15:14
3
answers

Move from one fragment to another

I would like to know how I can move from one fragment to another without having to mount both of them in the container, then my code. Activity where the container is and call the first fragment: public class Home extends AppCompatActivity {...
asked by 11.11.2016 / 17:53
1
answer

HDPI folders - MDPI - XHDPI etc

I would like to know what resolution my images should have for these different folders: The problem I have is that I only have 1 image that is 400px X 400px , so having a small screen for example, the images do not fit well and ar...
asked by 29.12.2017 / 12:33
1
answer

Alertdialog, separate the title of the message

I am using the Holo_Dialog theme in an AlertDialog, the problem is that the title comes out below the line of separation, how could I put the title above ?, or if I use the theme Theme_AppCompat_Dialog_MinWidth, how could I separate the title fr...
asked by 04.03.2018 / 00:38
1
answer

error loading APK on device

This having the following error when I install the apk on my device the log throws this error: Logcat error 09-11 11:59:11.218 16688-16688/com.example.g_talent.myapplication E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.g_tal...
asked by 11.09.2018 / 15:03
2
answers

MultiVentana Support for the App on Samsung's TouchWiz (Android)

Today I have been moving my apps on a Samsung tab S2 device that has multiventana, but when I try to get my app to see a part of the screen I get a message, the app does not support multiventana. What directives should be put in And...
asked by 03.09.2016 / 19:08
1
answer

Synchronize a ViewPager with a BottomNavigationView on Android

I have a ViewPager and a BottomNavigationView that when selecting an element it is located to the corresponding page within the ViewPager , but if I change the page the item BottomNavigationView does not change. The...
asked by 27.04.2017 / 19:54
1
answer

Problem with RecyclerView on Android

I am trying to implement a list with a RecyclerView whose adapter is powered by a cursor. I do not understand why when executing the app, the list shows only the first element although in the table of the database I have 7 records. I chec...
asked by 17.09.2016 / 12:43