
The Fragments and an Activity which tie all of the swap views together has begun. The first bit of implementation is to get the current wifi network displayed, which worked out alright. This commit contains a lot of theme related stuff, particularly involving taking assets from carries mockups and making them suitable to use as drawables. The process for doing this is a story for another day, but I'll document it and put it on the wiki in the future. carrie showed me a script that a mate of hers used on another project, and I've adapted it a little to make it work nicely here (note - it isn't in this commit). The button is blue, and always shown with associated text in the ActionBar. This required a custom drawable which was set as the background in the styles.xml.
20 lines
569 B
XML
20 lines
569 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<item>
|
|
<shape>
|
|
<solid android:color="@color/white" />
|
|
<padding
|
|
android:top="1dp"/>
|
|
</shape>
|
|
</item>
|
|
<item>
|
|
<shape>
|
|
<solid android:color="@color/swap_blue" />
|
|
<padding
|
|
android:left="10dp"
|
|
android:top="10dp"
|
|
android:right="10dp"
|
|
android:bottom="10dp" />
|
|
</shape>
|
|
</item>
|
|
</layer-list> |