add holo triangle back
This commit is contained in:
parent
148e67b200
commit
c1b41d9de8
BIN
res/drawable-hdpi/ic_mailbox_collapsed_holo_dark.png
Normal file
BIN
res/drawable-hdpi/ic_mailbox_collapsed_holo_dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 274 B |
BIN
res/drawable-hdpi/ic_mailbox_collapsed_holo_light.png
Normal file
BIN
res/drawable-hdpi/ic_mailbox_collapsed_holo_light.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 350 B |
@ -120,6 +120,15 @@
|
|||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:src="@drawable/ic_rss_bw" />
|
android:src="@drawable/ic_rss_bw" />
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/article_menu_button"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="0"
|
||||||
|
android:background="@null"
|
||||||
|
android:paddingLeft="6dp"
|
||||||
|
android:paddingTop="6dp"
|
||||||
|
android:src="@drawable/ic_mailbox_collapsed_holo_light" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@ -120,6 +120,16 @@
|
|||||||
android:layout_weight="0"
|
android:layout_weight="0"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:src="@drawable/ic_rss_bw" />
|
android:src="@drawable/ic_rss_bw" />
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/article_menu_button"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="0"
|
||||||
|
android:background="@null"
|
||||||
|
android:paddingLeft="6dp"
|
||||||
|
android:paddingTop="6dp"
|
||||||
|
android:src="@drawable/ic_mailbox_collapsed_holo_light" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -121,6 +121,15 @@
|
|||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:src="@drawable/ic_rss_bw" />
|
android:src="@drawable/ic_rss_bw" />
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/article_menu_button"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="0"
|
||||||
|
android:background="@null"
|
||||||
|
android:paddingLeft="6dp"
|
||||||
|
android:paddingTop="6dp"
|
||||||
|
android:src="@drawable/ic_mailbox_collapsed_holo_light" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@ -119,9 +119,19 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="0"
|
android:layout_weight="0"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:src="@drawable/ic_rss_bw" />
|
android:src="@drawable/ic_rss_bw" />
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/article_menu_button"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="0"
|
||||||
|
android:background="@null"
|
||||||
|
android:paddingLeft="6dp"
|
||||||
|
android:paddingTop="6dp"
|
||||||
|
android:src="@drawable/ic_mailbox_collapsed_holo_light" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@ -166,6 +166,13 @@ public class CommonActivity extends SherlockFragmentActivity {
|
|||||||
toast.show();
|
toast.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isDarkTheme() {
|
||||||
|
String defaultTheme = "THEME_DARK";
|
||||||
|
|
||||||
|
return (m_prefs.getString("theme", defaultTheme).equals("THEME_DARK")) ||
|
||||||
|
m_prefs.getString("theme", defaultTheme).equals("THEME_DARK_GRAY");
|
||||||
|
}
|
||||||
|
|
||||||
protected void setAppTheme(SharedPreferences prefs) {
|
protected void setAppTheme(SharedPreferences prefs) {
|
||||||
String defaultTheme = "THEME_DARK";
|
String defaultTheme = "THEME_DARK";
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ import android.widget.AdapterView.AdapterContextMenuInfo;
|
|||||||
import android.widget.AdapterView.OnItemClickListener;
|
import android.widget.AdapterView.OnItemClickListener;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.CheckBox;
|
import android.widget.CheckBox;
|
||||||
|
import android.widget.ImageButton;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
@ -721,17 +722,19 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ImageButton ib = (ImageButton) v.findViewById(R.id.article_menu_button);
|
ImageButton ib = (ImageButton) v.findViewById(R.id.article_menu_button);
|
||||||
|
|
||||||
if (ib != null) {
|
if (ib != null) {
|
||||||
ib.setVisibility(android.os.Build.VERSION.SDK_INT >= 10 ? View.VISIBLE : View.GONE);
|
if (m_activity.isDarkTheme())
|
||||||
|
ib.setImageResource(R.drawable.ic_mailbox_collapsed_holo_dark);
|
||||||
|
|
||||||
ib.setOnClickListener(new OnClickListener() {
|
ib.setOnClickListener(new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
getActivity().openContextMenu(v);
|
getActivity().openContextMenu(v);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} */
|
}
|
||||||
|
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,7 @@ import android.widget.AdapterView;
|
|||||||
import android.widget.AdapterView.AdapterContextMenuInfo;
|
import android.widget.AdapterView.AdapterContextMenuInfo;
|
||||||
import android.widget.AdapterView.OnItemClickListener;
|
import android.widget.AdapterView.OnItemClickListener;
|
||||||
import android.widget.CheckBox;
|
import android.widget.CheckBox;
|
||||||
|
import android.widget.ImageButton;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
@ -576,18 +577,20 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ImageButton ib = (ImageButton) v.findViewById(R.id.article_menu_button);
|
ImageButton ib = (ImageButton) v.findViewById(R.id.article_menu_button);
|
||||||
|
|
||||||
if (ib != null) {
|
if (ib != null) {
|
||||||
ib.setVisibility(android.os.Build.VERSION.SDK_INT >= 10 ? View.VISIBLE : View.GONE);
|
if (m_activity.isDarkTheme())
|
||||||
|
ib.setImageResource(R.drawable.ic_mailbox_collapsed_holo_dark);
|
||||||
|
|
||||||
ib.setOnClickListener(new OnClickListener() {
|
ib.setOnClickListener(new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
getActivity().openContextMenu(v);
|
getActivity().openContextMenu(v);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} */
|
}
|
||||||
|
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user