For a calculator app, I have like 40 buttons and an EditText view but not all are fitting in the emulator. I was wondering if I could decrease the size of table rows.
If it is not possible, Is there any other way?
Here is the code for a tablerow
<TableRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="8dp"
>
<Button
android:id="@+id/b1"
android:text="("
/>
<Button
android:id="@+id/b3"
android:text=")"
/>
<Button
android:id="@+id/b4"
android:text="+-"
/>
<Button
android:id="@+id/b5"
android:text="√"
/>
<Button
android:id="@+id/b24"
android:text="n!"
/>
</TableRow>
Dont fix your height of table row just put all table row in a Linear layout whose orientation is vertical and give layout_weight equal to 1 for all table rows.