我正在处理一个包含15个以上工作表和至少40个包含宏的单元格的复杂Excel文件。我从宏本身中删除了import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v7.app.AppCompatActivity;
import android.support.v4.app.Fragment;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.MenuItem;
import android.widget.TextView;
public class home extends AppCompatActivity {
private TextView mTextMessage;
private BottomNavigationView.OnNavigationItemSelectedListener
mOnNavigationItemSelectedListener
= new BottomNavigationView.OnNavigationItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
Fragment selectedFragment = null;
switch (item.getItemId()) {
case R.id.navigation_officials:
selectedFragment = new OfficialFragment();
break;
case R.id.navigation_organizations:
selectedFragment = new OrganizationFragment();
break;
case R.id.navigation_circles:
selectedFragment = new CircleFragment();
break;
case R.id.navigation_projects:
selectedFragment = new ProjectFragment();
break;
}
return loadFragment(selectedFragment);
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.home);
loadFragment(new HomeFragment());
BottomNavigationView navigation = (BottomNavigationView)
findViewById(R.id.navigation);
navigation.setOnNavigationItemSelectedListener
(mOnNavigationItemSelectedListener);
}
private boolean loadFragment(Fragment fragment) {
//switching fragment
if (fragment != null) {
getSupportFragmentManager()
.beginTransaction()
.replace(R.id.fragment_container, fragment).commit();
return true;
}
return false;
}
}
,因为它在单元格中的每次更改后最多引起10秒的延迟。我刚刚发现可以用marco创建按钮的可能性。是否可以在每个工作表的每个公式上创建一个简单的按钮Application.Volatile
?
Application.Volatile
这是我第一次尝试使用自定义按钮,但该按钮不起作用。有人知道如何制作这个简单的按钮吗?不幸的是,Google和搜索功能没有列出解决我的问题的任何提示。