Coloring of header.

This commit is contained in:
Przemek Grondek 2014-07-30 15:29:17 +02:00
parent 197c4109ac
commit 4e3e0ea218
4 changed files with 16 additions and 4 deletions

View file

@ -1,6 +1,5 @@
package info.nerull7.mysqlbrowser;
import android.app.ActionBar;
import android.app.Fragment;
import android.graphics.Typeface;
import android.os.Bundle;
@ -164,7 +163,7 @@ public class EntriesFragment extends Fragment implements AsyncDatabaseConnector.
textView.setText(elements.get(j));
textView.setLayoutParams(layoutParams);
textView.setPadding(ENTRIES_PADDING_LEFT, ENTRIES_PADDING_TOP, ENTRIES_PADDING_RIGHT, ENTRIES_PADDING_BOTTOM);
textView.setBackgroundResource(R.drawable.border_emelent);
textView.setBackgroundResource(R.drawable.background_element);
newRow.addView(textView);
}
entriesTable.addView(newRow);
@ -195,7 +194,7 @@ public class EntriesFragment extends Fragment implements AsyncDatabaseConnector.
textView.setText(fieldList.get(i));
textView.setTypeface(null, Typeface.BOLD);
textView.setLayoutParams(layoutParams);
textView.setBackgroundResource(R.drawable.border_emelent);
textView.setBackgroundResource(R.drawable.background_header);
textView.setPadding(HEADER_PADDING_LEFT, HEADER_PADDING_TOP, HEADER_PADDING_RIGHT, HEADER_PADDING_BOTTOM);
headerRow.addView(textView);
}

View file

@ -3,6 +3,6 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<!--<solid android:color="#0fff"/>-->
<stroke android:width="1dp" android:color="#000"/>
<stroke android:width="1dp" android:color="@color/border"/>
</shape>

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/header_background"/>
<stroke android:width="1dp" android:color="@color/border"/>
</shape>

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="border">@android:color/tab_indicator_text</color>
<color name="header_background">@android:color/holo_orange_light</color>
</resources>