我想要做的就是改变我的Android应用程序的强调色,但我很难搞清楚如何做到这一点.android的默认设置现在为蓝色,但我想将其设为橙色.
通过强调颜色,我的意思是导航标签的重点,点击列表时突出显示的颜色,弹出对话框中的重点颜色等.
如果重要的话,我正在使用actionbarsherlock.
这是一张图片.我想在整个应用程序中更改蓝色调的颜色:

我试图在我的片段中放入一个简单的列表视图.当我按原样运行时,我收到错误.我没想到它可以使用我现有的代码,但我不知道从哪里开始.任何帮助将不胜感激!
我的代码:
public class Tab1Fragment extends ListFragment {
ListView listView;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
LinearLayout theLayout = (LinearLayout) inflater.inflate(R.layout.tab1, container, false);
listView = (ListView)theLayout.findViewById(R.id.ListView01);
return theLayout;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Use an existing ListAdapter that will map an array
// of strings to TextViews
setListAdapter(new ArrayAdapter<String>(getActivity().getApplicationContext(),
android.R.layout.simple_list_item_1, mStrings));
getListView().setTextFilterEnabled(true);
}
private String[] mStrings = {
"Action", "Adventure", "Animation", "Children", "Comedy", "Documentary", "Drama",
"Foreign", "History", "Independent", "Romance", "Sci-Fi", "Television", "Thriller" …Run Code Online (Sandbox Code Playgroud)