Skip to content

Commit

Permalink
fix FAB
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Taschauer committed Nov 7, 2020
1 parent 4a4858e commit 8ae53c6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ public void onClick(View view) {
findDocument();
}
});
findViewById(R.id.landing_open_fab).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
findDocument();
}
});

initializeProprietaryLibraries();

Expand Down
13 changes: 7 additions & 6 deletions app/src/main/res/layout/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.7"
android:layout_weight="0.8"
android:gravity="center_vertical"
android:lineSpacingMultiplier="1.2"
android:text="@string/landing_intro_view" />
Expand All @@ -100,7 +100,7 @@
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.7"
android:layout_weight="0.8"
android:gravity="center_vertical"
android:lineSpacingMultiplier="1.2"
android:text="@string/landing_intro_search" />
Expand All @@ -126,7 +126,7 @@
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.7"
android:layout_weight="0.8"
android:gravity="center_vertical"
android:lineSpacingMultiplier="1.2"
android:text="@string/landing_intro_edit" />
Expand Down Expand Up @@ -157,15 +157,16 @@
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.7"
android:layout_weight="0.8"
android:gravity="center_vertical"
android:lineSpacingMultiplier="1.0"
android:text="@string/landing_intro_open_all"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textSize="12sp"
android:text="@string/landing_intro_open_all" />
android:textSize="12sp" />
</LinearLayout>

<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/landing_open_fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|bottom"
Expand Down

0 comments on commit 8ae53c6

Please sign in to comment.