Moved Addressbook button to navigation drawer

This commit is contained in:
str4d
2013-08-10 01:40:22 +00:00
parent 27239cf09d
commit 5c9c438e28
3 changed files with 2 additions and 19 deletions

View File

@ -65,13 +65,6 @@
android:text="@string/label_tools"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Button
android:id="@+id/addressbook_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/label_addressbook"
android:drawableLeft="@drawable/addressbook_icon" />
<Button
android:id="@+id/logs_button"
android:layout_width="match_parent"

View File

@ -2,9 +2,11 @@
<resources>
<string-array name="main_fragments">
<item>net.i2p.android.router.fragment.MainFragment</item>
<item>net.i2p.android.router.fragment.AddressbookFragment</item>
</string-array>
<string-array name="main_fragment_titles">
<item>@string/label_home</item>
<item>@string/label_addressbook</item>
</string-array>
<string-array name="setting0to3">
<item>0</item>

View File

@ -152,18 +152,6 @@ public class MainFragment extends I2PFragmentBase {
}
});
b = (Button) v.findViewById(R.id.addressbook_button);
b.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
getActivity().getSupportFragmentManager()
.beginTransaction()
.replace(R.id.main_content, new AddressbookFragment())
.addToBackStack(null)
.commit();
}
});
b = (Button) v.findViewById(R.id.logs_button);
b.setOnClickListener(new View.OnClickListener() {