Skip to content

Commit

Permalink
little corrections on fix of issue labexp#347
Browse files Browse the repository at this point in the history
Fixing padding in the buttons presets, because when the text is big, it no adjust in the correct way, and fixing the sizes of the dates or names on the track manager, this because the "uniform" prop that added, was causing the sizes were adjusting in different sizes each, so that look weird, so i put two possibles sizes for the text.
  • Loading branch information
FR3DD221 committed Dec 21, 2024
1 parent b62f7f4 commit d8ef754
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public void setAvailableLayouts(List<String> options) {
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
layoutParams.setMargins(50, 10, 50, 10);
layoutButton.setLayoutParams(layoutParams);
layoutButton.setPadding(10,20,10,20);
layoutButton.setPadding(40, 30, 40, 30);
layoutButton.setOnClickListener(listener);
rootLayout.addView(layoutButton,AT_START);
}
Expand Down
7 changes: 5 additions & 2 deletions app/src/main/res/layout/tracklist_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@
style="@android:style/TextAppearance.Large"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autoSizeTextType="uniform"
android:maxLines="1"
android:autoSizeTextType="uniform"
android:autoSizeMinTextSize="12sp"
android:autoSizeMaxTextSize="14sp"
android:autoSizeStepGranularity="2sp"
android:maxLines="1"
android:text="{start_date}" />

<LinearLayout
Expand Down

0 comments on commit d8ef754

Please sign in to comment.