I want to show some data in a table inside a fragment once clicked a button in mainActivity. Since the table is wider, i change the orientation of the screen to landscape before dynamically creating the table in onCreateView function of the fragment. The table only shows half of the data as if it was opened in a portrait mode. Also if i switch to other apps in the phone, background color of the table in some parts get omitted. please help me.
1
There are 1 best solutions below
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in COLORS
- Wrong matches between colors and values when defining colorFactor
- I want write code to predict CIE XYZ from LED driver R,G,B output value
- Finding a specific colour within a bitmap range - VB.net 2022
- In Flutter, is there a way to determine the user's skin color settings for their emojis?
- HDR video publishing
- make selected text visible in PGAdmin 4 Query Editor
- How to change x-axis group labels of my boxplot in R
- flutter stripe_android:verifyReleaseResources'. > A failure occurred while executing com.android.build.gradle.tasks > Android resource linking failed
- I would like a table where cells are colored (defined by values)
- Color Thresholding JS, Average Image Color Detect JS
- Assign visually distinct colors to graphs with undirected edges
- Change text color inside offcanvas navbar
- To set Different Colors For each line in Line Chart Using NPOI excel nuget package in .Net6 Core
- Is there a way to affect the interpolation between translucent colours in WPF?
- How to change the color of an icon when hovered over
Related Questions in ORIENTATION
- Felgo 4 Android Orientation bug
- Flutter device orientation not detected after rotation lock disabled
- Flutter image rotation on signage android TV doesnt work
- Samsung Tablet. Show apps in landscape. Default value for app
- Flutter device orientation change not working like native android
- Exact Orientation (Left or Right) on Jetpack Compose
- LibGDX camera rotation does not work on Android
- Cannot Rotate Legend Horizontally in GeoPandas
- Using Azure, is there a way I can detect text orientation?
- How to get correct and same aspect ratio of phone in landscape and portrait mode in Flutter?
- Sometime orientation is not working properly in iphone
- android original orientation is ROT_180 ?How android apply screenOrientation reverse?
- Setting my PyQt5 app to Portrait Orientation
- Orientation issue occurs While Rotate landscape mode to portrait mode In SwiftUI
- Is it possible to change default orientation of browsing cube built using 3D Juump API?
Related Questions in LANDSCAPE
- Cracks in my automatic texture in Unreal engine 5
- How to I can use landscape mode it should cutoff to max phone width
- Navigating two times from landscape to portrait in iOS
- how to force landscape mode when iframe video in fullscreen
- Samsung Tablet. Show apps in landscape. Default value for app
- Navigating two times from landscape to portrait
- Unknown value while calculating land cover type buffer zones in ArcMap and r
- Landscape table with flextable in pdf and word output
- Print html table in ladscape mode
- How to get row/column header to print on each new page
- Header and footer not rendering properly in the PDF report's landscape page - jsreport
- How to change the orientation of the existing pages of the pdf report in the afterRender function in jsreport?
- Phaser3 how to force screen to open in landscape mode
- Importance of wrapping SwiftUI View in GeometryReader for landscape orientation
- Erreur dans stats::hclust(distance, "single") : il faut n >= 2 objets pour une classification
Related Questions in PORTRAIT
- Navigating two times from landscape to portrait in iOS
- Navigating two times from landscape to portrait
- Print preview trims data on edge/chrome in Portrait mode
- Delphi iOS uisupportedinterfaceorientations faill to transport
- Portrait Mode of video in android java
- Android NotificationCompat BigPictureStyle portrait image
- portrait / landscape Orientation notification
- How to convert Square image to landscape or portrait mode using PIL
- UIInterfaceOrientation not working on iPad iOS 16
- IsGestureEnabled is not working in xamarin forms for iOS 16
- Buildozer - Orientation Portrait setting not working
- How to implement a solution to change the orientation to landscape and vice versa
- IOS16 portrait rotate issue
- iOS 16 Scene orientation issue
- Android approach to handling landscape mode when portrait mode uses ViewPager2/TabLayout?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I solved the issue. The fragment screen was shown on a frame layout. so after loading the fragment i resized the Frame layout which was placed in the MainActivity by calling the below function from mainActivity in the fragments onCreate() function using ((MainActivity) getActivity()).reSize();
the below code is written in the mainActivity.
Public void reSize(){
}
Here i have reduced the height further by 270 in the landscape view because due to some issue some part of the framelayout was missing. don't know why. Hope it helps.