Skip to content

Commit 5818a41

Browse files
committed
small bug in main
1 parent 10e8398 commit 5818a41

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

app/src/main/java/com/supun/streamix/HomeFragment.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
4444
recyclerView.setAdapter(adapter);
4545

4646
final int[] state = new int[1];
47-
4847
View viewToolbar = mainActivity.mainToolbarLayout;
4948
int defaultHeight = 394;
5049
viewToolbar.getLayoutParams().height = defaultHeight;
50+
viewToolbar.requestLayout();
51+
52+
5153

5254
recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener(){
5355

app/src/main/res/layout/activity_main.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,19 @@
3131

3232
<RelativeLayout
3333
android:layout_width="match_parent"
34-
android:layout_height="wrap_content"
34+
android:layout_height="150dp"
3535
android:id="@+id/main_toolbar_layout"
3636
>
3737

3838

3939
<ImageView
4040
android:layout_width="match_parent"
41-
android:layout_height="150dp"
41+
android:layout_height="match_parent"
4242
android:src="@drawable/image_main"
4343
android:scaleType="centerCrop"
4444

4545

46+
4647
android:contentDescription="@string/devices" />
4748

4849
</RelativeLayout>

0 commit comments

Comments
 (0)