fix scroll in Sample
This commit is contained in:
parent
b1814ebcdf
commit
4f2e6f8171
|
|
@ -99,6 +99,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
|
|
||||||
|
|
||||||
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
|
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
|
||||||
|
fab.setVisibility(View.GONE);
|
||||||
fab.setOnClickListener(new View.OnClickListener() {
|
fab.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,9 @@
|
||||||
|
|
||||||
<ScrollView
|
<ScrollView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"
|
||||||
|
android:stackFromBottom="true"
|
||||||
|
android:transcriptMode="alwaysScroll">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/txt"
|
android:id="@+id/txt"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue