Search in sources :

Example 1 with QKLinearLayout

use of com.moez.QKSMS.ui.view.QKLinearLayout in project qksms by moezbhatti.

the class QKPopupActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
    super.onCreate(savedInstanceState);
    mPrefs = PreferenceManager.getDefaultSharedPreferences(this);
    mRes = getResources();
    setFinishOnTouchOutside(mPrefs.getBoolean(SettingsFragment.QUICKREPLY_TAP_DISMISS, true));
    getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
    setContentView(getLayoutResource());
    ((QKLinearLayout) findViewById(R.id.popup)).setBackgroundTint(ThemeManager.getBackgroundColor());
    View title = findViewById(R.id.title);
    if (title != null && title instanceof AppCompatTextView) {
        title.setVisibility(View.GONE);
    }
}
Also used : AppCompatTextView(android.support.v7.widget.AppCompatTextView) QKLinearLayout(com.moez.QKSMS.ui.view.QKLinearLayout) View(android.view.View) AppCompatTextView(android.support.v7.widget.AppCompatTextView)

Aggregations

AppCompatTextView (android.support.v7.widget.AppCompatTextView)1 View (android.view.View)1 QKLinearLayout (com.moez.QKSMS.ui.view.QKLinearLayout)1