mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-01-23 07:50:36 +01:00
Base 1.1
This commit is contained in:
parent
5d819cedea
commit
8fe92685f1
@ -13,6 +13,7 @@ import android.widget.AdapterView;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.widget.ListView;
|
||||
import android.widget.SearchView;
|
||||
import android.widget.TabHost;
|
||||
import android.widget.TabHost.TabSpec;
|
||||
import android.widget.Toast;
|
||||
@ -98,6 +99,10 @@ public class MainActivity extends AppCompatActivity
|
||||
intent = new Intent(this, Settings.class);
|
||||
startActivity(intent);
|
||||
break;
|
||||
case R.id.action_search:
|
||||
System.out.println("test");
|
||||
break;
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -3,6 +3,8 @@ package org.nuclearfog.twidda.Window;
|
||||
import android.os.Bundle;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
|
||||
import org.nuclearfog.twidda.R;
|
||||
|
||||
|
||||
public class TwitterSearch extends AppCompatActivity {
|
||||
|
||||
@ -11,8 +13,8 @@ public class TwitterSearch extends AppCompatActivity {
|
||||
@Override
|
||||
protected void onCreate(Bundle bundle){
|
||||
super.onCreate(bundle);
|
||||
setContentView(R.layout.search);
|
||||
keyWord = getIntent().getExtras().getString("search");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -3,4 +3,16 @@
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/search_toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?attr/colorPrimary"
|
||||
android:minHeight="?attr/actionBarSize"
|
||||
android:theme="?attr/actionBarTheme" />
|
||||
|
||||
<ListView
|
||||
android:id="@+id/search_result"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</LinearLayout>
|
@ -22,7 +22,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:checkable="false"
|
||||
android:icon="@drawable/search"
|
||||
android:title="Search"
|
||||
android:title="@string/search"
|
||||
android:visible="false"
|
||||
app:actionViewClass="android.widget.SearchView"
|
||||
app:showAsAction="always" />
|
||||
|
@ -18,6 +18,7 @@
|
||||
<string name="image">Bilder Laden</string>
|
||||
<string name="delete_database">Datenbank Löschen</string>
|
||||
<string name="connection_failure">Fehler beim Abruf der Daten!</string>
|
||||
<string name="search">Suche</string>
|
||||
|
||||
<string name="tableUser">
|
||||
CREATE TABLE IF NOT EXISTS user (
|
||||
|
Loading…
Reference in New Issue
Block a user