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