mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-02-07 15:48:39 +01:00
initial commit
This commit is contained in:
parent
a485e5659e
commit
6eb6c4defe
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@ -24,7 +24,7 @@
|
|||||||
</value>
|
</value>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
@ -28,6 +28,7 @@ public class MainActivity extends Activity
|
|||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
getActionBar().setDisplayShowTitleEnabled(false);
|
||||||
einstellungen = getApplicationContext().getSharedPreferences("settings", 0);
|
einstellungen = getApplicationContext().getSharedPreferences("settings", 0);
|
||||||
con = getApplicationContext();
|
con = getApplicationContext();
|
||||||
if( !loggedIn() ) {
|
if( !loggedIn() ) {
|
||||||
|
@ -67,7 +67,7 @@ public class TwitterEngine extends AsyncTask<Integer, Void, Void>
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(Void v) {
|
protected void onPostExecute(Void v) {
|
||||||
if(list.getAdapter()==null) {
|
|
||||||
if(timelineAdapter != null) {
|
if(timelineAdapter != null) {
|
||||||
list.setAdapter(timelineAdapter);
|
list.setAdapter(timelineAdapter);
|
||||||
timelineAdapter.notifyDataSetChanged();
|
timelineAdapter.notifyDataSetChanged();
|
||||||
@ -76,7 +76,7 @@ public class TwitterEngine extends AsyncTask<Integer, Void, Void>
|
|||||||
list.setAdapter(trendsAdapter);
|
list.setAdapter(trendsAdapter);
|
||||||
trendsAdapter.notifyDataSetChanged();
|
trendsAdapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if(refresh != null)
|
if(refresh != null)
|
||||||
refresh.setRefreshing(false);
|
refresh.setRefreshing(false);
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/trendname"
|
android:id="@+id/trendname"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="match_parent" />
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -56,6 +56,7 @@
|
|||||||
android:layout_height="32dp"
|
android:layout_height="32dp"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:addStatesFromChildren="false"
|
android:addStatesFromChildren="false"
|
||||||
|
android:gravity="right"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
@ -70,18 +71,6 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:ems="10" />
|
android:ems="10" />
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/favorite"
|
|
||||||
android:layout_width="32dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="@drawable/star" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/favorite_number"
|
|
||||||
android:layout_width="64dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:ems="10" />
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/retweet"
|
android:id="@+id/retweet"
|
||||||
android:layout_width="32dp"
|
android:layout_width="32dp"
|
||||||
@ -94,6 +83,18 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:ems="10" />
|
android:ems="10" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/favorite"
|
||||||
|
android:layout_width="32dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@drawable/star" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/favorite_number"
|
||||||
|
android:layout_width="64dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:ems="10" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
<item name="colorPrimary">@color/colorPrimary</item>
|
<item name="colorPrimary">@color/colorPrimary</item>
|
||||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||||
<item name="colorAccent">@color/colorAccent</item>
|
<item name="colorAccent">@color/colorAccent</item>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user