Added emtpy add-on activity, made links to it and made it pretty
After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
@ -0,0 +1,38 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<FrameLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:background="@drawable/background_gradient">
|
||||||
|
|
||||||
|
<!-- =================================================== tab: installed == -->
|
||||||
|
|
||||||
|
<ScrollView android:id="@+id/installed_tab"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent">
|
||||||
|
|
||||||
|
<LinearLayout android:id="@+id/installed_container"
|
||||||
|
android:paddingRight="8dip"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent">
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
<!-- =================================================== tab: available == -->
|
||||||
|
|
||||||
|
<ScrollView android:id="@+id/availble_tab"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent">
|
||||||
|
|
||||||
|
<LinearLayout android:id="@+id/available_container"
|
||||||
|
android:paddingRight="8dip"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent">
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
</FrameLayout>
|
@ -0,0 +1,36 @@
|
|||||||
|
package com.todoroo.astrid.activity;
|
||||||
|
|
||||||
|
|
||||||
|
import android.app.TabActivity;
|
||||||
|
import android.content.res.Resources;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.view.LayoutInflater;
|
||||||
|
import android.widget.TabHost;
|
||||||
|
|
||||||
|
import com.timsu.astrid.R;
|
||||||
|
|
||||||
|
public class AddOnActivity extends TabActivity {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
// set up tab host
|
||||||
|
Resources r = getResources();
|
||||||
|
TabHost tabHost = getTabHost();
|
||||||
|
tabHost.setPadding(0, 4, 0, 0);
|
||||||
|
LayoutInflater.from(this).inflate(R.layout.addon_activity,
|
||||||
|
tabHost.getTabContentView(), true);
|
||||||
|
tabHost.addTab(tabHost.newTabSpec(r.getString(R.string.AOA_tab_installed)).
|
||||||
|
setIndicator(r.getString(R.string.AOA_tab_installed),
|
||||||
|
r.getDrawable(R.drawable.tab_addons)).setContent(
|
||||||
|
R.id.installed_tab));
|
||||||
|
tabHost.addTab(tabHost.newTabSpec(r.getString(R.string.AOA_tab_available)).
|
||||||
|
setIndicator(r.getString(R.string.AOA_tab_available),
|
||||||
|
r.getDrawable(R.drawable.tab_add)).setContent(
|
||||||
|
R.id.availble_tab));
|
||||||
|
|
||||||
|
setTitle(R.string.AOA_title);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|