Filters.java 文件源码

java
阅读 29 收藏 0 点赞 0 评论 0

项目:AC2RD 作者:
@Override
     public void onCreate(Bundle savedInstanceState)
     {
        localizerManager.setPreferencesLocale(getApplicationContext());
themeManager.setPreferencesTheme(getApplicationContext(), this);

delegate = AppCompatDelegate.create(this, this);
delegate.installViewFactory();

        super.onCreate(savedInstanceState);

        delegate.onCreate(savedInstanceState);

      delegate.setContentView(R.layout.filters);

      Toolbar toolbar = (Toolbar)findViewById(R.id.filters_toolbar);
      delegate.setSupportActionBar(toolbar);
      delegate.getSupportActionBar().setLogo(R.drawable.ic_menu_friendslist);
      delegate.setTitle(getApplicationContext().getString(R.string.filters_toolbar));
      delegate.getSupportActionBar().setDisplayHomeAsUpEnabled(true);
      delegate.getSupportActionBar().setDisplayShowHomeEnabled(true);

      orderBy = CONTACT_FILTER.DEFAULT_SORT_ORDER;
      cursor = databaseManager.queryAllFilter(getApplicationContext(), cursor, orderBy);

      setCursorAdapter();

      listView.setOnItemClickListener(this);
listView.setOnItemLongClickListener(this);
      listView.setEmptyView(findViewById(R.id.filters_empty));

      Button addRecordableContact = (Button) findViewById (R.id.filters_add_recordable_contact);
      Button addNotRecordableContact = (Button) findViewById (R.id.filters_add_not_recordable_contact);

      addRecordableContact.setOnClickListener(this);
      addNotRecordableContact.setOnClickListener(this);

      recordableContact = 0;
      displayContacts = 2;
     }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号