1,216 questions
0
votes
0
answers
25
views
Creating a Dynamic Table in android using TableLayout while setting the column view attributes in layout file
I am trying to create a dynamic table in android and was analyzing to see if I can use the TableLayout, though I see various options of how to add rows dynamically but all the examples requires me to ...
0
votes
1
answer
70
views
Get text to span over multiple rows while only the first row has margin or padding?
I have a TableLayout I would like to change. The layout is three rows big. In the first row and first column there is the article ID.
In the next two rows the article description follows.
To not waste ...
0
votes
2
answers
201
views
TableLayout with SQLite
I need to display data in tabletLayout from SQLite. The SQLite response is correct, the data is correct, I add them correct but it does not list them. It shows me only one :
TableLAyout.xml :
<?...
0
votes
1
answer
49
views
Can not fill layout dynamically (Kotlin Android)
I need to create a TableLayout with any specified number of rows and columns and fill it with any views.
That's what I tryed:
class GameFragment : Fragment() {
private lateinit var binding: ...
0
votes
1
answer
42
views
Need help in the android layout
I code my android application: K-map solver. So I need to create the layout for kmap.
I coded it and get the next view:
Code of this layout:
`<TableLayout
android:id="@+id/table"
...
0
votes
1
answer
32
views
Two identical TableLayout's identical TableRow's not showing equal android
I created two identical TableLayout's in my xml file
And programmatically added two Identical(everything is same except variable names) TableRows with TextView's but they're not showing the same in ...
2
votes
0
answers
1k
views
How to create 2D Table with Row and Column headers and content Scrollable on Jetpakcompose
I'm facing a logical problem in Jetapck compose, how can Ive the black bock scrolling horizontally and vertically with respectively the green and redbox.
Green and red box can be considered like ...
0
votes
1
answer
50
views
Tablerow and TableLayout not aligning straight
data_shifted_down
Im creating an android project(java) that pulls data from server and places that data into a table so I have to create a table programmatically. I followed a few examples here but ...
0
votes
1
answer
55
views
Android heights of table rows using weight
I want to create a table with 4 rows, in which 3 rows are of equal height and one row is only half as high.
I thought I should be able to do so using a code like this:
<TableLayout
android:...
0
votes
2
answers
51
views
layout_width attribute of TableLayout children
While going through the Android developer docs for TableLayout , I saw a line mentioning
The children of a TableLayout cannot specify the layout_width
attribute."
But in code if I use the ...
-1
votes
1
answer
79
views
How can I set tablerow of differnt width in Tablelayout?
My expected Output
This is referenced Image of what I want,
But im unable to do it, currently im using tablelayout, what i should do?
Ofcourse my total requirement are vertical and horizontal ...
1
vote
0
answers
39
views
TableLayout cropping
I have a TableLayout inside of a ScrollView like this:
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:...
1
vote
2
answers
394
views
Android table as calendar view for whole year
I want to create a garden calendar in android for 12 months for each plant, with color bars according to sow or harvest action.
Example:
Each month should be divided to 3 quarters, so finally I need ...
0
votes
1
answer
43
views
'FixedHeaderTableLayout' giving warning 'unfortunately touchwiz home has stopped' in API Level 14 Samsung Device
Any solution or suggestion, please recommend. What is the minimum API level for using this repohttps://github.com/Zardozz/FixedHeaderTableLayout?
1
vote
1
answer
93
views
Use ConstraintLayout like TableLayout or LinearLayout horizontal
I am displaying data in a table view approach but using TableLayout which inherits from LinearLayout are too heavy and I am getting frame skipped as I am displaying a lot of table in one fragment. My ...
0
votes
1
answer
76
views
Android: The borders of TableRow of TableLayout are shaken once data is inserted programmatically
I am trying to achieve something like below the below image:
And uptil now I have been able to somewhat achieve this, but after the data is inserted the entire layout is shaken as the borders are not ...
0
votes
1
answer
521
views
Scrollview keeps expanding vertically the more textviews are added into it
So I have a tablelayout and I am using weights to split the rows vertically on the screen. I am dynamically adding textviews into the third row, but as I am doing so, the more of them I add, the more ...
0
votes
1
answer
33
views
In android TableLayout shrinkColumns appears to be the default attribute even if not explicitly stated
In the following code, there are two tableLayouts with 3 columns each -
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/...
0
votes
1
answer
270
views
How to set table column weights for the table layout
I have two table layouts. One to display title and one more to display the data. The table with data should be scrollable hence written in a separate table layout.
The xml looks like this:
<...
0
votes
1
answer
609
views
How to generate CSV Files from the content of layout in Android Studio
I'm developing an app where I use TableLayout in Android Studio to display contents inside my app. Now I need to generate CSV file from the contents of the TableLayout in android studio. The contents ...
0
votes
1
answer
290
views
Converting an old style tablelayout to a constraint layout
I'm trying to convert this layout made using table layout to a constraint layout.
The second column and the third column could be hidden.
The price should be aligned to right.
The header in the first ...
0
votes
1
answer
1k
views
How to generate CSV file from Android Studio Table Layout
I'm developing an android app that stores user input in the SQLite database. and displays it in TableLayout in android studio. Now I want to generate a CSV file from the contents of that Table Layout.
...
0
votes
1
answer
178
views
How do I adjust TableRow cell widths within a TableLayout programmaticallly?
Problem: When I select a file with a long path or name, it forces adjacent columns to disappear.
The layout xml just positions the TableLayout as a placeholder in the Activity and Java code is used to ...
0
votes
2
answers
90
views
Android - Removing space between TableLayout Rows
I want to remove between the Button "0" and the Button "1". My goal is it to have the same space between them as the Button "X".
UI result
These solutions did not work:
...
1
vote
0
answers
153
views
Is there a way to check if user is pressing the enter go to next line key?
I want to be able to save an edittext when the user clicks the enter inside the android keyboard.
The edittext data that I am trying to save is inside a tablerow as shown below
There are only numbers ...
0
votes
2
answers
98
views
In Android, is it possible to return a TableLayout value from a Popup?
Problem: I'm receiving a error on .show() of my AlertDialog when trying to incorporate and build out a TableLayout within it. The error is "You need to use a Theme.AppCompat theme (or descendant) ...
0
votes
0
answers
268
views
Horizontal scrolling breaking the table layout
I use the following TableView library to create a table for my app data:
https://github.com/evrencoskun/TableView
This library is very good for me, but there is an error in the horizontal scroll when ...
0
votes
1
answer
101
views
Tablelayout elements are not centered and go off screen
When I see the table in android studio, it looks centered but it's not on AVD or my own device.
Here is the image.
As you can see, the table is slightly off to the right. On the physical devices, the ...
0
votes
1
answer
1k
views
Android table layout adding single column row that spans table width in java
I am trying to add a single textview row to a table in android
the row should merge and center the width of the table
I am able to achieve this using XML
<TableLayout>
<TableRow
...
1
vote
2
answers
512
views
Table Layout inside Recycler view
design
This is a recycler view design which i am working on.. In this, under Additional Info, I need to display a table [field and value in each row] which updates along with other data when user ...
0
votes
1
answer
93
views
Trying to figure out if Table Layout in Android can be configured like a HTML table
I have seen some tutorials in regards to a table layout in Android, but they were very basic.
My question is that can be be used like html tables are configured. By this I mean, that I can place a ...
1
vote
2
answers
562
views
Is there any solution to make this kind of table layout in android through XML?
I am trying to make a table having 4 columns and 7 rows but the first column has 0 rows against it. Is there any XML solution to this table? I am attaching my table picture which I need to make.
1
vote
1
answer
126
views
Java Android Studio Screenshot A TableLayout
I am trying to get a screenshot of a scrollable table.
The TableLayout has parent matching width/height and right/left padding.
The TableRows width/height has wrap_content and textAlignment center.
...
0
votes
1
answer
600
views
Dynamically get position of row in android table layout
I have a table layout that gets dynamically filled with data
the table contains 4 columns, 3 are text views and 1 is and image button
<TableLayout
android:id="@+id/tablePicklist"
...
-1
votes
1
answer
568
views
How do I print a tableLayout content
I have an app that generates report from database and displays it in tablelayout , the problem is I don't know how to print a hardcopy of the table content. Preferably print to PDF ... Thanks (Java ...
1
vote
0
answers
590
views
Android tablelayout width android
I'm using a TableLayout containing a row of Button and a row of TextViews,Edittexts and ImageButton.
I want the button can be wider
but if I set android:stretchColumns="*"
<TableLayout
...
0
votes
1
answer
106
views
android table vertical column divider
I am trying to add a vertical divider between columns in android table layout and tried multiple solutions but not have worked so for. This my table code an image of the result
For some reason the ...
0
votes
1
answer
47
views
Updating to a table in Android results in duplication of shown records
Working in Android, I have a table on a tab that I am pulling from an internal database. After entering data on another tab, I would like for the table to be updated to show the new records.
Currently ...
0
votes
1
answer
168
views
adding a table layout in linear layout
I am trying to add a table inside a linear layout. Inside my linear layout there is textview, spinner. When I try to add a table layout it doesn't align correctly. Below is my code
<LinearLayout
...
0
votes
1
answer
2k
views
TableRow in TableLayout and TableRow from RecyclerView aren’t align
I believe TableRow from activity_main and TableRow from recycler_item_header_row have the same values of fields. But they are not aligned! They are shown like this:
enter image description here
enter ...
0
votes
0
answers
28
views
ID's are not increasing in android for table layout
In the below code I am displaying ID's numbers starting from 1 dynamically. But every time it displays only 1.
Can any one help me to resolve the issue?
for (GetRegisterdPatientListData ...
0
votes
0
answers
97
views
Android: How to copy values from one column to a new column in Android table layout before updating the table
I am very new to Android app development.
I want to maintain a copy of a col to a new col before updating the table.
What I'm currently doing is before updating the table in the table layout is ...
0
votes
1
answer
358
views
Android - Aligning columns of TableLayout
I am trying to display data in a horizontal and vertically scrolling table layout that has a fixed header row. The issue I am running into is that whenever I add a new TableRow to the LinearLayout ...
0
votes
1
answer
360
views
View in ConstraintLayout does not fit within screen bounds
I'm trying to align 3 TableLayouts within a ConstraintLayout. I want the table with the MaterialButtons to have 1:1 dimension ratio, while the table on the top and on start still completely remains ...
0
votes
1
answer
129
views
ViewPager in a StickyNestedScrollView
<?xml version="1.0" encoding="utf-8"?>
<me.didik.component.StickyNestedScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app=&...
1
vote
1
answer
116
views
Arranging buttons with android: get rid of vertical space
I am new to android. I know layouts mainly from LaTex, but also at a layman's level from Swing, SWT and javafx.
As an exercise, I have tried a very simple layout for a calculator, which essentially ...
1
vote
0
answers
162
views
How to avoid refreshing recyclerview refreshing on viewpager swipe?
In my android application the app structure according to feature requirement is as follows:
MainActivity has a Frame layout and a MainFragment.
When Activity onCreate method is called main fragment is ...
0
votes
0
answers
62
views
switchbox change state on rotation
I develop a simple table-app, and the problem is, that the switch-box will change the state or doesn't reset the state correcly on change rotation.
befor rotating it looks like
this
after rotating it ...
0
votes
1
answer
74
views
unable to restore table rows during orientation changes in android
I have called addRow() 3 times at onCreate so users will have 3 rows to start with. But they can add or remove rows as they wish. but when the screen rotates it only displays 3 rows. If I remove those ...
0
votes
1
answer
1k
views
Populate Table Row with firebase Data Dynamically in Android
So I want to add the data to my table dynamically from the firebase database
This is an Image of my database. I want to fill my table Row with the data from the database
In Product Name in table ...