Questions tagged as 'android-layout'

1
answer

Work on a menu with items within a NavigationView on Android

Good afternoon, I would like to raise a problem that I can not find a solution for in Android programming. It turns out that I have a sliding menu implemented under two structures, a header and a listMenu in my view. I access the header pe...
asked by 26.10.2016 / 18:14
1
answer

Error showing a snackBar on onRequestPermissionsResult

How can a snackbar be used within onRequestPermissionsResult as it needs a view I assign it with findViewById(R.id.root_view) @Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @N...
asked by 22.11.2016 / 13:01
1
answer

Deactivate slide right close app on Android Wear

I'm doing tests on Android Wear, some apps disable the "slide-right" gesture to close the app, making it only be possible to close with a long press or a physical button. How to disable the slide gesture of closing app on Android Wear?     
asked by 20.11.2016 / 19:56
1
answer

how to capture the touch horizontally and vertically?

hello programmers friends as they are I hope very well I have a problem when trying to capture the vertical and horizontal movement of the screen of my android I have the following code @Override public boolean onTouchEvent(MotionEvent event)...
asked by 19.09.2016 / 08:19
1
answer

CardView does not occupy the full screen width despite having match parent property

this time I try to make a CardView can occupy the full width of the screen through its property layout_width="match_parent", but when running the application these CardView are shown as if they were configured as "wrap_content" . The LAYOUT...
asked by 29.11.2018 / 04:55
0
answers

Slash Screen Android Studio disproportionate

I am trying to create a splash screen of a mobile application with Android Studio, the case is that I try to do it with a 2732x2732 image since with ionic cordova I simply do the resources and it generates all the versions, however, I try to do...
asked by 23.11.2018 / 13:15
1
answer

Activate a button from another class in Android Studio

I have two classes, one is called Frame1 and the other is Frame2. Frame2 has a button that is disabled, what I want is to press the Frame1 button so that the button of the other class activates me, since while I do not press the button 1, the bu...
asked by 18.11.2018 / 23:44
1
answer

Android Fragment (OnboardingFragment) get event from Activity

In my MainActivity How can I get events that happen in one of my fragments ? public class ManActivity extends AppCompatActivity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);...
asked by 26.10.2018 / 18:33
1
answer

Android the dark theme does not activate with MODE_NIGHT_AUTO

I'm implementing to change the theme of the app depending on whether it's day or night, with NightMode of Android I have defined the two themes, day and night, that work correctly To activate the dark / night AppCompatDelegate.s...
asked by 25.10.2018 / 21:43
1
answer

Error with notifyItemInserted () when sending an Android Studio message: Error inflating class android.support.v4.widget.CircleImageView

I am making a simple chat app, when I write a message and show it on the screen the app stops, I suspect that the error is in notifyItemInserted () and I would like to know if I am misusing the function or if it exists another way to make messag...
asked by 06.09.2018 / 17:12