android:visibility="gone">
<ImageView
+ android:id="@+id/no_results_image"
android:layout_width="@dimen/white_note_width"
android:layout_height="@dimen/white_note_height"
android:layout_gravity="center_horizontal"
package org.lineageos.eleven.widgets;
import android.content.Context;
+import android.graphics.PorterDuff;
import android.util.AttributeSet;
import android.view.View;
+import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
}
public void setMainHighlightText(final String text) {
- final TextView hightlightText = (TextView)findViewById(R.id.no_results_main_highlight_text);
+ final TextView hightlightText = findViewById(R.id.no_results_main_highlight_text);
if (text == null || text.isEmpty()) {
hightlightText.setVisibility(View.GONE);
}
public void setTextColor(int color) {
+ ((ImageView)findViewById(R.id.no_results_image)).setColorFilter(color, PorterDuff.Mode.SRC_IN);
((TextView)findViewById(R.id.no_results_main_text)).setTextColor(color);
((TextView)findViewById(R.id.no_results_main_highlight_text)).setTextColor(color);
((TextView)findViewById(R.id.no_results_secondary_text)).setTextColor(color);
}
-}
\ No newline at end of file
+}