|
|
@ -1,6 +1,5 @@ |
|
|
|
package cc.niushuai.didicheck; |
|
|
|
package cc.niushuai.didicheck; |
|
|
|
|
|
|
|
|
|
|
|
import android.content.Context; |
|
|
|
|
|
|
|
import android.os.Bundle; |
|
|
|
import android.os.Bundle; |
|
|
|
import android.view.View; |
|
|
|
import android.view.View; |
|
|
|
|
|
|
|
|
|
|
@ -18,11 +17,9 @@ import cc.niushuai.didicheck.ui.main.TabsPagerAdapter; |
|
|
|
public class MainActivity extends AppCompatActivity { |
|
|
|
public class MainActivity extends AppCompatActivity { |
|
|
|
|
|
|
|
|
|
|
|
private ActivityMainBinding binding; |
|
|
|
private ActivityMainBinding binding; |
|
|
|
private Context context; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void onCreate(Bundle savedInstanceState) { |
|
|
|
protected void onCreate(Bundle savedInstanceState) { |
|
|
|
context = this; |
|
|
|
|
|
|
|
super.onCreate(savedInstanceState); |
|
|
|
super.onCreate(savedInstanceState); |
|
|
|
|
|
|
|
|
|
|
|
// 初始化数据库
|
|
|
|
// 初始化数据库
|
|
|
@ -42,7 +39,6 @@ public class MainActivity extends AppCompatActivity { |
|
|
|
swimActionButton.show(true); |
|
|
|
swimActionButton.show(true); |
|
|
|
swimActionButton.setLabelText("游泳"); |
|
|
|
swimActionButton.setLabelText("游泳"); |
|
|
|
swimActionButton.setImageDrawable(this.getResources().getDrawable(R.mipmap.fab_icon_swimming, getTheme())); |
|
|
|
swimActionButton.setImageDrawable(this.getResources().getDrawable(R.mipmap.fab_icon_swimming, getTheme())); |
|
|
|
// swimActionButton.setImageIcon(R.mipmap.fab_icon_swimming);
|
|
|
|
|
|
|
|
swimActionButton.setButtonSize(FloatingActionButton.SIZE_NORMAL); |
|
|
|
swimActionButton.setButtonSize(FloatingActionButton.SIZE_NORMAL); |
|
|
|
swimActionButton.setColorNormal(this.getResources().getColor(R.color.white)); |
|
|
|
swimActionButton.setColorNormal(this.getResources().getColor(R.color.white)); |
|
|
|
swimActionButton.setColorPressed(this.getResources().getColor(R.color.white)); |
|
|
|
swimActionButton.setColorPressed(this.getResources().getColor(R.color.white)); |
|
|
|