2013-11-06 Miguel de Dios <miguel.dedios@artica.es>

* src/pandroid_event_viewer/pandorafms/EventList.java,
	res/layout/item_list_event_layout.xml,
	res/layout/list_view_layout.xml, res/drawable/round_event_item.xml,
	res/drawable/round_event_item_blue.xml,
	res/drawable/round_event_item_green.xml,
	res/drawable/round_event_item_grey.xml,
	res/drawable/round_event_item_red.xml,
	res/drawable/round_event_item_yellow.xml: changes in the themes.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9017 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-11-06 15:40:00 +00:00
parent 9615985a9a
commit 493cedbb2b
10 changed files with 131 additions and 63 deletions

View File

@ -1,3 +1,14 @@
2013-11-06 Miguel de Dios <miguel.dedios@artica.es>
* src/pandroid_event_viewer/pandorafms/EventList.java,
res/layout/item_list_event_layout.xml,
res/layout/list_view_layout.xml, res/drawable/round_event_item.xml,
res/drawable/round_event_item_blue.xml,
res/drawable/round_event_item_green.xml,
res/drawable/round_event_item_grey.xml,
res/drawable/round_event_item_red.xml,
res/drawable/round_event_item_yellow.xml: changes in the themes.
2013-11-06 Miguel de Dios <miguel.dedios@artica.es>
* src/pandroid_event_viewer/pandorafms/About.java,

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#FFFFFF"/>
<stroke android:width="3dip" android:color="#242424" />
<corners android:radius="5dip"/>
</shape>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ffffff"/>
<stroke android:width="3dip" android:color="#242424" />
<corners android:radius="5dip"/>
</shape>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#7eb628"/>
<stroke android:width="3dip" android:color="#242424" />
<corners android:radius="5dip"/>
</shape>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ffffff"/>
<stroke android:width="3dip" android:color="#242424" />
<corners android:radius="5dip"/>
</shape>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ff4040"/>
<stroke android:width="3dip" android:color="#242424" />
<corners android:radius="5dip"/>
</shape>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#f2d400"/>
<stroke android:width="3dip" android:color="#242424" />
<corners android:radius="5dip"/>
</shape>

View File

@ -18,16 +18,16 @@
android:id="@+id/item_linear_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
android:orientation="vertical"
android:background="#242424">
<RelativeLayout
android:id="@+id/content_event_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:layout_marginTop="1dp"
android:layout_marginBottom="1dp" >
android:padding="5dp"
android:background="#242424"
>
<TextView
android:id="@+id/event_name"
@ -35,13 +35,15 @@
android:layout_height="wrap_content"
android:drawablePadding="5dp"
android:textColor="#000"
android:textColorHighlight="#000" />
android:textColorHighlight="#000"
android:layout_margin="5dp" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/event_name"
android:orientation="horizontal" >
android:orientation="horizontal"
android:layout_margin="5dp" >
<TextView
android:id="@+id/agent_name"
@ -61,7 +63,8 @@
android:drawablePadding="10dp"
android:textColor="#000"
android:textColorHighlight="#000"
android:textSize="10sp" />
android:textSize="10sp"
android:paddingRight="5dp" />
</LinearLayout>
</RelativeLayout>

View File

@ -20,6 +20,7 @@
android:orientation="vertical" >
<!-- BEGIN THE HEADER -->
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
@ -33,7 +34,7 @@
android:layout_weight="0"
android:padding="0dp"
android:src="@drawable/refrest_icon" />
<LinearLayout
android:layout_width="2px"
android:layout_height="fill_parent"
@ -49,7 +50,7 @@
android:textColor="#ffffff"
android:textSize="20dp"
android:textStyle="bold" />
<LinearLayout
android:layout_width="2px"
android:layout_height="fill_parent"
@ -63,51 +64,59 @@
android:padding="0dp"
android:src="@drawable/filter_icon" />
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="2px"
android:background="#6D9624" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="2px"
android:background="#6D9624" />
<!-- END THE HEADER -->
<LinearLayout
android:id="@+id/loading_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="8dp"
android:background="#242424" >
<ProgressBar
style="?android:attr/progressBarStyleSmall"
<LinearLayout
android:id="@+id/loading_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="10dip" />
android:orientation="horizontal" >
<TextView
<ProgressBar
style="?android:attr/progressBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="10dip" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/loading_label_str"
android:textColor="#ffffff"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:id="@+id/empty_list_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:visibility="gone" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/empty_label_str"
android:textColor="#ffffff"
android:textStyle="bold" />
</LinearLayout>
<ListView
android:id="@id/android:list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/loading_label_str"
android:textColor="#ffffff"
android:textStyle="bold" />
android:fadingEdge="none" />
</LinearLayout>
<LinearLayout
android:id="@+id/empty_list_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:visibility="gone" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/empty_label_str"
android:textColor="#ffffff"
android:textStyle="bold" />
</LinearLayout>
<ListView
android:id="@id/android:list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fadingEdge="none" />
</LinearLayout>

View File

@ -423,30 +423,39 @@ public class EventList extends ListActivity {
else {
final EventListItem item = this.object.eventList.get(position);
switch (item.criticity) {
case 0:
view.setBackgroundColor(getResources().getColor(
R.color.Blue));
view.findViewById(R.id.content_event_item).setBackgroundResource(
R.drawable.round_event_item_blue
);
break;
case 1:
view.setBackgroundColor(getResources().getColor(
R.color.Grey));
view.findViewById(R.id.content_event_item).setBackgroundResource(
R.drawable.round_event_item_grey
);
break;
case 2:
view.setBackgroundColor(getResources().getColor(
R.color.Green));
view.findViewById(R.id.content_event_item).setBackgroundResource(
R.drawable.round_event_item_green
);
break;
case 3:
view.setBackgroundColor(getResources().getColor(
R.color.Yellow));
view.findViewById(R.id.content_event_item).setBackgroundResource(
R.drawable.round_event_item_yellow
);
break;
case 4:
view.setBackgroundColor(getResources()
.getColor(R.color.Red));
view.findViewById(R.id.content_event_item).setBackgroundResource(
R.drawable.round_event_item_red
);
break;
default:
view.setBackgroundColor(getResources().getColor(
R.color.Grey));
view.findViewById(R.id.content_event_item).setBackgroundResource(
R.drawable.round_event_item_grey
);
break;
}
@ -467,11 +476,11 @@ public class EventList extends ListActivity {
.findViewById(R.id.timestamp);
timestamp.setText(item.timestamp);
if (item.criticity_image.length() != 0)
Core.setTextViewLeftImage((TextView) view
.findViewById(R.id.event_name), Core
.getSeverityImage(getApplicationContext(),
item.criticity), 16);
// if (item.criticity_image.length() != 0)
// Core.setTextViewLeftImage((TextView) view
// .findViewById(R.id.event_name), Core
// .getSeverityImage(getApplicationContext(),
// item.criticity), 16);
if (item.status == 1) {
Core.setTextViewLeftImage(timestamp, getResources()