fragment of sliding pane layout is transparent for clicking - android

I'm using sliding pane layout in my project. When it was in its closed state i tried to click on an empty space of my fragment's layout, but the click was performed on another fragment (which should be shown only when sliding pane layout is in open state), like it's on the top of the screen. It looks like empty RelativeLayout's space is transparent for clicking. Is there a bug or am I doing wrong something?

Related

Only adjust child fragment when soft keyboard is up

My app is based on the single activity architecture, and I have a parent fragment inside the activity which has a navigation bar at the bottom and a frame layout on which I place other child fragments.
One of the child fragments has an EditText at the bottom, but when the soft-keyboard is up, I want that the view is only adjusted of the child fragment.
I have already tried adjust pan or resize options but nothing is working for this specific use case.
When I use the following code, it adjusts the EditText but the bottom bar of the parent fragment also goes up when keyboard is shown, which is not what I am trying to do.
requireActivity().window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN or WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN)
Any help will be appreciated.

How to add left vertical tab widget in a Fragment

I am working on this POS project for android tablet. I've already created a nav drawer and when I click "Inventory" this page which is a fragment should show.
My question is
(1) how to create vertical tab widget that will show different layout. See picture below.
(2) how to divide the screen that will create vertical line as shown in the same picture.

ViewPager showing border of fragment

I'd love to know if anybody knows how to achieve following:
I've got a ViewPager showing up a fragment. While this fragment is showing, You can see the small left border of the fragment to the right. This fragment can be pulled out and acts like a NavigationDrawer.
Here's an example, the Android L Calculator app:
https://d13yacurqjgara.cloudfront.net/users/409459/screenshots/1647461/calculatorrender.gif
As You can see, there is a small blueish border to the right which can be pulled out by swiping it in just like a NavigationDrawer.
Any suggestions how this is achieved?
From the looks of it, this is not done with a ViewPager.
If I would have to do this layout, I would do it with 2 ViewGroups next to each other.
The first one would take 90% width of the screen, would be in the back, and aligned to the left, lets call this layout A.
The second one would take 75% width of the screen, placed in the front, aligned to the right, and have right margin of -65%. I would also add a nice shadow to its left edge, and call it layout B.
Layout A would have a grey background and lots of buttons, as in the animation. If the user swipes left on this view, you set a flag that layout B is shown, and animate the right margin of layout B, to show it. You would do the same when layout B is tapped while being almost hidden.
Any tap on layout A now would close layout B (you can control this with the flag).
When tapped on a button in layout B, you also animate the right margin back, and set the flag also back to false.
If you would use fragments for this, then you would have to worry too much with the communication between the two, and it would just go the same way as with views.

how to slide frameLayout using sliding menu

I have work on sliding menu. I have some problem of this sliding menu.
This is 3 frame layout. and i have Require slide center frame layout like this.
This is my second layout. how can i make this second layout?
Issue is: I have required second screen but in the second layout all frame are slide in right side. My requirement is only second frame move right side.

how to block UI from coming up on softkeyboard display

I am using same activity for multiple fragments. every fragment there is a searchview. Except home fragment in all other fragment we display listviews. In home fragment i have linear layouts to display some buttons and footer view. And when i type something in searchview in the home fragment it will display listview.i want to resize my screen when keyboard is up. So i have used below mentioned tag in manifest file for the actvity.
android:windowSoftInputMode="adjustResize"
It is wokring fine in all the fragments except home fragment. In home fragment when i tap on searchview(before typing.ie still displaying the buttons) the screen including the footer view is up. No issues with layout contains buttons. becuase it is scrollable. But topmost layout is not visible fully. Is it possible to stop it from pushing the footer layout to top in this fragment?

Categories

Resources